Function at 0x4077ae
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x416f88
call fcn.0040ef50
sub esp, 0x2c
push ebx
push esi
push edi
mov esi, ecx
push str.CMainFrame::InstallEBAPINew___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 - 0x14]
call fcn.00401595
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.004013e3
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.004013e3
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.004025ab
push ecx
lea eax, [esi + 0xd4]
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
mov byte [ebp - 4], 4
call fcn.004013ef
push ecx
lea eax, [esi + 0x80]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
mov byte [ebp - 4], 5
call fcn.004013ef
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.00402632
test eax, eax
jne 0x407859
mov dword [esi + 0x70], 4
mov dword [esi + 0x74], 0x1e
jmp 0x407cda
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x38]
push eax
call fcn.00402617
lea ebx, [esi + 0x104]
push eax
mov ecx, ebx
mov byte [ebp - 4], 6
call fcn.00401618
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00401563
push ebx
mov ebx, 0x41c3a8
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.004017d5
add esp, 0xc
push 0x41c058
push eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 7
push eax
call fcn.0040176a
add esp, 0xc
lea ecx, [esi + 0xd4]
mov byte [ebp - 4], 8
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004016fe
add esp, 0xc
push ebx
push eax
lea eax, [ebp - 0x28]
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 - 0x28]
mov byte [ebp - 4], 9
call fcn.00401563
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 8
call fcn.00401563
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.00401563
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.00401563
push str.__s__a__ActIn
lea ecx, [ebp - 0x14]
call fcn.004019f3
mov eax, dword [esi + 0x78]
cmp eax, 2
je 0x40792d
cmp eax, 3
jne 0x407946
cmp dword [esi + 0x7c], 0
je 0x40794d
cmp dword [esi + 0x28], 0
jne 0x40794d
push str.__RepPMY
lea ecx, [ebp - 0x14]
call fcn.004019f3
push str.__EBPA:On
jmp 0x40795f
push str.__RepPMN
lea ecx, [ebp - 0x14]
call fcn.004019f3
push str.__EBPLPT:NC_OTH:On
lea ecx, [ebp - 0x14]
call fcn.004019f3
push edi
lea ecx, [ebp - 0x10]
call fcn.00401595
push 0x10
mov byte [ebp - 4], 0xb
call fcn.0040efd0
pop ecx
mov dword [ebp - 0x30], eax
xor ecx, ecx
mov byte [ebp - 4], 0xc
cmp eax, ecx
je 0x4079a6
push 0x20019
push ecx
push ecx
push str.SoftwareEPSONEBAPIInfo
push 0x80000002
mov ecx, eax
call fcn.0040dc20
mov dword [ebp - 0x24], eax
jmp 0x4079a9
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0xb
cmp dword [eax + 8], 0
je 0x407a02
push edi
lea ecx, [ebp - 0x28]
call fcn.00401595
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x28]
push 0x100
push eax
lea eax, [ebp - 0x30]
push str.InstallDir
push eax
mov byte [ebp - 4], 0xd
call fcn.0040df98
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xe
call fcn.00401618
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xd
call fcn.00401563
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xb
call fcn.00401563
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x407a0f
mov eax, dword [ecx]
push 1
call dword [eax]
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.00401e2f
pop ecx
test al, al
pop ecx
je 0x407b9b
push 0x10
call fcn.0040efd0
pop ecx
mov dword [ebp - 0x30], eax
xor ecx, ecx
mov byte [ebp - 4], 0xf
cmp eax, ecx
je 0x407a55
push 0x20019
push ecx
push ecx
push str.SoftwareEPSONEBPrinterEBRequestRouter
push 0x80000002
mov ecx, eax
call fcn.0040dc20
mov dword [ebp - 0x24], eax
jmp 0x407a58
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0xb
cmp dword [eax + 8], 0
je 0x407ab1
push edi
lea ecx, [ebp - 0x28]
call fcn.00401595
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x28]
push 0x100
push eax
lea eax, [ebp - 0x30]
push str.EXEPath
push eax
mov byte [ebp - 4], 0x10
call fcn.0040df98
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x11
call fcn.00401618
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x10
call fcn.00401563
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xb
call fcn.00401563
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x407abe
mov eax, dword [ecx]
push 1
call dword [eax]
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.00401e9b
pop ecx
test al, al
pop ecx
je 0x407b0d
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.00401d24
test eax, eax
jge 0x407ae7
push edi
lea ecx, [ebp - 0x10]
call fcn.00401680
jmp 0x407b0d
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401c38
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x12
call fcn.00401618
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xb
call fcn.00401563
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.00401e2f
pop ecx
test al, al
pop ecx
je 0x407b4e
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.0040446d
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x13
call fcn.00401618
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xb
call fcn.00401563
push str.EPSONEBAPI
lea ecx, [ebp - 0x10]
call fcn.004019f3
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x2c]
push str.__Dir_
push eax
call fcn.004017d5
add esp, 0xc
push 0x22
push eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0x14
push eax
call fcn.004018cd
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x15
call fcn.00401a26
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x14
call fcn.00401563
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xb
call fcn.00401563
lea eax, [esi + 0x84]
push eax
lea eax, [ebp - 0x2c]
push str.__AN_
push eax
call fcn.004017d5
add esp, 0xc
push ebx
push eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0x16
push eax
call fcn.0040176a
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x17
call fcn.00401a26
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x16
call fcn.00401563
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xb
call fcn.00401563
push dword [esi + 4]
mov edi, 0x41cf64
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.00402132
add esp, 0xc
lea eax, [ebp - 0x1c]
push 0x4c8
push edi
push eax
call fcn.00402132
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push str.__RetWM:
push eax
call fcn.004017d5
add esp, 0xc
push 0x41cf54
push eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x18
push eax
call fcn.0040176a
add esp, 0xc
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x19
push ecx
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004016fe
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x1a
call fcn.00401a26
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x19
call fcn.00401563
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x18
call fcn.00401563
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xb
call fcn.00401563
cmp dword [esi + 0x30], 0
jne 0x407c91
cmp dword [esi + 0x108], 0
je 0x407c9e
push str.__EMSTERM
lea ecx, [ebp - 0x14]
call fcn.004019f3
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x18]
push eax
call fcn.00401a26
push 5
lea ecx, [ebp - 0x18]
call fcn.00401e04
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
jae 0x407d1a
lea ecx, [ebp - 0x10]
mov dword [esi + 0x70], 4
mov dword [esi + 0x74], 1
mov byte [ebp - 4], 4
call fcn.00401563
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.00402609
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00401563
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00401563
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00401563
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401563
xor eax, eax
jmp 0x407d6d
push 1
lea ecx, [ebp - 0x10]
pop edi
mov byte [ebp - 4], 4
mov dword [esi + 0xb0], edi
call fcn.00401563
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.00402609
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00401563
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00401563
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00401563
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401563
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret