Function at 0x4f1250
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x59daa7
mov eax, dword fs:[0]
push eax
sub esp, 0x138
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x14c]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x1c], ebx
call fcn.0046b3e0
mov esi, eax
cmp dword [esi + 0x78], ebx
jne 0x4f12a4
lea ecx, [esi + 0x8c]
call fcn.0046e970
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], 1
cmp dword [esi + 0x74], ebx
je 0x4f17ce
lea eax, [esp + 0x54]
push eax
call fcn.004801d0
lea ecx, [esp + 0x14]
push ecx
mov ecx, str.host
mov dword [esp + 0x158], ebx
call fcn.00481430
mov edx, dword [esp + 0x15c]
mov byte [esp + 0x154], 1
mov eax, dword [edx + 4]
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x5c]
call fcn.0047dc40
mov byte [esp + 0x154], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4f1315
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, 0x5adcfc
call fcn.00481430
lea edx, [esp + 0x44]
push edx
lea edi, [esp + 0x28]
mov byte [esp + 0x158], 2
call fcn.00477950
mov byte [esp + 0x154], 4
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4f1362
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, 0x5b0b80
call fcn.00481430
lea edx, [esp + 0x14]
mov bl, 5
push edx
mov ecx, str.runtype
mov byte [esp + 0x158], bl
call fcn.00481430
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x18]
mov byte [esp + 0x158], 6
call fcn.00519860
mov byte [esp + 0x154], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4f13ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x154], 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4f13f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, str.pageparam
call fcn.00481430
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x58]
push eax
mov byte [esp + 0x15c], 7
call fcn.0047ffa0
mov bl, 8
push eax
lea esi, [esp + 0x24]
mov byte [esp + 0x158], bl
call fcn.005194c0
add esp, 4
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x158], 9
call fcn.00519860
mov byte [esp + 0x154], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4f146b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x154], 7
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4f1493
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x154], 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4f14bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, 0x5add10
call fcn.00481430
lea edx, [esp + 0x18]
push edx
mov ecx, 0x5aeb14
mov byte [esp + 0x158], 0xa
call fcn.00481430
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x50]
mov byte [esp + 0x160], 0xb
call fcn.00519620
mov byte [esp + 0x154], 0xd
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4f1529
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x154], 0xe
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4f1551
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x5f7780]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f7780
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x158], 0xf
call fcn.0047b3f0
add esp, 4
push eax
lea edx, [esp + 0x34]
push edx
mov ebx, str.kybox.exe
mov byte [esp + 0x15c], 0x10
call fcn.00478cb0
mov byte [esp + 0x15c], 0x11
mov eax, dword [eax]
push eax
push str.__s_
lea edi, [esp + 0x24]
call fcn.00481690
mov byte [esp + 0x164], 0x10
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4f15d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x154], 0xf
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4f1601
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x2c]
cmp dword [ebp - 0xc], 0
je 0x4f161d
push ebp
push 0x5aeb18
lea edi, [esp + 0x1c]
call fcn.004815b0
add esp, 8
xor eax, eax
push 0x40
push eax
lea ecx, [esp + 0x88]
push ecx
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x88], 0x44
call fcn.005695a0
mov esi, dword [esp + 0x20]
add esp, 0xc
cmp dword [esi - 4], 1
jle 0x4f166d
mov edx, dword [esi - 0xc]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00477860
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x80]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test esi, esi
jne 0x4f1697
xor ecx, ecx
jmp 0x4f16b5
mov ecx, esi
lea edi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4f16a0
sub ecx, edi
sar ecx, 1
js 0x4f18ac
cmp ecx, dword [esi - 8]
jg 0x4f18ac
test eax, eax
mov dword [esi - 0xc], ecx
mov word [esi + ecx*2], 0
jne 0x4f17ea
call fcn.0047f920
test eax, eax
mov ebx, 0x12
mov byte [esp + 0x154], bl
je 0x4f172d
cmp dword [eax + 0x24], 4
jg 0x4f172d
push 4
push str.KMainDlg::_InitDoyo
push 0xa2c
push str..kmaindlg.cpp
lea eax, [esp + 0xd8]
push eax
call fcn.0047f220
push 0x5b9aac
mov byte [esp + 0x158], 0x13
push eax
mov dword [esp + 0x24], 1
call fcn.0047f6e0
push ebp
push eax
call fcn.0047f6e0
add esp, 0x10
mov dword [esp + 0x154], ebx
test byte [esp + 0x1c], 1
je 0x4f1748
lea ecx, [esp + 0xc8]
push ecx
call fcn.0047eb40
mov eax, dword [0x5f9180]
test eax, eax
je 0x4f1758
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea eax, [esi - 0x10]
mov byte [esp + 0x154], 0xe
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4f177c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x154], 4
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4f17a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0x158], 0
call fcn.004778e0
mov dword [esp + 0x154], 0xffffffff
lea ecx, [esp + 0x54]
mov dword [esp + 0x70], vtable.BkJson::Handle.0
call fcn.00484ec0
mov ecx, dword [esp + 0x14c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret 4
call fcn.0047f920
test eax, eax
mov ebx, 0x14
mov byte [esp + 0x154], bl
je 0x4f1848
cmp dword [eax + 0x24], 4
jg 0x4f1848
push 4
push str.KMainDlg::_InitDoyo
push 0xa31
push str..kmaindlg.cpp
lea edx, [esp + 0xd8]
push edx
call fcn.0047f220
push 0x5b9af8
mov byte [esp + 0x158], 0x15
push eax
mov dword [esp + 0x24], 2
call fcn.0047f6e0
push ebp
push eax
call fcn.0047f6e0
add esp, 0x10
mov dword [esp + 0x154], ebx
test byte [esp + 0x1c], 2
je 0x4f1863
lea eax, [esp + 0xc8]
push eax
call fcn.0047eb40
mov eax, dword [0x5f9180]
test eax, eax
je 0x4f1873
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x15c]
mov dword [eax + 0x3bf8], edx
lea eax, [esi - 0x10]
mov byte [esp + 0x154], 0xe
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4f1770
push 0x80070057
call fcn.00473d10
int3