Function at 0x4177e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x432479
mov eax, dword fs:[0]
push eax
sub esp, 0x1f0
mov eax, dword [0x442018]
xor eax, esp
mov dword [esp + 0x1e8], eax
push ebx
push esi
push edi
mov eax, dword [0x442018]
xor eax, esp
push eax
lea eax, [esp + 0x200]
mov dword fs:[0], eax
mov eax, dword [0x445e74]
xor esi, esi
mov edi, 8
mov dword [0x445e84], esi
cmp dword [0x445e88], edi
jae 0x41783f
mov eax, 0x445e74
xor ecx, ecx
mov word [eax], cx
call fcn.004167d0
cmp eax, 1
jne 0x417e50
lea edx, [esp + 0xb8]
push edx
call fcn.00417e80
mov dword [esp + 0x208], esi
mov eax, 7
xor ecx, ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], esi
mov word [esp + 0x48], cx
xor edx, edx
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], esi
mov word [esp + 0x64], dx
mov byte [esp + 0x208], 2
mov eax, dword [0x445f04]
cmp eax, esi
je 0x4178b6
lea ecx, [esp + 0x64]
push ecx
push eax
call fcn.0042ddf0
push esi
lea edx, [esp + 0x70]
lea ecx, [esp + 0x54]
call fcn.0042e170
add esp, 0xc
cmp dword [esp + 0xc8], esi
je 0x417d42
push esi
lea edx, [esp + 0xbc]
push edx
or eax, 0xffffffff
mov ecx, 0x445e74
call fcn.00401cf0
mov eax, dword [0x445e84]
lea ecx, [eax - 1]
cmp eax, ecx
ja 0x4178f0
push str.invalid_string_position
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xout_of_range_char_const__]
mov eax, dword [0x445e74]
cmp dword [0x445e88], edi
jae 0x417902
mov eax, 0x445e74
cmp word [eax + ecx*2], 0x5c
je 0x41791a
push 1
mov eax, 0x435154
mov ecx, 0x445e74
call fcn.00404b10
cmp dword [0x445eb8], esi
je 0x4179d1
cmp dword [0x445f04], esi
je 0x4179d1
cmp dword [0x445ecc], esi
je 0x417989
lea eax, [esp + 0x80]
push eax
mov ebx, 0x445ebc
call fcn.00419a80
add esp, 4
push esi
push eax
or eax, 0xffffffff
mov esi, 0x445e74
mov byte [esp + 0x210], 3
call fcn.00405a30
lea esi, [esp + 0x80]
mov byte [esp + 0x208], 2
call fcn.00412600
mov ecx, 0x445e74
call fcn.0042e320
mov edi, 8
push str..log
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x88]
push edx
call fcn.0040ed10
add esp, 0xc
push 0
push eax
or eax, 0xffffffff
mov esi, 0x445e74
mov byte [esp + 0x210], 4
call fcn.00405a30
lea esi, [esp + 0x80]
mov byte [esp + 0x208], 2
call fcn.00412600
jmp 0x4179e2
push 0xe
mov eax, str.EpsonScan2.log
mov ecx, 0x445e74
call fcn.00404b10
cmp dword [0x445ee8], 0
je 0x417d42
cmp dword [0x445f04], 0
je 0x417d42
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x48]
mov esi, eax
cmp edx, edi
jae 0x417b22
lea esi, [esp + 0x48]
mov ecx, esi
mov ebx, dword [esp + 0x58]
lea ebx, [ecx + ebx*2]
cmp edx, edi
jae 0x417a23
lea eax, [esp + 0x48]
cmp eax, ebx
je 0x417a41
mov ecx, dword [sym.imp.MSVCR100.dll_tolower]
push ecx
lea edx, [esp + 0x14]
push esi
push edx
call fcn.00419ca0
add esp, 0xc
mov edi, 8
cmp dword [0x445eb8], 0
je 0x417a53
cmp dword [0x445ecc], 0
jne 0x417a69
mov esi, str.es2controller
lea ecx, [esp + 0x48]
call fcn.00419b30
test al, al
je 0x417d42
xor eax, eax
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], 0
mov word [esp + 0x80], ax
lea ecx, [esp + 0x9c]
push 0x445e74
push ecx
mov ebx, 0x445ebc
mov byte [esp + 0x210], 5
call fcn.00419770
add esp, 8
mov edx, eax
lea ecx, [esp + 0x80]
mov byte [esp + 0x208], 6
call fcn.0042e040
lea esi, [esp + 0x9c]
mov ebx, eax
mov byte [esp + 0x208], 5
call fcn.00412600
test ebx, ebx
je 0x417c4a
lea edx, [esp + 0x18]
push edx
call fcn.00405b30
push 1
sub esp, 0x14
mov byte [esp + 0x220], 7
mov esi, esp
mov dword [esp + 0x28], esp
call fcn.00419b60
push 0x445ed8
lea ecx, [esp + 0x34]
call fcn.00419bb0
xor ebx, ebx
add esp, 0x1c
xor edi, edi
cmp dword [esp + 0x28], ebx
jbe 0x417c27
jmp 0x417b32
mov ecx, eax
jmp 0x417a14
xor ebx, ebx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
xor eax, eax
mov esi, 7
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push ebx
lea edx, [esp + 0xa0]
mov word [ecx], ax
push edx
or eax, 0xffffffff
call fcn.00401cf0
mov eax, edi
lea ecx, [esp + 0x34]
mov byte [esp + 0x224], 8
call fcn.00418c20
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x4c], esp
push ebx
xor edx, edx
push eax
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00401cf0
lea eax, [esp + 0xd4]
push eax
mov byte [esp + 0x244], 7
call fcn.00416dc0
add esp, 0x3c
cmp dword [esp + 0xac], 0
jbe 0x417bff
nop
push ebx
lea eax, [esp + 0x40]
lea ecx, [esp + 0xa0]
call fcn.00427680
mov esi, eax
lea eax, [esp + 0x34]
call fcn.00429660
mov ecx, dword [eax]
test ecx, ecx
je 0x417bd4
mov ecx, dword [ecx]
mov eax, dword [eax + 8]
mov edx, dword [ecx + 8]
cmp edx, eax
ja 0x417be0
sub eax, edx
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + eax*4]
cmp dword [eax + 0x14], 8
jb 0x417bee
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc ebx
cmp ebx, dword [esp + 0xac]
jb 0x417bb0
lea esi, [esp + 0x9c]
call fcn.00406ac0
mov edx, dword [esp + 0x9c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
inc edi
add esp, 4
cmp edi, dword [esp + 0x28]
jb 0x417b30
lea esi, [esp + 0x18]
mov byte [esp + 0x208], 5
call fcn.00406ac0
mov eax, dword [esp + 0x18]
mov ebx, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
push eax
call ebx
add esp, 4
jmp 0x417c50
mov ebx, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
push 0x11c
lea ecx, [esp + 0xd8]
push 0
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [esp + 0xd4]
push edx
mov dword [esp + 0xd8], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [esp + 0x9c]
call fcn.004172e0
mov esi, 8
mov byte [esp + 0x208], 9
cmp dword [eax + 0x14], esi
jb 0x417ca0
mov eax, dword [eax]
movzx ecx, word [esp + 0x1ea]
movzx edx, word [esp + 0x1e8]
push ecx
mov ecx, dword [esp + 0xe4]
push edx
mov edx, dword [esp + 0xe4]
push ecx
push eax
mov eax, dword [esp + 0xe8]
push edx
push eax
push str.Environment_OSVER:_d._d__s_Build:_d_SP:_d._d
push str.DbgLog.cpp
push 0x445978
mov ecx, 0x4442d0
call dword [sym.imp.MSVCR100.dll_public:_char_const____thiscall_type_info::_name_internal_method_struct___type_info_node__const]
push eax
mov edx, 0x1b4
mov ecx, 5
mov eax, 0x445e70
call fcn.00418000
add esp, 0x24
mov byte [esp + 0x208], 5
cmp dword [esp + 0xb0], esi
jb 0x417d1b
mov ecx, dword [esp + 0x9c]
push ecx
call ebx
add esp, 4
call fcn.00417390
mov byte [esp + 0x208], 2
cmp dword [esp + 0x94], esi
jb 0x417d3e
mov edx, dword [esp + 0x80]
push edx
call ebx
add esp, 4
mov edi, esi
jmp 0x417d48
mov ebx, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
cmp dword [esp + 0x74], 0
mov esi, 7
je 0x417df4
sub esp, 0x1c
mov ecx, esp
xor eax, eax
mov dword [esp + 0x30], esp
push eax
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], 0
lea edx, [esp + 0x84]
mov word [ecx], ax
push edx
or eax, 0xffffffff
call fcn.00401cf0
lea ecx, [esp + 0x9c]
call fcn.004171c0
mov byte [esp + 0x208], 0xa
cmp dword [eax + 0x14], edi
jb 0x417d9c
mov eax, dword [eax]
mov ecx, dword [esp + 0x64]
cmp dword [esp + 0x78], edi
jae 0x417daa
lea ecx, [esp + 0x64]
push eax
push ecx
push str.LoadModule_Path:__s__Ver:__s_
push str.DbgLog.cpp
push 0x445978
mov ecx, 0x4442d0
call dword [sym.imp.MSVCR100.dll_public:_char_const____thiscall_type_info::_name_internal_method_struct___type_info_node__const]
push eax
mov edx, 0x1bf
mov ecx, 5
mov eax, 0x445e70
call fcn.00418000
add esp, 0x14
cmp dword [esp + 0x94], edi
jb 0x417df4
mov eax, dword [esp + 0x80]
push eax
call ebx
add esp, 4
cmp dword [esp + 0x78], edi
jb 0x417e04
mov ecx, dword [esp + 0x64]
push ecx
call ebx
add esp, 4
xor edx, edx
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], 0
mov word [esp + 0x64], dx
cmp dword [esp + 0x5c], edi
jb 0x417e27
mov eax, dword [esp + 0x48]
push eax
call ebx
add esp, 4
xor ecx, ecx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], 0
mov word [esp + 0x48], cx
cmp dword [esp + 0xcc], edi
jb 0x417e50
mov edx, dword [esp + 0xb8]
push edx
call ebx
add esp, 4
xor eax, eax
cmp dword [0x445e84], eax
setne al
mov ecx, dword [esp + 0x200]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1e8]
xor ecx, esp
call fcn.0042ef46
mov esp, ebp
pop ebp
ret