Function at 0x407d7c
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
mov eax, 0x4170b0
call fcn.0040ef50
sub esp, 0x28
push ebx
push esi
push edi
mov esi, ecx
push str.CMainFrame::InstallEBAPIOld___n
call fcn.004024eb
pop ecx
mov edi, 0x420bb0
push edi
lea ecx, [ebp - 0x18]
call fcn.00401595
and dword [ebp - 4], 0
push edi
lea ecx, [ebp - 0x10]
call fcn.00401595
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.004013e3
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.004013e3
push edi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.00401595
lea edi, [esi + 0xcc]
mov byte [ebp - 4], 4
mov ecx, edi
call fcn.00401b7a
test eax, eax
lea eax, [esi + 0x80]
mov ebx, 0x41c3a8
push eax
push ebx
je 0x407e42
lea eax, [ebp - 0x28]
push eax
call fcn.004017d5
add esp, 0xc
push str.ES_Comb.exe_
push eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 5
push eax
call fcn.0040176a
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.00401618
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.00401563
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
jmp 0x407fec
lea eax, [ebp - 0x34]
push eax
call fcn.004017d5
add esp, 0xc
push 0x41c058
push eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 7
push eax
call fcn.0040176a
add esp, 0xc
push edi
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 8
push eax
call fcn.004016fe
add esp, 0xc
push ebx
push eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 9
push eax
call fcn.0040176a
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xa
call fcn.00401618
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 9
call fcn.00401563
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
call fcn.00401563
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 7
call fcn.00401563
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.00401563
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
call fcn.00408572
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xb
call fcn.00401618
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.00401563
lea ecx, [ebp - 0x1c]
call fcn.00401b7a
test eax, eax
je 0x407f3c
lea ecx, [ebp - 0x1c]
mov dword [esi + 0x70], 7
mov dword [esi + 0x74], 0x64
mov byte [ebp - 4], 3
call fcn.00401563
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00401563
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00401563
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00401563
or dword [ebp - 4], 0xffffffff
jmp 0x4084ff
cmp dword [0x420bd4], 1
jne 0x407f52
push str.__ES_CombLog
lea ecx, [ebp - 0x18]
call fcn.004019f3
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x30]
push str.__F_
push eax
call fcn.004017d5
add esp, 0xc
push ebx
push eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0xc
push eax
call fcn.0040176a
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xd
call fcn.00401a26
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xc
call fcn.00401563
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.00401563
lea eax, [esi + 0xd0]
push eax
lea eax, [ebp - 0x30]
push str._Ini_
push eax
call fcn.004017d5
add esp, 0xc
push 0x41d054
push eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0xe
push eax
call fcn.0040176a
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xf
call fcn.00401618
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xe
call fcn.00401563
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.00401563
push dword [esi + 4]
mov edi, 0x41cf64
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.00402132
add esp, 0xc
lea eax, [ebp - 0x20]
push 0x4c9
push edi
push eax
call fcn.00402132
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push str._WM
push eax
call fcn.004017d5
add esp, 0xc
push 0x41cf54
push eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0x10
push eax
call fcn.0040176a
add esp, 0xc
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x11
push ecx
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004016fe
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x12
call fcn.00401a26
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x11
call fcn.00401563
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x10
call fcn.00401563
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.00401563
push str.__s__a__ActIn
lea ecx, [ebp - 0x10]
call fcn.004019f3
mov eax, dword [esi + 0x78]
cmp eax, 2
je 0x4080a3
cmp eax, 3
jne 0x4080bc
cmp dword [esi + 0x7c], 0
je 0x4080c3
cmp dword [esi + 0x28], 0
jne 0x4080c3
push str.__RepPMY
lea ecx, [ebp - 0x10]
call fcn.004019f3
push str.__EBPA:On
jmp 0x4080d5
push str.__RepPMN
lea ecx, [ebp - 0x10]
call fcn.004019f3
push str.__EBPLPT:NC_OTH:On
lea ecx, [ebp - 0x10]
call fcn.004019f3
push 0x420bb0
lea ecx, [ebp - 0x14]
call fcn.00401595
push 0x10
mov byte [ebp - 4], 0x13
call fcn.0040efd0
pop ecx
mov dword [ebp - 0x34], eax
xor ecx, ecx
mov byte [ebp - 4], 0x14
cmp eax, ecx
je 0x408120
push 0x20019
push ecx
push ecx
push str.SoftwareEPSONEBAPIInfo
push 0x80000002
mov ecx, eax
call fcn.0040dc20
mov dword [ebp - 0x28], eax
jmp 0x408123
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 0x13
cmp dword [eax + 8], 0
je 0x408180
push 0x420bb0
lea ecx, [ebp - 0x2c]
call fcn.00401595
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
push 0x100
push eax
lea eax, [ebp - 0x34]
push str.InstallDir
push eax
mov byte [ebp - 4], 0x15
call fcn.0040df98
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x16
call fcn.00401618
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x15
call fcn.00401563
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x13
call fcn.00401563
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x40818d
mov eax, dword [ecx]
push 1
call dword [eax]
lea eax, [ebp - 0x14]
push 0x420bb0
push eax
call fcn.00401e2f
pop ecx
test al, al
pop ecx
je 0x40832d
push 0x10
call fcn.0040efd0
pop ecx
mov dword [ebp - 0x34], eax
xor ecx, ecx
mov byte [ebp - 4], 0x17
cmp eax, ecx
je 0x4081d7
push 0x20019
push ecx
push ecx
push str.SoftwareEPSONEBPrinterEBRequestRouter
push 0x80000002
mov ecx, eax
call fcn.0040dc20
mov dword [ebp - 0x28], eax
jmp 0x4081da
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 0x13
cmp dword [eax + 8], 0
je 0x408237
push 0x420bb0
lea ecx, [ebp - 0x2c]
call fcn.00401595
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
push 0x100
push eax
lea eax, [ebp - 0x34]
push str.EXEPath
push eax
mov byte [ebp - 4], 0x18
call fcn.0040df98
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x19
call fcn.00401618
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x18
call fcn.00401563
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x13
call fcn.00401563
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x408244
mov eax, dword [ecx]
push 1
call dword [eax]
lea eax, [ebp - 0x14]
push 0x420bb0
push eax
call fcn.00401e9b
pop ecx
test al, al
pop ecx
je 0x40829b
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00401d24
test eax, eax
jge 0x408275
push 0x420bb0
lea ecx, [ebp - 0x14]
call fcn.00401680
jmp 0x40829b
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x14]
call fcn.00401c38
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x1a
call fcn.00401618
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x13
call fcn.00401563
lea eax, [ebp - 0x14]
push 0x420bb0
push eax
call fcn.00401e2f
pop ecx
test al, al
pop ecx
je 0x4082e0
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
call fcn.0040446d
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x1b
call fcn.00401618
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x13
call fcn.00401563
push str.EPSONEBAPI
lea ecx, [ebp - 0x14]
call fcn.004019f3
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x30]
push str.__Dir_
push eax
call fcn.004017d5
add esp, 0xc
push 0x22
push eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0x1c
push eax
call fcn.004018cd
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x1d
call fcn.00401a26
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x1c
call fcn.00401563
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x13
call fcn.00401563
lea eax, [esi + 0x84]
push eax
lea eax, [ebp - 0x30]
push str.__AN_
push eax
call fcn.004017d5
add esp, 0xc
push ebx
push eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0x1e
push eax
call fcn.0040176a
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x1f
call fcn.00401a26
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x1e
call fcn.00401563
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x13
call fcn.00401563
push dword [esi + 4]
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.00402132
add esp, 0xc
lea eax, [ebp - 0x20]
push 0x4c8
push edi
push eax
call fcn.00402132
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push str.__RetWM:
push eax
call fcn.004017d5
add esp, 0xc
push 0x41cf54
push eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0x20
push eax
call fcn.0040176a
add esp, 0xc
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x21
push ecx
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004016fe
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x22
call fcn.00401a26
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x21
call fcn.00401563
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x20
call fcn.00401563
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x13
call fcn.00401563
xor edi, edi
cmp dword [esi + 0x30], edi
jne 0x40841e
cmp dword [esi + 0x108], edi
je 0x40842b
push str.__EMSTERM
lea ecx, [ebp - 0x10]
call fcn.004019f3
lea ecx, [esi + 0xcc]
call fcn.00401b7a
or ebx, 0xffffffff
test eax, eax
je 0x40844b
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x18]
push eax
call fcn.00401a26
jmp 0x40849c
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
lea ecx, [ebp - 0x1c]
call fcn.00401e04
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, ebx
mov dword [ebp - 0x2c], eax
je 0x4084c0
lea eax, [ebp - 0x34]
push edi
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x34], edi
call fcn.00401b8a
push eax
lea ecx, [ebp - 0x10]
call fcn.00401e04
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 5
lea ecx, [ebp - 0x18]
call fcn.00401e04
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
jae 0x40850b
mov dword [esi + 0x70], 4
mov dword [esi + 0x74], 1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00401563
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.00401563
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00401563
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00401563
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00401563
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x18]
call fcn.00401563
xor eax, eax
jmp 0x408563
push 1
lea ecx, [ebp - 0x14]
pop edi
mov byte [ebp - 4], 4
mov dword [esi + 0xb0], edi
mov dword [esi + 0xb4], edi
call fcn.00401563
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.00401563
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00401563
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00401563
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00401563
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.00401563
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret