Function at 0x44dc30
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x494b09
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bea30]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x24], ebx
call fcn.0045525d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x44dc79
push 0x80004005
call fcn.004022b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x40], ebx
call fcn.0045525d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x44dca7
push 0x80004005
call fcn.004022b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x40], 1
mov eax, dword [edi + 0x2c]
cmp eax, 0xbc6
jg 0x44dccb
mov eax, 0xbc6
lea ecx, [eax*4 + 0x28]
mov eax, dword [edi + 0x3c]
cmp eax, 2
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], 1
mov esi, str.DRVNAME
je 0x44dcf4
cmp eax, 3
jne 0x44de15
call fcn.00450e60
test eax, eax
je 0x44dd16
mov ecx, edi
call fcn.00450cb0
mov dword [esp + 0x20], 3
mov esi, str.PRINTER_QUEUE_NAME
jmp 0x44de15
call fcn.0045525d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x44dd30
push 0x80004005
call fcn.004022b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push str.PRINTER_MAC
lea ecx, [esp + 0x1c]
push str.___s__
push ecx
mov byte [esp + 0x4c], 2
call fcn.004045e0
push str.PRINTER_PORT_IP
lea edx, [esp + 0x24]
push str.___s__
push edx
call fcn.004045e0
mov ecx, dword [edi + 8]
add esp, 0x18
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.00435540
test eax, eax
mov ebx, dword [esp + 0x18]
je 0x44ddb3
cmp dword [ebx - 0xc], 0
jl 0x44dda4
push str.PRINTER_MAC
push ebx
call fcn.0047aeec
add esp, 8
test eax, eax
je 0x44dda4
sub eax, ebx
sar eax, 1
jns 0x44ddb3
mov dword [esp + 0x20], 4
mov esi, str.PRINTER_MAC
jmp 0x44ddf4
mov eax, dword [edi + 8]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.00435540
test eax, eax
je 0x44ddf4
mov ebp, dword [esp + 0x14]
cmp dword [ebp - 0xc], 0
jl 0x44dde7
push str.PRINTER_PORT_IP
push ebp
call fcn.0047aeec
add esp, 8
test eax, eax
je 0x44dde7
sub eax, ebp
sar eax, 1
jns 0x44ddf4
mov dword [esp + 0x20], 5
mov esi, str.PRINTER_PORT_IP
lea eax, [ebx - 0x10]
mov byte [esp + 0x40], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44de15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
lea ecx, [esp + 0x18]
push str.___s__
push ecx
call fcn.004045e0
mov eax, dword [edi + 8]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push eax
call fcn.00435540
mov ecx, dword [esp + 0x14]
mov ebp, dword [ecx - 0xc]
push str.DRVNAME
lea edx, [esp + 0x20]
push str.___s__
push edx
add ebp, 1
call fcn.004045e0
mov ecx, dword [edi + 8]
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.00435540
mov edx, dword [esp + 0x1c]
mov eax, dword [edx - 0xc]
add eax, 1
mov dword [esp + 0x2c], eax
call fcn.0045525d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x44de8d
push 0x80004005
call fcn.004022b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x40], 3
mov ecx, dword [edi + 8]
mov edx, dword [ecx + 0x2c]
test edx, edx
jne 0x44deb0
xor eax, eax
jmp 0x44dec4
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x44deb5
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x20]
call fcn.00404b00
lea edx, [esp + 0x18]
push edx
mov ebx, str._html
call fcn.004339c0
mov eax, dword [esp + 0x1c]
add esp, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x44def6
lea eax, [esp + 0x18]
jmp 0x44df13
mov ecx, dword [edi + 8]
mov eax, dword [ecx + 0x2c]
push eax
lea ecx, [esp + 0x2c]
call fcn.00404740
mov byte [esp + 0x40], 4
mov dword [esp + 0x24], 1
mov ebx, dword [eax]
mov ecx, 0x49fc50
call fcn.00429460
mov esi, eax
test esi, esi
jge 0x44df37
mov ecx, ebx
call fcn.004293f0
mov esi, eax
neg esi
sbb esi, esi
neg esi
add esi, 0xe
mov dword [esp + 0x40], 3
test byte [esp + 0x24], 1
je 0x44df66
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x44df66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
shl esi, 4
mov ebx, eax
mov eax, dword [esi + 0x49fc58]
mov dword [esp + 0x24], esi
call fcn.004354e0
add eax, dword [esp + 0x2c]
lea esi, [ebx + eax + 0x106]
mov eax, str.EpsonDownload.log
lea ebx, [esi + esi]
call fcn.004354e0
add eax, ebx
mov ebx, dword [esp + 0x30]
add eax, ebp
lea ecx, [ebx + eax*2]
push ecx
call fcn.00455056
push ebx
push 0
push eax
mov dword [edi + 0x44], eax
call fcn.0047c3b0
mov edx, dword [edi + 0x44]
mov eax, dword [esp + 0x30]
mov dword [edx], eax
mov eax, dword [edi + 0x44]
lea ecx, [eax + ebx]
mov dword [eax + 4], ecx
mov edx, dword [edi + 0x44]
mov ecx, dword [edx + 4]
add esp, 0x10
cmp ebp, 0x7fffffff
ja 0x44dfe7
mov eax, dword [esp + 0x14]
mov edx, ebp
call fcn.00402840
mov eax, dword [edi + 0x44]
mov ecx, dword [eax + 4]
lea edx, [ecx + ebp*2]
mov dword [eax + 8], edx
mov eax, dword [edi + 0x44]
mov ecx, dword [eax + 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [esp + 0x1c]
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 8]
push edx
call fcn.00430470
mov ecx, dword [edi + 0x44]
mov ebx, dword [ecx + 8]
add esp, 4
cmp esi, 0x7fffffff
ja 0x44e047
lea edx, [esp + 0x30]
push edx
push esi
push ebx
call fcn.00402890
test eax, eax
jl 0x44e047
mov eax, dword [esp + 0x30]
mov edx, esi
sub edx, eax
lea ecx, [ebx + eax*2]
mov eax, 0x4ab884
call fcn.00402840
cmp esi, 0x7fffffff
mov eax, dword [esp + 0x24]
mov ecx, dword [edi + 0x44]
mov ebp, dword [eax + 0x49fc58]
mov ebx, dword [ecx + 8]
ja 0x44e081
lea edx, [esp + 0x30]
push edx
push esi
push ebx
call fcn.00402890
test eax, eax
jl 0x44e081
mov eax, dword [esp + 0x30]
mov edx, esi
sub edx, eax
lea ecx, [ebx + eax*2]
mov eax, ebp
call fcn.00402840
mov eax, dword [edi + 0x44]
mov edx, dword [eax + 8]
lea ecx, [esi + esi]
add edx, ecx
cmp esi, 0x7fffffff
mov dword [eax + 0xc], edx
mov ecx, dword [edi + 0x44]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
ja 0x44e0a7
mov edx, esi
call fcn.00402840
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0xc]
push str.EpsonDownload.log
call fcn.00430470
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 0x49fc54]
mov edx, dword [edi + 0x44]
push 0x4ab888
mov dword [edx + 0x14], eax
lea eax, [esp + 0x1c]
push str.___s__
push eax
call fcn.004045e0
mov edx, dword [edi + 8]
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.00435540
mov esi, dword [esp + 0x14]
cmp dword [esi - 0xc], 0
jl 0x44e10e
push 0x4ab888
push esi
call fcn.0047aeec
add esp, 8
test eax, eax
je 0x44e10e
sub eax, esi
sar eax, 1
jns 0x44e11d
push esi
call fcn.00430640
add esp, 4
mov dword [esp + 0x34], edx
jmp 0x44e12a
mov eax, 0x22
mov dword [esp + 0x34], 0
mov ecx, dword [edi + 0x44]
mov dword [ecx + 0x10], eax
mov edx, dword [edi + 0x44]
mov dword [edx + 0x18], 0x44e410
mov eax, dword [edi + 0x44]
mov dword [eax + 0x1c], edi
mov edi, dword [edi + 0x44]
mov byte [esp + 0x40], 1
mov eax, dword [esp + 0x18]
lea ecx, [edi + 0x28]
add eax, 0xfffffff0
mov dword [edi + 0x24], ecx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x44e16e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x40], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44e18f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44e1b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret