Function at 0x401120
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4417f8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebp
push esi
mov eax, dword [0x456600]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
call fcn.004050b0
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
or ebp, 0xffffffff
test eax, eax
jg 0x40116d
mov esi, ebp
jmp 0x40118a
push 0x22
push ecx
call fcn.0042cc32
mov ecx, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x401184
mov esi, ebp
jmp 0x40118a
sub eax, ecx
sar eax, 1
mov esi, eax
push 0x22
push ecx
call fcn.0042cc58
mov ecx, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x4011a1
mov eax, ebp
jmp 0x4011a5
sub eax, ecx
sar eax, 1
test esi, esi
jne 0x401201
mov ecx, dword [ecx - 0xc]
lea edx, [eax + 1]
cmp edx, ecx
jne 0x401201
dec eax
push eax
push 1
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404a00
mov byte [esp + 0x28], 1
mov esi, dword [esp + 0x18]
push esi
lea ecx, [esp + 0x14]
push 0x448ef8
push ecx
call fcn.004048a0
lea eax, [esi - 0x10]
add esp, 0xc
mov byte [esp + 0x28], 0
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401201
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00410348
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40121b
push 0x80004005
call fcn.00404f30
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
mov byte [esp + 0x28], 2
call fcn.00410348
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40124a
push 0x80004005
call fcn.00404f30
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
mov byte [esp + 0x28], 3
call fcn.00410348
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x401279
push 0x80004005
call fcn.00404f30
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x7c
mov byte [esp + 0x2c], 4
mov ecx, dword [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.004102cb
mov eax, dword [esp + 0x10]
push 0x7c
push 1
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.004102cb
mov edx, dword [esp + 0x10]
push 0x7c
push 2
push edx
lea eax, [esp + 0x20]
push eax
call fcn.004102cb
mov ecx, dword [esp + 0xc]
cmp dword [ecx - 0xc], 0
mov eax, dword [esp + 0x30]
jne 0x4013db
cmp dword [eax - 0xc], 0
je 0x4013db
push 0x5c
push eax
call fcn.0042cc58
add esp, 8
test eax, eax
jne 0x4012f6
mov eax, ebp
jmp 0x4012fc
sub eax, dword [esp + 0x30]
sar eax, 1
push eax
push 0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x3c]
call fcn.00404a00
mov eax, dword [eax]
push eax
push 0x448ef8
lea edx, [edi + 4]
call fcn.004044b0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40133f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
mov esi, dword [eax - 0xc]
push 0x5c
push eax
call fcn.0042cc58
add esp, 8
test eax, eax
jne 0x401359
mov eax, ebp
jmp 0x40135f
sub eax, dword [esp + 0x30]
sar eax, 1
push esi
inc eax
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00404a00
mov edx, dword [eax]
push edx
mov edx, dword [edi]
push 0x448ef8
add edx, 4
call fcn.004044b0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4013a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov edx, dword [edi]
push ecx
push 0x448ef8
add edx, 0x20c
call fcn.004044b0
mov byte [esp + 0x30], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x401602
push str.RunGame.exe
push eax
call fcn.0042caff
add esp, 8
test eax, eax
jne 0x40151e
push 0x448f18
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00404710
lea ecx, [esp + 0x3c]
push ecx
push eax
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x40], 5
call fcn.00404320
mov byte [esp + 0x40], 4
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 0x18
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401441
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x18]
push 1
push ecx
push 0
push edx
push 0x448f1c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40147b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 3
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40149f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 2
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4014c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4014e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], ebp
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x401508
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
add esp, 0x20
ret 4
mov ecx, dword [esp + 0xc]
push 0x5c
push ecx
call fcn.0042cc58
mov ecx, dword [esp + 0x14]
add esp, 8
test eax, eax
jne 0x401539
mov eax, ebp
jmp 0x40153d
sub eax, ecx
sar eax, 1
mov ecx, dword [ecx - 0xc]
inc eax
cmp eax, ecx
je 0x401599
mov edx, dword [esp + 0x30]
cmp dword [edx - 0xc], 0
je 0x401599
push 0x448f18
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00404710
add esp, 0xc
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 6
call fcn.004045b0
mov byte [esp + 0x28], 4
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401599
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
push ecx
push 0x448ef8
lea edx, [edi + 4]
call fcn.004044b0
mov edx, dword [esp + 0x38]
push edx
mov edx, dword [edi]
push 0x448ef8
add edx, 4
call fcn.004044b0
mov eax, dword [esp + 0x24]
mov edx, dword [edi]
push eax
push 0x448ef8
add edx, 0x20c
call fcn.004044b0
push 0
push str.succeed
push str.Init_base_value_from_cmdLine
call fcn.0040b6a0
mov byte [esp + 0x4c], 3
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
add esp, 0x24
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40160e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 2
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov edx, ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401632
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov edx, ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401656
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], ebp
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x401677
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
add esp, 0x20
ret 4