Function at 0x41a900
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x427d79
mov eax, dword fs:[0]
push eax
sub esp, 0x1f0
mov eax, dword [0x433018]
xor eax, esp
mov dword [esp + 0x1e8], eax
push ebx
push esi
push edi
mov eax, dword [0x433018]
xor eax, esp
push eax
lea eax, [esp + 0x200]
mov dword fs:[0], eax
mov eax, dword [0x435da4]
xor esi, esi
mov edi, 8
mov dword [0x435db4], esi
cmp dword [0x435db8], edi
jae 0x41a95f
mov eax, 0x435da4
xor ecx, ecx
mov word [eax], cx
call fcn.00419d90
cmp eax, 1
jne 0x41af5f
lea edx, [esp + 0xb8]
push edx
call fcn.0041af90
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 [0x435e30]
cmp eax, esi
je 0x41a9d6
lea ecx, [esp + 0x64]
push ecx
push eax
call fcn.00418440
push esi
lea edx, [esp + 0x70]
lea ecx, [esp + 0x54]
call fcn.004188a0
add esp, 0xc
cmp dword [esp + 0xc8], esi
je 0x41ae53
push esi
lea edx, [esp + 0xbc]
push edx
or eax, 0xffffffff
mov ecx, 0x435da4
call fcn.00401800
mov eax, dword [0x435db4]
lea ecx, [eax - 1]
cmp eax, ecx
ja 0x41aa10
push str.invalid_string_position
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xout_of_range_char_const__]
mov eax, dword [0x435da4]
cmp dword [0x435db8], edi
jae 0x41aa22
mov eax, 0x435da4
cmp word [eax + ecx*2], 0x5c
je 0x41aa3a
push 1
mov eax, 0x42953c
mov ecx, 0x435da4
call fcn.00401990
cmp dword [0x435de8], esi
je 0x41aaf1
cmp dword [0x435e30], esi
je 0x41aaf1
cmp dword [0x435dfc], esi
je 0x41aaa9
lea eax, [esp + 0x80]
push eax
mov ebx, 0x435dec
call fcn.0041c5a0
add esp, 4
push esi
push eax
or eax, 0xffffffff
mov esi, 0x435da4
mov byte [esp + 0x210], 3
call fcn.00401e00
lea esi, [esp + 0x80]
mov byte [esp + 0x208], 2
call fcn.00401690
mov ecx, 0x435da4
call fcn.00418a50
mov edi, 8
push str..log
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x88]
push edx
call fcn.00418e60
add esp, 0xc
push 0
push eax
or eax, 0xffffffff
mov esi, 0x435da4
mov byte [esp + 0x210], 4
call fcn.00401e00
lea esi, [esp + 0x80]
mov byte [esp + 0x208], 2
call fcn.00401690
jmp 0x41ab02
push 0xe
mov eax, str.EpsonScan2.log
mov ecx, 0x435da4
call fcn.00401990
cmp dword [0x435e18], 0
je 0x41ae53
cmp dword [0x435e30], 0
je 0x41ae53
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x48]
mov esi, eax
cmp edx, edi
jae 0x41ac42
lea esi, [esp + 0x48]
mov ecx, esi
mov ebx, dword [esp + 0x58]
lea ebx, [ecx + ebx*2]
cmp edx, edi
jae 0x41ab43
lea eax, [esp + 0x48]
cmp eax, ebx
je 0x41ab61
mov ecx, dword [sym.imp.MSVCR100.dll_tolower]
push ecx
lea edx, [esp + 0x14]
push esi
push edx
call fcn.0041d680
add esp, 0xc
mov edi, 8
cmp dword [0x435de8], 0
je 0x41ab73
cmp dword [0x435dfc], 0
jne 0x41ab89
mov esi, str.es2controller
lea ecx, [esp + 0x48]
call fcn.00413df0
test al, al
je 0x41ae53
xor eax, eax
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], 0
mov word [esp + 0x80], ax
lea ecx, [esp + 0x9c]
push 0x435da4
push ecx
mov ebx, 0x435dec
mov byte [esp + 0x210], 5
call fcn.0041c4f0
add esp, 8
mov edx, eax
lea ecx, [esp + 0x80]
mov byte [esp + 0x208], 6
call fcn.00418770
lea esi, [esp + 0x9c]
mov ebx, eax
mov byte [esp + 0x208], 5
call fcn.00401690
test ebx, ebx
je 0x41ad6a
lea edx, [esp + 0x18]
push edx
call fcn.0040ce50
push 1
sub esp, 0x14
mov byte [esp + 0x220], 7
mov esi, esp
mov dword [esp + 0x28], esp
call fcn.0041c650
push 0x435e08
lea ecx, [esp + 0x34]
call fcn.0041c6a0
xor ebx, ebx
add esp, 0x1c
xor edi, edi
cmp dword [esp + 0x28], ebx
jbe 0x41ad47
jmp 0x41ac52
mov ecx, eax
jmp 0x41ab34
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.00401800
mov eax, edi
lea ecx, [esp + 0x34]
mov byte [esp + 0x224], 8
call fcn.0041bf30
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.00401800
lea eax, [esp + 0xd4]
push eax
mov byte [esp + 0x244], 7
call fcn.0041a330
add esp, 0x3c
cmp dword [esp + 0xac], 0
jbe 0x41ad1f
nop
push ebx
lea eax, [esp + 0x40]
lea ecx, [esp + 0xa0]
call fcn.00413b00
mov esi, eax
lea eax, [esp + 0x34]
call fcn.00416e40
mov ecx, dword [eax]
test ecx, ecx
je 0x41acf4
mov ecx, dword [ecx]
mov eax, dword [eax + 8]
mov edx, dword [ecx + 8]
cmp edx, eax
ja 0x41ad00
sub eax, edx
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + eax*4]
cmp dword [eax + 0x14], 8
jb 0x41ad0e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc ebx
cmp ebx, dword [esp + 0xac]
jb 0x41acd0
lea esi, [esp + 0x9c]
call fcn.0040d420
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 0x41ac50
lea esi, [esp + 0x18]
mov byte [esp + 0x208], 5
call fcn.0040d420
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 0x41ad70
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.0041a850
mov esi, 8
mov byte [esp + 0x208], 9
cmp dword [eax + 0x14], esi
jb 0x41adc0
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 0x435a18
mov ecx, 0x435454
call dword [sym.imp.MSVCR100.dll_public:_char_const____thiscall_type_info::_name_internal_method_struct___type_info_node__const]
mov edx, eax
push 5
push 0x435da0
mov eax, 0x174
mov ecx, str.DbgLog.cpp
call fcn.0041b110
add esp, 0x24
cmp dword [esp + 0xb0], esi
jb 0x41ae31
mov ecx, dword [esp + 0x9c]
push ecx
call ebx
add esp, 4
mov byte [esp + 0x208], 2
cmp dword [esp + 0x94], esi
jb 0x41ae4f
mov edx, dword [esp + 0x80]
push edx
call ebx
add esp, 4
mov edi, esi
jmp 0x41ae59
mov ebx, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
cmp dword [esp + 0x74], 0
mov esi, 7
je 0x41af03
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.00401800
lea ecx, [esp + 0x9c]
call fcn.0041a730
mov byte [esp + 0x208], 0xa
cmp dword [eax + 0x14], edi
jb 0x41aead
mov eax, dword [eax]
mov ecx, dword [esp + 0x64]
cmp dword [esp + 0x78], edi
jae 0x41aebb
lea ecx, [esp + 0x64]
push eax
push ecx
push str.LoadModule_Path:__s__Ver:__s_
push 0x435a18
mov ecx, 0x435454
call dword [sym.imp.MSVCR100.dll_public:_char_const____thiscall_type_info::_name_internal_method_struct___type_info_node__const]
mov edx, eax
push 5
push 0x435da0
mov eax, 0x17d
mov ecx, str.DbgLog.cpp
call fcn.0041b110
add esp, 0x14
cmp dword [esp + 0x94], edi
jb 0x41af03
mov eax, dword [esp + 0x80]
push eax
call ebx
add esp, 4
cmp dword [esp + 0x78], edi
jb 0x41af13
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 0x41af36
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 0x41af5f
mov edx, dword [esp + 0xb8]
push edx
call ebx
add esp, 4
xor eax, eax
cmp dword [0x435db4], 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.00424ffa
mov esp, ebp
pop ebp
ret