Function at 0x41ad70
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4282c9
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 0x41adcf
mov eax, 0x435da4
xor ecx, ecx
mov word [eax], cx
call fcn.0041a200
cmp eax, 1
jne 0x41b3cf
lea edx, [esp + 0xb8]
push edx
call fcn.0041b400
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 0x41ae46
lea ecx, [esp + 0x64]
push ecx
push eax
call fcn.00418830
push esi
lea edx, [esp + 0x70]
lea ecx, [esp + 0x54]
call fcn.00418c90
add esp, 0xc
cmp dword [esp + 0xc8], esi
je 0x41b2c3
push esi
lea edx, [esp + 0xbc]
push edx
or eax, 0xffffffff
mov ecx, 0x435da4
call fcn.00401880
mov eax, dword [0x435db4]
lea ecx, [eax - 1]
cmp eax, ecx
ja 0x41ae80
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 0x41ae92
mov eax, 0x435da4
cmp word [eax + ecx*2], 0x5c
je 0x41aeaa
push 1
mov eax, 0x42953c
mov ecx, 0x435da4
call fcn.00401a10
cmp dword [0x435de8], esi
je 0x41af61
cmp dword [0x435e30], esi
je 0x41af61
cmp dword [0x435dfc], esi
je 0x41af19
lea eax, [esp + 0x80]
push eax
mov ebx, 0x435dec
call fcn.0041ca10
add esp, 4
push esi
push eax
or eax, 0xffffffff
mov esi, 0x435da4
mov byte [esp + 0x210], 3
call fcn.00401e80
lea esi, [esp + 0x80]
mov byte [esp + 0x208], 2
call fcn.00402f30
mov ecx, 0x435da4
call fcn.00418e40
mov edi, 8
push str..log
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x88]
push edx
call fcn.004192b0
add esp, 0xc
push 0
push eax
or eax, 0xffffffff
mov esi, 0x435da4
mov byte [esp + 0x210], 4
call fcn.00401e80
lea esi, [esp + 0x80]
mov byte [esp + 0x208], 2
call fcn.00402f30
jmp 0x41af72
push 0xe
mov eax, str.EpsonScan2.log
mov ecx, 0x435da4
call fcn.00401a10
cmp dword [0x435e18], 0
je 0x41b2c3
cmp dword [0x435e30], 0
je 0x41b2c3
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x48]
mov esi, eax
cmp edx, edi
jae 0x41b0b2
lea esi, [esp + 0x48]
mov ecx, esi
mov ebx, dword [esp + 0x58]
lea ebx, [ecx + ebx*2]
cmp edx, edi
jae 0x41afb3
lea eax, [esp + 0x48]
cmp eax, ebx
je 0x41afd1
mov ecx, dword [sym.imp.MSVCR100.dll_tolower]
push ecx
lea edx, [esp + 0x14]
push esi
push edx
call fcn.0041da90
add esp, 0xc
mov edi, 8
cmp dword [0x435de8], 0
je 0x41afe3
cmp dword [0x435dfc], 0
jne 0x41aff9
mov esi, str.es2controller
lea ecx, [esp + 0x48]
call fcn.00414200
test al, al
je 0x41b2c3
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.0041c960
add esp, 8
mov edx, eax
lea ecx, [esp + 0x80]
mov byte [esp + 0x208], 6
call fcn.00418b60
lea esi, [esp + 0x9c]
mov ebx, eax
mov byte [esp + 0x208], 5
call fcn.00402f30
test ebx, ebx
je 0x41b1da
lea edx, [esp + 0x18]
push edx
call fcn.0040d280
push 1
sub esp, 0x14
mov byte [esp + 0x220], 7
mov esi, esp
mov dword [esp + 0x28], esp
call fcn.0041cac0
push 0x435e08
lea ecx, [esp + 0x34]
call fcn.0041cb10
xor ebx, ebx
add esp, 0x1c
xor edi, edi
cmp dword [esp + 0x28], ebx
jbe 0x41b1b7
jmp 0x41b0c2
mov ecx, eax
jmp 0x41afa4
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.00401880
mov eax, edi
lea ecx, [esp + 0x34]
mov byte [esp + 0x224], 8
call fcn.0041c3a0
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.00401880
lea eax, [esp + 0xd4]
push eax
mov byte [esp + 0x244], 7
call fcn.0041a7a0
add esp, 0x3c
cmp dword [esp + 0xac], 0
jbe 0x41b18f
nop
push ebx
lea eax, [esp + 0x40]
lea ecx, [esp + 0xa0]
call fcn.00411f80
mov esi, eax
lea eax, [esp + 0x34]
call fcn.00417230
mov ecx, dword [eax]
test ecx, ecx
je 0x41b164
mov ecx, dword [ecx]
mov eax, dword [eax + 8]
mov edx, dword [ecx + 8]
cmp edx, eax
ja 0x41b170
sub eax, edx
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + eax*4]
cmp dword [eax + 0x14], 8
jb 0x41b17e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc ebx
cmp ebx, dword [esp + 0xac]
jb 0x41b140
lea esi, [esp + 0x9c]
call fcn.0040d850
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 0x41b0c0
lea esi, [esp + 0x18]
mov byte [esp + 0x208], 5
call fcn.0040d850
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 0x41b1e0
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.0041acc0
mov esi, 8
mov byte [esp + 0x208], 9
cmp dword [eax + 0x14], esi
jb 0x41b230
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.0041b580
add esp, 0x24
cmp dword [esp + 0xb0], esi
jb 0x41b2a1
mov ecx, dword [esp + 0x9c]
push ecx
call ebx
add esp, 4
mov byte [esp + 0x208], 2
cmp dword [esp + 0x94], esi
jb 0x41b2bf
mov edx, dword [esp + 0x80]
push edx
call ebx
add esp, 4
mov edi, esi
jmp 0x41b2c9
mov ebx, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
cmp dword [esp + 0x74], 0
mov esi, 7
je 0x41b373
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.00401880
lea ecx, [esp + 0x9c]
call fcn.0041aba0
mov byte [esp + 0x208], 0xa
cmp dword [eax + 0x14], edi
jb 0x41b31d
mov eax, dword [eax]
mov ecx, dword [esp + 0x64]
cmp dword [esp + 0x78], edi
jae 0x41b32b
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.0041b580
add esp, 0x14
cmp dword [esp + 0x94], edi
jb 0x41b373
mov eax, dword [esp + 0x80]
push eax
call ebx
add esp, 4
cmp dword [esp + 0x78], edi
jb 0x41b383
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 0x41b3a6
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 0x41b3cf
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.0042543a
mov esp, ebp
pop ebp
ret