Function at 0x403be0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x184
mov eax, dword [0x43a180]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x188], eax
mov eax, dword [esi + 0x14]
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [esp + 0x18], ebx
jbe 0x403e56
mov edi, edi
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + ebx + 8]
add eax, ebx
test ecx, ecx
je 0x403e3f
push 1
lea ecx, [esp + 0x24]
push ecx
lea ecx, [eax + 4]
call fcn.00401720
mov eax, dword [eax]
push 0x42e19c
push eax
call fcn.004129de
add esp, 8
test eax, eax
mov eax, dword [esp + 0x20]
setne byte [esp + 0x13]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403c65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, byte [esp + 0x13]
test al, al
je 0x403cf6
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x38], 0x44
mov edx, dword [ebx + ecx + 4]
push edx
push eax
lea ecx, [esp + 0x88]
push 0x42d638
push ecx
call fcn.00412866
add esp, 0x10
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [esp + 0xa0]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edx, dword [esp + 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esp + 0x2c]
push eax
call edi
jmp 0x403e3f
mov ecx, dword [esi + 0x18]
mov eax, dword [ebx + ecx + 4]
lea edi, [ebx + ecx + 4]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jl 0x403d97
push str._SETMAINLNK
push eax
call fcn.00412a72
add esp, 8
test eax, eax
je 0x403d97
sub eax, dword [edi]
cmp eax, 0xffffffff
je 0x403d97
mov edx, dword [esi + 0x18]
mov ecx, dword [ebx + edx + 4]
mov edi, dword [ecx - 0xc]
lea eax, [ebx + edx + 4]
mov dword [esp + 0x14], eax
mov eax, ecx
mov ecx, dword [eax - 0xc]
test ecx, ecx
jg 0x403d45
or eax, 0xffffffff
jmp 0x403d5f
push 0x20
push eax
call fcn.00411fdc
add esp, 8
test eax, eax
jne 0x403d59
or eax, 0xffffffff
jmp 0x403d5f
mov edx, dword [esp + 0x14]
sub eax, dword [edx]
mov ecx, dword [esi + 0x18]
sub edi, eax
dec edi
push edi
lea eax, [esp + 0x20]
push eax
lea ecx, [ebx + ecx + 4]
call fcn.00403700
mov edx, dword [eax]
push edx
mov ecx, esi
call fcn.00402fe0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x403e35
mov eax, dword [esi + 0x18]
lea edi, [ebx + eax + 4]
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jl 0x403e3f
push str._NETURL
push eax
call fcn.00412a72
add esp, 8
test eax, eax
je 0x403e3f
sub eax, dword [edi]
cmp eax, 0xffffffff
je 0x403e3f
mov ecx, dword [esi + 0x18]
mov edx, dword [ebx + ecx + 4]
mov edi, dword [edx - 0xc]
lea eax, [ebx + ecx + 4]
mov dword [esp + 0x14], eax
mov eax, edx
mov ecx, dword [eax - 0xc]
test ecx, ecx
jg 0x403de8
or eax, 0xffffffff
jmp 0x403e02
push 0x20
push eax
call fcn.00411fdc
add esp, 8
test eax, eax
jne 0x403dfc
or eax, 0xffffffff
jmp 0x403e02
mov ecx, dword [esp + 0x14]
sub eax, dword [ecx]
sub edi, eax
mov eax, dword [esi + 0x18]
dec edi
push edi
lea edx, [esp + 0x28]
push edx
lea ecx, [ebx + eax + 4]
call fcn.00403700
mov ecx, dword [eax]
push ecx
mov ecx, esi
call fcn.00403050
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403e3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x14]
inc eax
add ebx, 0xc
cmp eax, ecx
mov dword [esp + 0x18], eax
jb 0x403c10
mov ecx, dword [esp + 0x18c]
xor eax, eax
call fcn.00411fce
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret