Function at 0x4088e0
Capabilities:
Copy file
Create thread
Print debug messages
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x45e273
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x46e074]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46e074]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov esi, ecx
push str.pid:
push esi
call fcn.00446f70
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
xor ebp, ebp
add esp, 8
cmp eax, ebp
je 0x408bc7
lea ecx, [esp + 0x18]
push ecx
add eax, 4
push 0x461b24
push eax
mov dword [esp + 0x24], ebp
call fcn.00447082
mov edx, dword [esp + 0x24]
add esp, 0xc
push edx
push ebp
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
cmp ebx, ebp
je 0x408994
call fcn.004081b0
push eax
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea esi, [esp + 0x78]
call fcn.004087f0
push str.._jumpDaemon.ini
mov dword [esp + 0xb4], 2
xor eax, eax
push 0x4d2
push str.gameid
push str.Settings
mov byte [esp + 0xa4], 0
mov dword [esp + 0xa5], eax
mov dword [esp + 0xa9], eax
mov dword [esp + 0xad], eax
mov word [esp + 0xb1], ax
mov byte [esp + 0xb3], al
call edi
push eax
push str.._u.run
lea edx, [esp + 0x9c]
call fcn.004093f0
mov ecx, esi
push ecx
lea edi, [esp + 0xa0]
lea esi, [esp + 0x68]
call fcn.00401b70
add esp, 0xc
lea edx, [esp + 0x14]
mov byte [esp + 0xb0], 3
push edx
lea edi, [esp + 0x7c]
mov byte [esp + 0x18], 0x2e
call fcn.00409360
push 0xffffffffffffffff
lea ecx, [eax + 1]
lea esi, [esp + 0x28]
mov edx, edi
call fcn.00402380
mov byte [esp + 0xb0], 4
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
cmp eax, 0x10
jb 0x408cf7
mov esi, edx
mov dword [esp + 0x18], esi
cmp edx, ebp
je 0x408a86
mov ecx, edx
cmp eax, 0x10
jae 0x408a6d
lea ecx, [esp + 0x28]
cmp ecx, esi
ja 0x408a86
mov ecx, edx
cmp eax, 0x10
jae 0x408a7c
lea ecx, [esp + 0x28]
mov ebp, dword [esp + 0x38]
add ecx, ebp
cmp esi, ecx
jbe 0x408a97
call fcn.00446719
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x38]
mov edx, dword [esp + 0x28]
mov ecx, edx
cmp eax, 0x10
jae 0x408aa2
lea ecx, [esp + 0x28]
lea edi, [ecx + ebp]
test edi, edi
je 0x408ac9
mov ecx, edx
cmp eax, 0x10
jae 0x408ab4
lea ecx, [esp + 0x28]
cmp ecx, edi
ja 0x408ac9
mov ecx, edx
cmp eax, 0x10
jae 0x408ac3
lea ecx, [esp + 0x28]
add ecx, ebp
cmp edi, ecx
jbe 0x408ada
call fcn.00446719
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x38]
mov edx, dword [esp + 0x28]
lea ebx, [esp + 0x24]
cmp eax, 0x10
jb 0x408d06
mov esi, edx
test edx, edx
je 0x408b0d
mov ecx, edx
cmp eax, 0x10
jae 0x408af8
lea ecx, [esp + 0x28]
cmp ecx, esi
ja 0x408b0d
cmp eax, 0x10
mov eax, edx
jae 0x408b07
lea eax, [esp + 0x28]
add eax, ebp
cmp esi, eax
jbe 0x408b12
call fcn.00446719
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x28]
mov ecx, eax
push ecx
push edi
push ebx
push esi
push eax
lea eax, [esp + 0x34]
push eax
call fcn.00403ce0
add esp, 0x1c
mov ecx, 0x461b80
lea edi, [esp + 0x24]
call fcn.00407540
test al, al
je 0x408d0f
mov ecx, dword [esp + 0x60]
mov esi, 0x10
cmp dword [esp + 0x74], esi
jae 0x408b58
lea ecx, [esp + 0x60]
mov eax, dword [esp + 0x7c]
cmp dword [esp + 0x90], esi
jae 0x408b69
lea eax, [esp + 0x7c]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push 0x461377
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
call fcn.004017b0
lea edx, [esp + 0x40]
lea ecx, [esp + 0x5c]
mov byte [esp + 0xb0], 5
call fcn.004086d0
cmp dword [esp + 0x58], esi
jb 0x408bc0
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00445523
add esp, 4
push 0
call fcn.00447344
push str.jumpdaemon_renew
push esi
call fcn.00446f70
add esp, 8
test eax, eax
je 0x408c66
push 0x10
push str.jumpdaemon_renew
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], ebp
mov byte [esp + 0x4c], 0
call fcn.004017b0
push str.._jumpDaemon.ini
push 0x4d2
push str.gameid
push str.Settings
mov dword [esp + 0xc0], ebp
call edi
push eax
lea ecx, [esp + 0x44]
call fcn.004085b0
add esp, 4
test al, al
sete bl
mov dword [esp + 0xb0], 0xffffffff
cmp dword [esp + 0x58], 0x10
jb 0x408c4c
mov eax, dword [esp + 0x44]
push eax
call fcn.00445523
add esp, 4
test bl, bl
je 0x408c56
push ebp
call fcn.00447344
push 0xea60
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x408994
push str.jumpdaemon_exit
push esi
call fcn.00446f70
add esp, 8
test eax, eax
je 0x408c83
call fcn.00408880
push ebp
call fcn.00447344
push str.jumpdaemon_restart
push esi
call fcn.00446f70
add esp, 8
test eax, eax
je 0x408c9f
call fcn.00408880
jmp 0x408994
push str.jumpdumpnow:
push esi
call fcn.00446f70
add esp, 8
cmp eax, ebp
je 0x408994
add eax, 0xc
push eax
lea ecx, [esp + 0x44]
call fcn.00401620
mov eax, 1
mov dword [esp + 0xb0], eax
test byte [0x4709b4], al
jne 0x408ce8
or dword [0x4709b4], eax
mov dword [0x4709a0], ebp
mov dword [0x4709a4], ebp
lea ecx, [esp + 0x40]
call fcn.00401280
push ebp
call fcn.00447344
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], ecx
mov esi, ecx
jmp 0x408a62
lea esi, [esp + 0x28]
jmp 0x408aed
call fcn.004081b0
push eax
xor ebx, ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x408d60
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.GetLastError____ERROR_ALREADY_EXISTS
call esi
push 0x461bac
call esi
push str.GetLastError____ERROR_ALREADY_EXISTS
push 0x461afc
mov edi, 0x47081c
call fcn.00402180
add esp, 8
push ebx
call fcn.00447344
lea edx, [esp + 0x1c]
push edx
push ebx
push esi
push 0x408e10
push ebx
push ebx
mov dword [esp + 0x34], ebx
call fcn.00446ebd
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x10
cmp dword [esp + 0x3c], esi
jb 0x408d99
mov eax, dword [esp + 0x28]
push eax
call fcn.00445523
add esp, 4
mov edi, 0xf
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
cmp dword [esp + 0x74], esi
jb 0x408dbd
mov ecx, dword [esp + 0x60]
push ecx
call fcn.00445523
add esp, 4
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
cmp dword [esp + 0x90], esi
jb 0x408ddf
mov edx, dword [esp + 0x7c]
push edx
call fcn.00445523
add esp, 4
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.004453f2
add esp, 0xa0
ret