Function at 0x405bb0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4225f9
mov eax, dword fs:[0]
push eax
sub esp, 0x1f0
mov eax, dword [0x42e028]
xor eax, esp
mov dword [esp + 0x1e8], eax
push ebx
push esi
push edi
mov eax, dword [0x42e028]
xor eax, esp
push eax
lea eax, [esp + 0x200]
mov dword fs:[0], eax
mov eax, dword [0x430b4c]
xor esi, esi
mov edi, 8
mov dword [0x430b5c], esi
cmp dword [0x430b60], edi
jae 0x405c0f
mov eax, 0x430b4c
xor ecx, ecx
mov word [eax], cx
call fcn.00404b90
cmp eax, 1
jne 0x406208
lea edx, [esp + 0xb8]
push edx
call fcn.00406240
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 [0x430bdc]
cmp eax, esi
je 0x405c86
lea ecx, [esp + 0x64]
push ecx
push eax
call fcn.0041e6d0
push esi
lea edx, [esp + 0x70]
lea ecx, [esp + 0x54]
call fcn.0041ea10
add esp, 0xc
cmp dword [esp + 0xc8], esi
je 0x406106
push esi
lea edx, [esp + 0xbc]
push edx
or eax, 0xffffffff
mov ecx, 0x430b4c
call fcn.00401420
mov eax, dword [0x430b5c]
lea ecx, [eax - 1]
cmp eax, ecx
ja 0x405cc0
push str.invalid_string_position
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xout_of_range_char_const__]
mov eax, dword [0x430b4c]
cmp dword [0x430b60], edi
jae 0x405cd2
mov eax, 0x430b4c
cmp word [eax + ecx*2], 0x5c
je 0x405cea
push 1
mov eax, 0x424760
mov ecx, 0x430b4c
call fcn.00408650
cmp dword [0x430b90], esi
je 0x405da1
cmp dword [0x430bdc], esi
je 0x405da1
cmp dword [0x430ba4], esi
je 0x405d59
lea eax, [esp + 0x80]
push eax
mov ebx, 0x430b94
call fcn.00408f70
add esp, 4
push esi
push eax
or eax, 0xffffffff
mov esi, 0x430b4c
mov byte [esp + 0x210], 3
call fcn.00408550
lea esi, [esp + 0x80]
mov byte [esp + 0x208], 2
call fcn.004013d0
mov ecx, 0x430b4c
call fcn.0041ebc0
mov edi, 8
push 0x424764
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x88]
push edx
call fcn.00408c20
add esp, 0xc
push 0
push eax
or eax, 0xffffffff
mov esi, 0x430b4c
mov byte [esp + 0x210], 4
call fcn.00408550
lea esi, [esp + 0x80]
mov byte [esp + 0x208], 2
call fcn.004013d0
jmp 0x405db2
push 0xe
mov eax, str.EpsonScan2.log
mov ecx, 0x430b4c
call fcn.00408650
cmp dword [0x430bc0], 0
je 0x406106
cmp dword [0x430bdc], 0
je 0x406106
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x48]
mov esi, eax
cmp edx, edi
jae 0x405ef2
lea esi, [esp + 0x48]
mov ecx, esi
mov ebx, dword [esp + 0x58]
lea ebx, [ecx + ebx*2]
cmp edx, edi
jae 0x405df3
lea eax, [esp + 0x48]
cmp eax, ebx
je 0x405e11
mov ecx, dword [sym.imp.MSVCR100.dll_tolower]
push ecx
lea edx, [esp + 0x14]
push esi
push edx
call fcn.0040a000
add esp, 0xc
mov edi, 8
cmp dword [0x430b90], 0
je 0x405e23
cmp dword [0x430ba4], 0
jne 0x405e39
mov esi, str.es2controller
lea ecx, [esp + 0x48]
call fcn.00409020
test al, al
je 0x406106
xor eax, eax
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], 0
mov word [esp + 0x80], ax
lea ecx, [esp + 0x9c]
push 0x430b4c
push ecx
mov ebx, 0x430b94
mov byte [esp + 0x210], 5
call fcn.00408b70
add esp, 8
mov edx, eax
lea ecx, [esp + 0x80]
mov byte [esp + 0x208], 6
call fcn.0041e8e0
lea esi, [esp + 0x9c]
mov ebx, eax
mov byte [esp + 0x208], 5
call fcn.004013d0
test ebx, ebx
je 0x40601a
lea edx, [esp + 0x18]
push edx
call fcn.00407070
push 1
sub esp, 0x14
mov byte [esp + 0x220], 7
mov esi, esp
mov dword [esp + 0x28], esp
call fcn.00409050
push 0x430bb0
lea ecx, [esp + 0x34]
call fcn.004090a0
xor ebx, ebx
add esp, 0x1c
xor edi, edi
cmp dword [esp + 0x28], ebx
jbe 0x405ff7
jmp 0x405f02
mov ecx, eax
jmp 0x405de4
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.00401420
mov eax, edi
lea ecx, [esp + 0x34]
mov byte [esp + 0x224], 8
call fcn.004072e0
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.00401420
lea eax, [esp + 0xd4]
push eax
mov byte [esp + 0x244], 7
call fcn.00405180
add esp, 0x3c
cmp dword [esp + 0xac], 0
jbe 0x405fcf
nop
push ebx
lea eax, [esp + 0x40]
lea ecx, [esp + 0xa0]
call fcn.004159f0
mov esi, eax
lea eax, [esp + 0x34]
call fcn.0041cd10
mov ecx, dword [eax]
test ecx, ecx
je 0x405fa4
mov ecx, dword [ecx]
mov eax, dword [eax + 8]
mov edx, dword [ecx + 8]
cmp edx, eax
ja 0x405fb0
sub eax, edx
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + eax*4]
cmp dword [eax + 0x14], 8
jb 0x405fbe
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc ebx
cmp ebx, dword [esp + 0xac]
jb 0x405f80
lea esi, [esp + 0x9c]
call fcn.004080a0
mov edx, dword [esp + 0x9c]
push edx
call dword [sym.imp.mfc100u.dll_delete]
inc edi
add esp, 4
cmp edi, dword [esp + 0x28]
jb 0x405f00
lea esi, [esp + 0x18]
mov byte [esp + 0x208], 5
call fcn.004080a0
mov eax, dword [esp + 0x18]
mov ebx, dword [sym.imp.mfc100u.dll_delete]
push eax
call ebx
add esp, 4
jmp 0x406020
mov ebx, dword [sym.imp.mfc100u.dll_delete]
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.004056b0
mov esi, 8
mov byte [esp + 0x208], 9
cmp dword [eax + 0x14], esi
jb 0x406070
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 0x424790
push str...CommonUtilityDbgLog.cpp
push str.CDbgLog::BuildLogName
mov edx, 0x1b4
mov ecx, 5
mov eax, 0x430b48
call fcn.004063c0
add esp, 0x24
mov byte [esp + 0x208], 5
cmp dword [esp + 0xb0], esi
jb 0x4060df
mov ecx, dword [esp + 0x9c]
push ecx
call ebx
add esp, 4
call fcn.00405760
mov byte [esp + 0x208], 2
cmp dword [esp + 0x94], esi
jb 0x406102
mov edx, dword [esp + 0x80]
push edx
call ebx
add esp, 4
mov edi, esi
jmp 0x40610c
mov ebx, dword [sym.imp.mfc100u.dll_delete]
cmp dword [esp + 0x74], 0
mov esi, 7
je 0x4061ac
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.00401420
lea ecx, [esp + 0x9c]
call fcn.00405580
mov byte [esp + 0x208], 0xa
cmp dword [eax + 0x14], edi
jb 0x406160
mov eax, dword [eax]
mov ecx, dword [esp + 0x64]
cmp dword [esp + 0x78], edi
jae 0x40616e
lea ecx, [esp + 0x64]
push eax
push ecx
push str.LoadModule_Path:__s__Ver:__s_
push str...CommonUtilityDbgLog.cpp
push str.CDbgLog::BuildLogName
mov edx, 0x1bf
mov ecx, 5
mov eax, 0x430b48
call fcn.004063c0
add esp, 0x14
cmp dword [esp + 0x94], edi
jb 0x4061ac
mov eax, dword [esp + 0x80]
push eax
call ebx
add esp, 4
cmp dword [esp + 0x78], edi
jb 0x4061bc
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 0x4061df
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 0x406208
mov edx, dword [esp + 0xb8]
push edx
call ebx
add esp, 4
xor eax, eax
cmp dword [0x430b5c], 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.0041f822
mov esp, ebp
pop ebp
ret