Function at 0x413ce0
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d383
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x44e018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, 7
xor edi, edi
xor ecx, ecx
mov dword [ebp - 0x3f4], eax
mov dword [ebp - method.CSDIResultString.virtual_0], vtable.CSDIResultString.0
mov dword [ebp - 0x2bc], esi
mov dword [ebp - 0x2c0], edi
mov word [ebp - 0x2d0], cx
mov dword [ebp - 4], edi
mov ecx, dword [eax + 0x178]
mov edx, dword [ecx]
mov edx, dword [edx + 0x44]
lea eax, [ebp - 0x2d4]
push eax
push str.kDrvImageFormat
call edx
lea eax, [ebp - 0x3f6]
push eax
lea ecx, [ebp - 0x438]
push ecx
call fcn.00405790
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2d0]
mov ebx, 8
cmp dword [ebp - 0x2bc], ebx
jae 0x413d89
lea eax, [ebp - 0x2d0]
xor edx, edx
mov ecx, eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], dx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x413da3
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x234]
call fcn.00404c70
lea ecx, [ebp - 0x438]
mov edx, esi
mov byte [ebp - 4], 2
call fcn.00421f90
mov byte [ebp - 4], 1
cmp dword [ebp - 0x220], ebx
jb 0x413deb
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
push 0x53
mov edx, str.kDrvImageFormat
lea ecx, [ebp - 0x438]
call fcn.00416e40
add esp, 4
test eax, eax
je 0x413e19
push 0x53
mov edx, str.kDrvImageFormat
lea ecx, [ebp - 0x438]
call fcn.00416e40
add esp, 4
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor edx, edx
mov ebx, 7
push 0x14
mov eax, str.EPSONIMAGERUNNNER_
lea esi, [ebp - 0x234]
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], dx
call fcn.00404c70
mov byte [ebp - 4], 3
xor eax, eax
mov word [ebp - 0x250], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x240], edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x413e80
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
lea esi, [ebp - 0x250]
call fcn.00404c70
lea eax, [ebp - 0x234]
mov ecx, esi
lea ebx, [ebp - 0x2f0]
mov byte [ebp - 4], 4
call fcn.0040d9a0
mov ebx, 8
cmp dword [ebp - 0x23c], ebx
jb 0x413ed5
mov ecx, dword [ebp - 0x250]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, 7
xor edx, edx
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x240], edi
mov word [ebp - 0x250], dx
mov byte [ebp - 4], 7
cmp dword [ebp - 0x220], ebx
jb 0x413f0b
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x2f0]
xor ecx, ecx
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], cx
cmp dword [ebp - 0x2dc], ebx
jae 0x413f34
lea eax, [ebp - 0x2f0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x413f4a
lea ecx, [ebp - 0x2f0]
call fcn.004381b0
xor edx, edx
mov dword [ebp - method.CSDIResultString.virtual_0], vtable.CSDIResultString.0
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x25c], edi
mov word [ebp - 0x26c], dx
mov ebx, dword [ebp - 0x3f4]
mov byte [ebp - 4], 8
mov ecx, dword [ebx + 0x178]
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
lea edx, [ebp - 0x270]
push edx
push str.kDrvLastUsedFunctionalUnitType
call eax
cmp dword [ebp - 0x258], 8
mov eax, dword [ebp - 0x26c]
jae 0x413fa1
lea eax, [ebp - 0x26c]
xor ecx, ecx
mov word [ebp - 0x234], cx
mov ecx, eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], edi
lea esi, [ecx + 2]
jmp 0x413fc0
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x413fc0
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x234]
call fcn.00404c70
lea ecx, [ebp - 0x438]
mov edx, esi
mov byte [ebp - 4], 9
call fcn.00421f90
mov byte [ebp - 4], 8
cmp dword [ebp - 0x220], 8
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
jb 0x41400b
mov edx, dword [ebp - 0x234]
push edx
call esi
add esp, 4
push 0x62
mov edx, str.kDrvLastUsedFunctionalUnitType
lea ecx, [ebp - 0x438]
call fcn.00416e40
add esp, 4
test eax, eax
je 0x414043
push 0x62
mov edx, str.kDrvLastUsedFunctionalUnitType
lea ecx, [ebp - 0x438]
call fcn.00416e40
mov eax, dword [eax]
add esp, 4
mov dword [ebp - 0x3fc], eax
jmp 0x414049
mov dword [ebp - 0x3fc], edi
mov ecx, dword [ebx + 0x178]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
call eax
test al, al
je 0x41453c
jmp 0x414066
mov ebx, dword [ebp - 0x3f4]
mov ecx, dword [ebx + 0x178]
mov edx, dword [ecx]
mov eax, dword [edx + 0x38]
call eax
mov edi, eax
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
cmp eax, 2
je 0x414519
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
cmp eax, 4
je 0x414519
mov edx, dword [edi]
mov eax, dword [edx + 0x88]
mov ecx, edi
call eax
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x3f8], eax
je 0x4140d1
mov edx, dword [edi]
lea ecx, [eax + eax - 1]
mov eax, dword [edx + 0x8c]
mov dword [ebp - 0x3f8], ecx
mov ecx, edi
call eax
test al, al
je 0x4140d1
inc dword [ebp - 0x3f8]
xor ecx, ecx
push ecx
mov eax, 0x4401a0
lea esi, [ebp - 0x234]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], cx
call fcn.00404c70
mov eax, dword [ebp - 0x3fc]
mov byte [ebp - 4], 0xa
cmp eax, 1
je 0x414113
cmp eax, 4
jne 0x414125
push 4
mov eax, str.ADF_
lea esi, [ebp - 0x234]
call fcn.00404c70
push str._08d.tmp
lea ebx, [ebp - 0x3f0]
call fcn.004160d0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x40c]
lea edx, [ebp - 0x3f8]
push ecx
mov dword [ebp - 0x40c], edx
mov dword [ebp - 0x408], fcn.00420e20
mov dword [ebp - 0x404], 0x41a070
call fcn.00419250
add esp, 4
lea edx, [ebp - 0x2ac]
mov ecx, eax
call fcn.00416200
mov esi, eax
lea edx, [ebp - 0x2f0]
push edx
lea eax, [ebp - 0x328]
push eax
lea ebx, [ebp - 0x234]
mov byte [ebp - 4], 0xc
call fcn.00415a20
add esp, 8
mov ecx, eax
lea eax, [ebp - 0x344]
mov byte [ebp - 4], 0xd
call fcn.00415ad0
mov ecx, eax
mov eax, dword [ebp - 0x3f4]
add eax, 0x218
lea ebx, [ebp - 0x30c]
mov byte [ebp - 4], 0xe
call fcn.00415b10
mov ecx, eax
mov eax, esi
lea ebx, [ebp - 0x250]
mov byte [ebp - 4], 0xf
call fcn.0040d9a0
mov ebx, 8
cmp dword [ebp - 0x2f8], ebx
jb 0x4141f4
mov ecx, dword [ebp - 0x30c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, 7
xor edx, edx
mov dword [ebp - 0x2f8], esi
mov dword [ebp - 0x2fc], 0
mov word [ebp - 0x30c], dx
cmp dword [ebp - 0x330], ebx
jb 0x41422a
mov eax, dword [ebp - 0x344]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x330], esi
mov dword [ebp - 0x334], 0
mov word [ebp - 0x344], cx
cmp dword [ebp - 0x314], ebx
jb 0x41425b
mov edx, dword [ebp - 0x328]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [ebp - 0x314], esi
mov dword [ebp - 0x318], 0
mov word [ebp - 0x328], ax
cmp dword [ebp - 0x298], ebx
jb 0x41428c
mov ecx, dword [ebp - 0x2ac]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
mov dword [ebp - 0x298], esi
mov dword [ebp - 0x29c], 0
mov word [ebp - 0x2ac], dx
lea eax, [ebp - 0x3f0]
push eax
mov byte [ebp - 4], 0x15
call fcn.00414680
mov edx, dword [edi]
mov eax, dword [edx + 0x60]
mov ecx, edi
call eax
cmp eax, ebx
jne 0x4142ee
mov edx, dword [edi]
mov eax, dword [edx + 0x64]
mov ecx, edi
call eax
cmp eax, 1
jne 0x4142ee
cmp dword [ebp + 0x10], 0xffffffff
jne 0x4142ee
cmp dword [ebp + 0x14], 0
jne 0x4142ee
push 5
mov eax, str..mono
lea ecx, [ebp - 0x250]
call fcn.0040d100
mov edx, dword [edi]
mov eax, dword [edx + 0x84]
mov ecx, edi
call eax
push eax
lea ecx, [ebp - 0x28c]
push ecx
call fcn.00413b70
add esp, 8
push 0
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x250]
mov byte [ebp - 4], 0x16
call fcn.0040dff0
mov byte [ebp - 4], 0x15
cmp dword [ebp - 0x278], ebx
jb 0x41433b
mov edx, dword [ebp - 0x28c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [edi]
mov edx, dword [eax + 0x18]
mov ecx, edi
call edx
cmp eax, 3
jne 0x4144c9
mov esi, 7
xor eax, eax
mov dword [ebp - method.CSDIResultString.virtual_0], vtable.CSDIResultString.0
mov dword [ebp - 0x278], esi
mov dword [ebp - 0x27c], 0
mov word [ebp - 0x28c], ax
mov byte [ebp - 4], 0x17
mov edx, dword [edi]
mov edx, dword [edx + 0x9c]
lea eax, [ebp - 0x290]
push eax
mov ecx, edi
call edx
mov ecx, dword [ebp - 0x250]
cmp dword [ebp - 0x23c], ebx
jae 0x4143a0
lea ecx, [ebp - 0x250]
mov eax, dword [ebp - 0x28c]
cmp dword [ebp - 0x278], ebx
jae 0x4143b4
lea eax, [ebp - 0x28c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
xor eax, eax
mov dword [ebp - 0x2a0], esi
mov dword [ebp - 0x2a4], 0
mov word [ebp - 0x2b4], ax
push eax
lea ecx, [ebp - 0x250]
push ecx
or eax, 0xffffffff
lea ecx, [ebp - 0x2b4]
mov byte [ebp - 4], 0x18
call fcn.00405500
mov edx, dword [edi]
mov eax, dword [edx + 0x8c]
mov ecx, edi
call eax
mov ecx, dword [ebp - 0x3f8]
mov edi, dword [ebp - 0x3f4]
mov dword [ebp - 0x298], ecx
add edi, 0x23c
lea ecx, [ebp - 0x2b4]
mov byte [ebp - 0x294], al
call fcn.00415590
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x400], esp
xor edi, edi
push edi
lea eax, [ebp - 0x250]
xor edx, edx
push eax
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], edi
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00405500
mov esi, dword [ebp - 0x3f4]
call fcn.00413c00
cmp dword [ebp - 0x2a0], ebx
jb 0x41446f
mov ecx, dword [ebp - 0x2b4]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x28c]
xor edx, edx
mov dword [ebp - 0x2a0], 7
mov dword [ebp - 0x2a4], edi
mov word [ebp - 0x2b4], dx
mov dword [ebp - method.CSDIResultString.virtual_0], vtable.CSDIResultString.0
mov dword [ebp - 0x27c], edi
cmp dword [ebp - 0x278], ebx
jae 0x4144ac
lea eax, [ebp - 0x28c]
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp - 0x278], ebx
jb 0x4144c9
mov edx, dword [ebp - 0x28c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [ebp - 0x23c], ebx
jb 0x4144e1
mov eax, dword [ebp - 0x250]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov byte [ebp - 4], bl
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], 0
mov word [ebp - 0x250], cx
cmp dword [ebp - 0x220], ebx
jb 0x414519
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x3f4]
mov ecx, dword [eax + 0x178]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
call eax
test al, al
jne 0x414060
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
xor edi, edi
mov eax, dword [ebp - 0x26c]
mov ecx, 8
mov dword [ebp - method.CSDIResultString.virtual_0], vtable.CSDIResultString.0
mov dword [ebp - 0x25c], edi
cmp dword [ebp - 0x258], ecx
jae 0x414565
lea eax, [ebp - 0x26c]
xor edx, edx
mov word [eax], dx
cmp dword [ebp - 0x258], ecx
jb 0x41457e
mov eax, dword [ebp - 0x26c]
push eax
call esi
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x2dc], 8
mov ebx, 7
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x25c], edi
mov word [ebp - 0x26c], cx
mov dword [ebp - method.ISDIString.virtual_0], vtable.ISDIString.0
jb 0x4145b7
mov edx, dword [ebp - 0x2f0]
push edx
call esi
add esp, 4
xor eax, eax
mov word [ebp - 0x2f0], ax
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x2dc], ebx
mov dword [ebp - 0x2e0], edi
cmp eax, edi
je 0x4145dc
push eax
call esi
add esp, 4
lea ecx, [ebp - 0x434]
mov dword [ebp - 0x428], edi
mov dword [ebp - 0x424], edi
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x400], ecx
mov edx, ecx
push edx
mov byte [ebp - 4], 0x19
call fcn.004058b0
mov eax, dword [ebp - 0x434]
push eax
call esi
mov eax, dword [ebp - 0x2d0]
mov ecx, 8
add esp, 4
mov dword [ebp - method.CSDIResultString.virtual_0], vtable.CSDIResultString.0
mov dword [ebp - 0x2c0], edi
cmp dword [ebp - 0x2bc], ecx
jae 0x41463b
lea eax, [ebp - 0x2d0]
xor edx, edx
mov word [eax], dx
cmp dword [ebp - 0x2bc], ecx
jb 0x414654
mov eax, dword [ebp - 0x2d0]
push eax
call esi
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00438de6
mov esp, ebp
pop ebp
ret 0x10