Function at 0x4d0520
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x57ae98
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5e95e0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, ecx
push 0x30
call fcn.005308cb
mov ebp, eax
xor esi, esi
add esp, 4
cmp ebp, esi
je 0x4d0606
cmp edi, esi
mov dword [ebp + 0x18], vtable.CArray_struct_TangoPageThread___struct_TangoPageThread__.0
mov dword [ebp + 0x1c], esi
mov dword [ebp + 0x28], esi
mov dword [ebp + 0x24], esi
mov dword [ebp + 0x20], esi
mov dword [ebp + 0x2c], esi
mov dword [ebp + 8], esi
mov dword [ebp + 0x14], esi
jne 0x4d07f9
push 0x5b9eec
lea eax, [esp + 0x90]
push 0x5f2878
push eax
call fcn.00401ba0
add esp, 0xc
mov dword [esp + 0x80], esi
mov ebx, dword [esp + 0x88]
add ebx, 0x14
push eax
mov ecx, ebx
call fcn.00402310
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [esp + 0x8c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d05e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
call fcn.00530e1f
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4d060d
push 0x80004005
call fcn.00401f70
xor eax, eax
jmp 0x4d0840
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x8c], eax
mov dword [esp + 0x80], 1
mov ecx, dword [0x5f2630]
push edi
push ecx
lea edx, [esp + 0x94]
push str.Tango3__d_d
push edx
call fcn.00405480
push 0x44
lea eax, [esp + 0x40]
push esi
push eax
call fcn.00557890
mov edi, dword [esp + 0xa8]
add esp, 0x1c
mov dword [esp + 0x2c], 0x44
cmp dword [edi - 4], 1
jle 0x4d0681
mov ecx, dword [edi - 0xc]
push ecx
lea ecx, [esp + 0x90]
call fcn.00402010
mov edi, dword [esp + 0x8c]
mov eax, dword [ebx]
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x30]
push ecx
push esi
push esi
push 0x20
push 1
push esi
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp edi, esi
mov dword [esp + 0x18], eax
jne 0x4d06a9
xor ecx, ecx
jmp 0x4d06c5
mov ecx, edi
lea eax, [ecx + 2]
mov edi, edi
mov dx, word [ecx]
add ecx, 2
cmp dx, si
jne 0x4d06b0
sub ecx, eax
sar ecx, 1
js 0x4d07ef
cmp ecx, dword [edi - 8]
jg 0x4d07ef
cmp dword [esp + 0x18], esi
mov dword [edi - 0xc], ecx
mov word [edi + ecx*2], si
je 0x4d0735
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov dword [ebp + 8], esi
mov dword [ebp + 0x10], esi
mov dword [ebp + 0xc], esi
mov esi, dword [esp + 0x88]
mov dword [ebp + 4], eax
push ebp
mov eax, esi
mov dword [ebp], edx
call fcn.004c77e0
mov eax, dword [esi + 8]
lea esi, [eax - 1]
lea eax, [edi - 0x10]
mov dword [esp + 0x80], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d072e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x4d0840
call fcn.00530e1f
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4d074f
push 0x80004005
call fcn.00401f70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x88], eax
mov byte [esp + 0x80], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x5f21f0]
mov edx, dword [ebx]
push ecx
push edx
push eax
lea eax, [esp + 0x94]
push 0x5b9f28
push eax
call fcn.00405480
add esp, 0x14
push esi
push esi
mov esi, dword [esp + 0x90]
push esi
call fcn.00539414
lea eax, [esi - 0x10]
mov byte [esp + 0x80], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d07c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
mov dword [esp + 0x80], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d07ea
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
or eax, 0xffffffff
jmp 0x4d0840
push 0x80070057
call fcn.00401f70
mov eax, dword [esp + 0x8c]
mov dword [ebp], esi
mov dword [ebp + 4], eax
mov dword [ebp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 0x88]
mov dword [ebp + 8], esi
mov ebx, dword [eax + 8]
cmp ebx, esi
jge 0x4d0828
call fcn.00530cad
lea edi, [ebx + 1]
mov esi, eax
call fcn.00459ef0
mov eax, esi
mov ecx, dword [eax + 4]
mov dword [ecx + ebx*4], ebp
mov eax, dword [eax + 8]
sub eax, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret 8