Function at 0x401250
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x442d58
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebp
push esi
mov eax, dword [0x457600]
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.00406b70
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
or ebp, 0xffffffff
test eax, eax
jg 0x40129d
mov esi, ebp
jmp 0x4012ba
push 0x22
push ecx
call fcn.0042dff9
mov ecx, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x4012b4
mov esi, ebp
jmp 0x4012ba
sub eax, ecx
sar eax, 1
mov esi, eax
push 0x22
push ecx
call fcn.0042e01f
mov ecx, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x4012d1
mov eax, ebp
jmp 0x4012d5
sub eax, ecx
sar eax, 1
test esi, esi
jne 0x401331
mov ecx, dword [ecx - 0xc]
lea edx, [eax + 1]
cmp edx, ecx
jne 0x401331
dec eax
push eax
push 1
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
call fcn.004064c0
mov byte [esp + 0x28], 1
mov esi, dword [esp + 0x18]
push esi
lea ecx, [esp + 0x14]
push 0x449f08
push ecx
call fcn.00406360
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 0x401331
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0041160a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40134b
push 0x80004005
call fcn.004069f0
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.0041160a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40137a
push 0x80004005
call fcn.004069f0
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.0041160a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4013a9
push 0x80004005
call fcn.004069f0
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.0041158d
mov eax, dword [esp + 0x10]
push 0x7c
push 1
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.0041158d
mov edx, dword [esp + 0x10]
push 0x7c
push 2
push edx
lea eax, [esp + 0x20]
push eax
call fcn.0041158d
mov ecx, dword [esp + 0xc]
cmp dword [ecx - 0xc], 0
mov eax, dword [esp + 0x30]
jne 0x40150b
cmp dword [eax - 0xc], 0
je 0x40150b
push 0x5c
push eax
call fcn.0042e01f
add esp, 8
test eax, eax
jne 0x401426
mov eax, ebp
jmp 0x40142c
sub eax, dword [esp + 0x30]
sar eax, 1
push eax
push 0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x3c]
call fcn.004064c0
mov eax, dword [eax]
push eax
push 0x449f08
lea edx, [edi + 4]
call fcn.00405e60
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 0x40146f
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.0042e01f
add esp, 8
test eax, eax
jne 0x401489
mov eax, ebp
jmp 0x40148f
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.004064c0
mov edx, dword [eax]
push edx
mov edx, dword [edi]
push 0x449f08
add edx, 4
call fcn.00405e60
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 0x4014d4
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 0x449f08
add edx, 0x20c
call fcn.00405e60
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 0x401749
push str.RunGame.exe
push eax
call fcn.0042dea5
add esp, 8
test eax, eax
jne 0x40166c
push 0x449f28
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.004061d0
lea ecx, [esp + 0x3c]
push ecx
push eax
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x40], 5
call fcn.00405250
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 0x401571
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 0x449f2c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
push eax
push ecx
push str.MSG:_Excute_from_cmdline__file_s__worddir_s__code_d
call fcn.0040c990
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0x10
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4015c9
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 0x4015ed
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 0x401611
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 0x401635
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 0x401656
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.0042e01f
mov ecx, dword [esp + 0x14]
add esp, 8
test eax, eax
jne 0x401687
mov eax, ebp
jmp 0x40168b
sub eax, ecx
sar eax, 1
mov ecx, dword [ecx - 0xc]
inc eax
cmp eax, ecx
je 0x4016e7
mov edx, dword [esp + 0x30]
cmp dword [edx - 0xc], 0
je 0x4016e7
push 0x449f28
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.004061d0
add esp, 0xc
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 6
call fcn.00406070
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 0x4016e7
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 0x449f08
lea edx, [edi + 4]
call fcn.00405e60
mov edx, dword [esp + 0x38]
push edx
mov edx, dword [edi]
push 0x449f08
add edx, 4
call fcn.00405e60
mov eax, dword [esp + 0x24]
mov edx, dword [edi]
push eax
push 0x449f08
add edx, 0x20c
call fcn.00405e60
push str.MSG:_Init_base_value_from_cmdLine_succeed
call fcn.0040c990
mov byte [esp + 0x44], 3
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x1c
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401755
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 0x401779
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 0x40179d
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 0x4017be
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