Function at 0x437d30
Capabilities:
Create process on windows
Delete file
Get common file path
Get program files directory
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588a4d
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x5ef60c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x208
xor esi, esi
lea ecx, [ebp - 0x25c]
push esi
push ecx
mov dword [ebp - 0x270], eax
call fcn.0055b030
add esp, 0xc
push 0x40
lea edx, [ebp - 0x54]
push esi
push edx
call fcn.0055b030
add esp, 0xc
push 0x5b95a8
lea ecx, [ebp - 0x264]
call fcn.00401a30
push 0x5b95a8
lea ecx, [ebp - 0x260]
mov dword [ebp - 4], esi
call fcn.00401a30
push 0x5b95a8
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 1
call fcn.00401a30
push 0x3c
lea eax, [ebp - 0x2b8]
push esi
push eax
mov byte [ebp - 4], 2
call fcn.0055b030
mov ecx, dword [edi]
mov eax, dword [ecx - 0xc]
add esp, 0xc
test eax, eax
je 0x43807d
mov ecx, edi
call fcn.00438640
mov esi, eax
test esi, esi
je 0x43807d
push 0
push 0x26
lea edx, [ebp - 0x25c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, eax
test esi, esi
je 0x43807d
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x264]
push str._sepsonEpson_Scan_2Corees2utility.exe
push ecx
call fcn.00402810
mov edx, dword [ebp - 0x260]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
add esp, 0xc
or eax, ecx
jge 0x437e5e
push 0x104
lea ecx, [ebp - 0x260]
call fcn.00401de0
mov edx, dword [ebp - 0x260]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [ebp - 0x260]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.005581e8
add esp, 8
test eax, eax
jl 0x43811d
mov ecx, dword [ebp - 0x260]
cmp eax, dword [ecx - 8]
jg 0x43811d
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp - 0x260]
xor edx, edx
lea esi, [ebp - 0x260]
mov word [ecx + eax*2], dx
call fcn.00410120
push str.EPSON_scn.ini
mov ecx, esi
call fcn.00403fe0
push edi
lea edx, [ebp - 0x274]
push str._UNITINFO_DNAME__
push edx
call fcn.0041a9a0
add esp, 0xc
push str.__INI__
push eax
lea eax, [ebp - 0x26c]
push eax
mov byte [ebp - 4], 3
call fcn.0040afd0
add esp, 0xc
mov ecx, esi
push ecx
push eax
lea edx, [ebp - 0x27c]
push edx
mov byte [ebp - 4], 4
call fcn.004135c0
add esp, 0xc
push 0x5bbd70
push eax
lea eax, [ebp - 0x278]
push eax
mov byte [ebp - 4], 5
call fcn.0040afd0
add esp, 0xc
push eax
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 6
call fcn.00401f40
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x278]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x437f4e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x27c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x437f74
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x26c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x437f9a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x274]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x437fc0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x264]
mov edx, dword [ebp - 0x268]
lea eax, [ebp - 0x2b8]
push eax
mov dword [ebp - 0x2b8], 0x3c
mov dword [ebp - 0x2b4], 0x4040
mov dword [ebp - 0x2ac], str.open
mov dword [ebp - 0x2a8], ecx
mov dword [ebp - 0x2a4], edx
mov dword [ebp - 0x29c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
test esi, esi
je 0x43807d
mov ecx, dword [ebp - 0x280]
push 0x7530
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x280]
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x43803c
xor esi, esi
jmp 0x43807d
mov eax, dword [ebp - 0x260]
push eax
push 0x20
lea ecx, [ebp - 0x54]
push ecx
push 0x5b95a8
push 0x5c030c
push str.Firmware
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [ebp - 0x270]
lea edx, [ebp - 0x54]
push edx
mov ecx, esi
call fcn.004019e0
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
xor ecx, ecx
test eax, eax
setne cl
mov esi, ecx
mov edx, dword [ebp - 0x260]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4380b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x260]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4380d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4380ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0055799e
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00401fd0
int3