Function at 0x4025f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4285da
mov eax, dword fs:[0]
push eax
sub esp, 0x174
mov eax, dword [0x433018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
xor eax, eax
mov word [ebp - 0x130], ax
push 0x12
mov eax, str.EPSONEpson_Scan_2
lea esi, [ebp - 0x130]
mov edi, ecx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x11c], 7
mov dword [ebp - 0x120], ebx
call fcn.00401ac0
push 1
mov eax, 0x42953c
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00401990
push 0xa
mov eax, str.Connection
mov ecx, esi
call fcn.00401990
lea ecx, [ebp - 0x132]
push ecx
lea edx, [ebp - 0x168]
push edx
call fcn.00402df0
mov byte [ebp - 4], 2
xor eax, eax
mov word [ebp - 0xf8], ax
mov eax, edi
mov dword [ebp - 0xe4], 7
mov dword [ebp - 0xe8], ebx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4026b0
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [ebp - 0xf8]
call fcn.00401ac0
lea ecx, [ebp - 0x168]
mov edx, esi
mov byte [ebp - 4], 3
call fcn.00405bc0
mov byte [ebp - 4], 2
cmp dword [ebp - 0xe4], 8
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
jb 0x4026fd
mov ecx, dword [ebp - 0xf8]
push ecx
call edi
add esp, 4
lea edx, [ebp - 0x168]
push edx
mov ecx, 0x435da0
call fcn.0041b7a0
xor eax, eax
mov word [ebp - 0xf8], ax
push 0xa
mov eax, str.DeviceList
lea esi, [ebp - 0xf8]
mov dword [ebp - 0xe4], 7
mov dword [ebp - 0xe8], ebx
call fcn.00401ac0
lea ecx, [ebp - 0xf8]
push ecx
lea edx, [ebp - 0x134]
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x164]
push edx
lea eax, [ebp - 0x168]
call fcn.00402ee0
cmp dword [ebp - 0x134], esi
mov byte [ebp - 4], 2
setne bl
cmp dword [ebp - 0xe4], 8
jb 0x40277e
mov eax, dword [ebp - 0xf8]
push eax
call edi
add esp, 4
test bl, bl
je 0x4029f8
xor ecx, ecx
mov edi, 7
xor ebx, ebx
push 0xa
mov eax, str.DeviceList
lea esi, [ebp - 0x114]
mov dword [ebp - 0x100], edi
mov dword [ebp - 0x104], ebx
mov word [ebp - 0x114], cx
call fcn.00401ac0
mov ecx, esi
lea esi, [ebp - 0x168]
mov byte [ebp - 4], 5
call fcn.00402ba0
mov ecx, dword [eax]
cmp ecx, ebx
je 0x4027da
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov dword [ebp - 0x134], eax
jmp 0x4027e0
mov dword [ebp - 0x134], ebx
mov byte [ebp - 4], 7
cmp dword [ebp - 0x100], 8
jb 0x4027fd
mov ecx, dword [ebp - 0x114]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x104], ebx
xor edx, edx
lea ecx, [ebp - 0x134]
lea ebx, [ebp - 0x180]
mov dword [ebp - 0x100], edi
mov word [ebp - 0x114], dx
call fcn.004037e0
push 0x24
mov byte [ebp - 4], 8
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x13c], eax
xor ecx, ecx
mov byte [ebp - 4], 9
cmp eax, ecx
je 0x402864
cmp dword [ebp - 0x11c], 8
mov ebx, dword [ebp - 0x130]
jae 0x402857
lea ebx, [ebp - 0x130]
mov ecx, eax
call fcn.00401040
mov ebx, eax
xor ecx, ecx
jmp 0x402866
xor ebx, ebx
mov edi, ebx
mov dword [ebp - 0x138], edi
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x104], ecx
mov dword [ebp - 0x100], ecx
xor eax, eax
mov dword [ebp - 0xe4], 7
mov dword [ebp - 0xe8], ecx
mov word [ebp - 0xf8], ax
push 0xb
mov eax, str.ConnectInfo
lea esi, [ebp - 0xf8]
mov byte [ebp - 4], 0xb
call fcn.00401ac0
push 4
mov eax, str..dat
mov ecx, esi
call fcn.00401990
cmp dword [ebp - 0xe4], 8
mov ecx, dword [ebp - 0xf8]
jae 0x4028ce
mov ecx, esi
push ebx
lea edx, [ebp - 0x108]
call fcn.00401400
mov esi, dword [ebp - 0x108]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp esi, dword [ebp - 0x104]
je 0x402908
cmp dword [esi + 0x14], 8
jb 0x4028fe
mov eax, dword [esi]
push eax
call ebx
add esi, 0x1c
jmp 0x4028e6
mov eax, esi
push eax
call ebx
add esi, 0x1c
jmp 0x4028e6
push str..dat
push str.ConnectInfo
push str._s_s
lea ecx, [ebp - 0xdc]
push 0x64
push ecx
call dword [sym.imp.MSVCR100.dll_swprintf_s]
add esp, 0x14
push edi
lea ecx, [ebp - 0x168]
lea edx, [ebp - 0xdc]
call fcn.004011e0
cmp dword [ebp - 0xe4], 8
mov ebx, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
jb 0x402956
mov edx, dword [ebp - 0xf8]
push edx
call ebx
add esp, 4
mov byte [ebp - 4], 8
mov edi, dword [ebp - 0x108]
xor eax, eax
mov dword [ebp - 0xe4], 7
mov dword [ebp - 0xe8], 0
mov word [ebp - 0xf8], ax
test edi, edi
je 0x4029b7
mov esi, edi
cmp esi, dword [ebp - 0x104]
je 0x4029b1
cmp dword [esi + 0x14], 8
jb 0x402999
mov ecx, dword [esi]
push ecx
call ebx
add esp, 4
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], dx
add esi, 0x1c
jmp 0x402983
push edi
call ebx
add esp, 4
lea esi, [ebp - 0x180]
mov byte [ebp - 4], 0xc
call fcn.00403160
mov eax, dword [ebp - 0x180]
push eax
call ebx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x134]
add esp, 4
mov dword [ebp - 0x180], 0
test ecx, ecx
je 0x4029f2
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov eax, dword [ebp - 0x158]
xor esi, esi
cmp eax, esi
je 0x402a0a
push eax
call edi
add esp, 4
lea ecx, [ebp - 0x164]
mov dword [ebp - 0x158], esi
mov dword [ebp - 0x154], esi
mov dword [ebp - 0x150], esi
mov dword [ebp - 0x13c], ecx
mov edx, ecx
push edx
mov byte [ebp - 4], 0xd
call fcn.004030b0
mov eax, dword [ebp - 0x164]
push eax
call edi
add esp, 4
cmp dword [ebp - 0x11c], 8
jb 0x402a55
mov ecx, dword [ebp - 0x130]
push ecx
call edi
add esp, 4
xor edx, edx
mov dword [ebp - 0x11c], 7
mov dword [ebp - 0x120], esi
mov word [ebp - 0x130], dx
mov dword [ebp - 4], 0xffffffff
jmp 0x402a86
mov ecx, dword [ebp - 0x138]
cmp ecx, esi
je 0x402a98
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00424ffa
mov esp, ebp
pop ebp
ret