Function at 0x408616
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x417140
call fcn.0040ef50
sub esp, 0x28
push ebx
push esi
push edi
mov esi, ecx
push str.CMainFrame::UninstallEBAPI___n
call fcn.004024eb
pop ecx
mov edi, 0x41c3a8
push edi
lea ecx, [ebp - 0x10]
call fcn.00401595
xor ebx, ebx
push 0x20019
push ebx
push ebx
push str.SoftwareEPSONEBAPIInfo
push 0x80000002
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], ebx
call fcn.0040dc20
cmp dword [ebp - 0x2c], ebx
mov byte [ebp - 4], 1
jne 0x408687
and byte [ebp - 4], bl
lea ecx, [ebp - 0x34]
call fcn.0040dcd0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401563
push 1
pop eax
jmp 0x4088be
mov ebx, 0x420bb0
lea ecx, [ebp - 0x1c]
push ebx
call fcn.00401595
lea eax, [ebp - 0x1c]
push 0x100
push eax
lea eax, [ebp - 0x20]
push str.InstallDir
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.0040df98
push ebx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00401a26
push eax
call fcn.00401e2f
pop ecx
mov bl, al
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.00401563
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00401563
test bl, bl
je 0x4086fa
mov dword [esi + 0x70], 3
mov dword [esi + 0x74], 0xb
jmp 0x40885c
push str.ebapiset.exe___ActUn
lea ecx, [ebp - 0x10]
call fcn.004019f3
lea eax, [esi + 0x84]
push eax
lea eax, [ebp - 0x1c]
push str.__AN_
push eax
call fcn.004017d5
add esp, 0xc
push edi
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 4
push eax
call fcn.0040176a
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.00401a26
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.00401563
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00401563
lea ecx, [ebp - 0x18]
call fcn.004013e3
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.004013e3
push dword [esi + 4]
mov edi, 0x41cf64
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 7
push edi
push eax
call fcn.00402132
add esp, 0xc
lea eax, [ebp - 0x14]
push 0x4c8
push edi
push eax
call fcn.00402132
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push str.__RetWM:
push eax
call fcn.004017d5
add esp, 0xc
push 0x41cf54
push eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 8
push eax
call fcn.0040176a
add esp, 0xc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004016fe
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xa
call fcn.00401a26
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x20]
call fcn.00401563
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 8
call fcn.00401563
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
call fcn.00401563
push dword [ebp - 0x10]
push str.CMainFrame::UninstallEBAPI___Execute_EBAPI_SDK___s_n
call fcn.004024eb
pop ecx
pop ecx
push 5
lea ecx, [ebp - 0x10]
call fcn.00401e04
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
jae 0x408878
push str.CMainFrame::UninstallEBAPI___exit_error_n
mov dword [esi + 0x70], 4
mov dword [esi + 0x74], 1
call fcn.004024eb
pop ecx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x14]
call fcn.00401563
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00401563
and byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.0040dcd0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401563
xor eax, eax
jmp 0x4088be
push str.CMainFrame::UninstallEBAPI___exit_n
call fcn.004024eb
pop ecx
mov byte [ebp - 4], 6
push 1
lea ecx, [ebp - 0x14]
pop edi
mov dword [esi + 0xb0], edi
call fcn.00401563
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00401563
and byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.0040dcd0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401563
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret