Function at 0x402490
Capabilities:
Create process on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x412887
mov eax, dword fs:[0]
push eax
sub esp, 0x2cc
mov eax, dword [0x417050]
xor eax, esp
mov dword [esp + 0x2c8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x417050]
xor eax, esp
push eax
lea eax, [esp + 0x2e0]
mov dword fs:[0], eax
push 0x206
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 0xda]
mov edi, edx
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x24], edi
mov word [esp + 0xe0], ax
call fcn.00406c70
add esp, 0xc
mov eax, esi
lea edx, [esp + 0xd4]
call fcn.00401180
lea edx, [esp + 0xd4]
push edx
call dword [0x413190]
lea eax, [esp + 0xd4]
push eax
call dword [0x41318c]
push 0x3c
lea ecx, [esp + 0x64]
push ebx
push ecx
call fcn.00406c70
lea edx, [esp + 0xe0]
add esp, 0xc
mov dword [esp + 0x60], 0x3c
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], 5
mov dword [esp + 0x64], 0x440
call dword [0x41304c]
movzx ecx, al
cmp eax, 0x80000000
jae 0x4027d1
cmp ecx, 6
jb 0x4027d1
mov eax, dword [0x4193ec]
mov edx, dword [eax + 0xc]
mov ecx, 0x4193ec
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x2e8], ebx
mov eax, dword [0x4193ec]
mov edx, dword [eax + 0xc]
mov ecx, 0x4193ec
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x5c], edi
mov byte [esp + 0x2e8], 1
cmp esi, ebx
je 0x4025e1
mov eax, esi
lea edx, [eax + 2]
jmp 0x4025c0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4025c0
sub eax, edx
sar eax, 1
mov ebx, eax
push esi
lea eax, [esp + 0x20]
call fcn.00401720
mov ebp, dword [esp + 0x1c]
xor ebx, ebx
xor eax, eax
mov word [esp + 0x44], ax
mov eax, edi
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402600
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [esp + 0x44]
call fcn.00401f90
mov byte [esp + 0x2e8], 2
xor ecx, ecx
mov eax, ebp
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], cx
lea edx, [eax + 2]
jmp 0x402640
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402640
sub eax, edx
sar eax, 1
push eax
mov eax, ebp
lea esi, [esp + 0x28]
call fcn.00401f90
lea edx, [esp + 0x40]
push edx
mov eax, esi
push eax
lea ecx, [esp + 0xa4]
push ecx
mov byte [esp + 0x2f4], 3
call fcn.00401810
mov esi, 8
cmp dword [esp + 0x3c], esi
jb 0x402690
mov edx, dword [esp + 0x28]
push edx
call fcn.00406103
add esp, 4
xor eax, eax
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], ax
mov byte [esp + 0x2e8], 6
cmp dword [esp + 0x58], esi
jb 0x4026be
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00406103
add esp, 4
lea eax, [esp + 0x20]
xor edx, edx
push eax
lea ecx, [esp + 0xa0]
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], dx
mov dword [esp + 0x24], ebx
call fcn.00401aa0
test eax, eax
jne 0x4027c3
lea ecx, [esp + 0x60]
push ecx
call dword [0x413174]
test eax, eax
jne 0x40275a
lea esi, [esp + 0x9c]
call fcn.00402820
lea eax, [edi - 0x10]
mov byte [esp + 0x2e8], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40272c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x2e8], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402753
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4027f6
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40276b
mov ecx, dword [esp + 0x98]
mov dword [eax], ecx
lea esi, [esp + 0x9c]
call fcn.00402820
lea eax, [edi - 0x10]
or ecx, 0xffffffff
lea edx, [eax + 0xc]
mov byte [esp + 0x2e8], bl
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40279a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x2e8], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4027f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4027f1
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40276b
mov ecx, dword [esp + 0x20]
jmp 0x402769
lea ecx, [esp + 0x60]
push ecx
call dword [0x413174]
test eax, eax
je 0x402753
cmp edi, ebx
je 0x4027f1
mov edx, dword [esp + 0x98]
mov dword [edi], edx
mov eax, 1
mov ecx, dword [esp + 0x2e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c8]
xor ecx, esp
call fcn.0040610e
add esp, 0x2d8
ret