Function at 0x404ba4
Capabilities:
Create process on windows
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x404bad
mov eax, dword [ebp - 4]
add esp, 0xfffff4b8
push ebx
mov eax, 0x4878f8
call fcn.00462a08
mov word [ebp - 0x2c], 8
xor edx, edx
mov dword [ebp - 4], edx
inc dword [ebp - 0x20]
mov word [ebp - 0x2c], 0x14
push str.Starting_JCOP_emulator_...
call fcn.00403908
pop ecx
push 0x487032
call fcn.00404380
pop ecx
push 0x3e8
call sub.KERNEL32.DLL_Sleep
push 0x48703b
call fcn.00404380
pop ecx
push 0x3e8
call sub.KERNEL32.DLL_Sleep
push 0x487044
call fcn.00404380
pop ecx
lea ecx, [ebp - 0x13dc]
push ecx
call fcn.004044d8
pop ecx
test al, al
jne 0x404c53
xor eax, eax
push eax
dec dword [ebp - 0x20]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0046ca14
pop eax
mov edx, dword [ebp - 0x3c]
mov dword fs:[0], edx
jmp 0x404eba
mov word [ebp - 0x2c], 0x20
mov edx, str.JCOP.EXE
lea eax, [ebp - 0xc]
call fcn.0046c9a0
inc dword [ebp - 0x20]
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x13dc]
lea eax, [ebp - 8]
call fcn.0046c9a0
inc dword [ebp - 0x20]
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x10]
inc dword [ebp - 0x20]
pop edx
call fcn.0046ca58
lea edx, [ebp - 0x10]
lea eax, [ebp - 4]
call fcn.0046ca44
dec dword [ebp - 0x20]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0046ca14
dec dword [ebp - 0x20]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0046ca14
dec dword [ebp - 0x20]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0046ca14
push str.JCOP_EXE
lea ecx, [ebp - 0x17c4]
push ecx
call fcn.00462754
add esp, 8
push str.EXEBINFILE
lea eax, [ebp - 0x17c4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
push eax
call sub.KERNEL32.DLL_FindResourceA
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x404d44
push str.ERROR:_Can_not_find_resource_JCOP.EXE
lea edx, [ebp - 0x2b4c]
push edx
call fcn.00464204
add esp, 8
lea ecx, [ebp - 0x2b4c]
push ecx
call fcn.00403908
pop ecx
xor eax, eax
push eax
dec dword [ebp - 0x20]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0046ca14
pop eax
mov edx, dword [ebp - 0x3c]
mov dword fs:[0], edx
jmp 0x404eba
push dword [ebp - 0x50]
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
push eax
call sub.KERNEL32.DLL_LoadResource
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x4c]
call sub.KERNEL32.DLL_LockResource
mov dword [ebp - 0x48], eax
push dword [ebp - 0x50]
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
push eax
call sub.KERNEL32.DLL_SizeofResource
mov dword [ebp - 0x44], eax
mov dl, 1
mov eax, dword [0x409208]
call fcn.00404b2c
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x40]
mov ebx, dword [eax]
call dword [ebx + 0xc]
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x40]
mov ebx, dword [eax]
call dword [ebx + 0x10]
push dword [ebp - 0x4c]
call sub.KERNEL32.DLL_FreeResource
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x40]
call fcn.0040dab4
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
je 0x404de8
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
mov dword [ebp - 0x14], edx
mov word [ebp - 0x2c], 0x38
mov edx, 3
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x2c], 0x2c
cmp dword [ebp - 4], 0
je 0x404df3
mov eax, dword [ebp - 4]
jmp 0x404df8
mov eax, 0x4870a6
push eax
push str.Saved_JCOP.EXE_to:__s
lea edx, [ebp - 0x2b4c]
push edx
call fcn.00464204
add esp, 0xc
lea ecx, [ebp - 0x2b4c]
push ecx
call fcn.00403908
pop ecx
push 0
push 0
push 0x4870ac
cmp dword [ebp - 4], 0
je 0x404e2e
mov eax, dword [ebp - 4]
jmp 0x404e33
mov eax, 0x4870ad
push eax
push 0x4870a7
push 0
call sub.SHELL32.DLL_ShellExecuteA
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0x20
jg 0x404e8a
push str.ERROR:_Can_not_start_JCOP.EXE
lea edx, [ebp - 0x2b4c]
push edx
call fcn.00464204
add esp, 8
lea ecx, [ebp - 0x2b4c]
push ecx
call fcn.00403908
pop ecx
xor eax, eax
push eax
dec dword [ebp - 0x20]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0046ca14
pop eax
mov edx, dword [ebp - 0x3c]
mov dword fs:[0], edx
jmp 0x404eba
push str.JCOP_emulator_started_succesfull_on_port_8050
call fcn.00403908
pop ecx
push 0x64
call sub.KERNEL32.DLL_Sleep
mov al, 1
push eax
dec dword [ebp - 0x20]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0046ca14
pop eax
mov edx, dword [ebp - 0x3c]
mov dword fs:[0], edx
pop ebx
mov esp, ebp
pop ebp
ret