Function at 0x4c7770
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x536e18
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x59a0a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], edx
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
push 0
push ecx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x38], 0
call fcn.00401c70
mov ecx, eax
call fcn.004ca190
lea eax, [ebp - 0x28]
push eax
call fcn.00401c70
mov ecx, eax
call fcn.00401be0
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x4c77e4
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401ff0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4c7806
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403010
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov word [ebp - 0x28], ax
or edi, 0xffffffff
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
cmp dword [eax - 0xc], 0
jne 0x4c7838
mov dword [ebp - 0x38], 3
jmp 0x4c7bda
push 0x554310
lea ecx, [ebp - 0x34]
call fcn.00401ff0
mov byte [ebp - 4], 3
test esi, esi
je 0x4c7865
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c7852
sub ecx, edx
sar ecx, 1
push ecx
push esi
jmp 0x4c786c
push 7
push 0x554320
lea ecx, [ebp - 0x34]
call fcn.00402320
push 0x554350
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x54]
call fcn.00401d60
push 0x554344
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x50]
call fcn.00401d60
push dword [ebp - 0x3c]
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4c]
call fcn.00401d60
push 0x554330
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x48]
call fcn.00401d60
push dword [ebp - 0x30]
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x44]
call fcn.00401d60
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 8
push ecx
mov edx, eax
lea ecx, [ebp - 0x40]
call fcn.00401e60
add esp, 0x18
mov byte [ebp - 4], 9
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
mov dword [ebp - 0x30], ecx
lea esi, [edx - 0x10]
cmp esi, ecx
je 0x4c7928
cmp dword [ecx + 0xc], 0
jl 0x4c791c
mov eax, dword [esi]
cmp eax, dword [ecx]
jne 0x4c791c
mov ecx, esi
call fcn.004021e0
mov ecx, dword [ebp - 0x30]
mov esi, eax
call fcn.00402e90
lea eax, [esi + 0x10]
mov dword [ebp - 0x2c], eax
jmp 0x4c7928
push dword [edx - 0xc]
lea ecx, [ebp - 0x2c]
push edx
call fcn.00402d50
mov byte [ebp - 4], 8
mov eax, edi
mov ecx, dword [ebp - 0x40]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4c795d
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4c7959
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call ebx
jmp 0x4c795d
mov ecx, edx
call esi
mov byte [ebp - 4], 7
mov eax, edi
mov ecx, dword [ebp - 0x44]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4c7992
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4c798e
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call ebx
jmp 0x4c7992
mov ecx, edx
call esi
mov byte [ebp - 4], 6
mov eax, edi
mov ecx, dword [ebp - 0x48]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4c79c7
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4c79c3
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call ebx
jmp 0x4c79c7
mov ecx, edx
call esi
mov byte [ebp - 4], 5
mov eax, edi
mov ecx, dword [ebp - 0x4c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4c79fc
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4c79f8
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call ebx
jmp 0x4c79fc
mov ecx, edx
call esi
mov byte [ebp - 4], 4
mov eax, edi
mov ecx, dword [ebp - 0x50]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4c7a31
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4c7a2d
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call ebx
jmp 0x4c7a31
mov ecx, edx
call esi
mov byte [ebp - 4], 3
mov eax, edi
mov ecx, dword [ebp - 0x54]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4c7a66
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4c7a62
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call ebx
jmp 0x4c7a66
mov ecx, edx
call esi
push 0x40
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xac], 0x44
push 0
push eax
call fcn.0049e130
mov eax, dword [ebp - 0x2c]
mov esi, 1
mov edx, esi
add esp, 0xc
sub edx, dword [eax - 4]
mov ecx, dword [eax - 8]
or ecx, edx
jge 0x4c7aa4
push 0
lea ecx, [ebp - 0x2c]
call fcn.00402c70
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0xac]
push ecx
push 0
push 0
push 0x1000000
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
push dword [ecx - 8]
push ecx
call fcn.004a4fb5
mov edx, eax
add esp, 8
test edx, edx
js 0x4c7bc1
mov ecx, dword [ebp - 0x2c]
cmp edx, dword [ecx - 8]
jg 0x4c7bc1
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x2c]
mov word [eax + edx*2], cx
cmp dword [ebp - 0x30], ecx
jne 0x4c7b78
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4c7bcb
mov eax, dword [ebp - 0x2c]
sub esi, dword [eax - 4]
mov ecx, dword [eax - 8]
or ecx, esi
jge 0x4c7b29
push 0
lea ecx, [ebp - 0x2c]
call fcn.00402c70
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0xac]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [ebp - 0x2c]
mov esi, eax
push dword [ecx - 8]
push ecx
call fcn.004a4fb5
mov edx, eax
add esp, 8
test edx, edx
js 0x4c7bc1
mov ecx, dword [ebp - 0x2c]
cmp edx, dword [ecx - 8]
jg 0x4c7bc1
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x2c]
mov word [eax + edx*2], cx
test esi, esi
je 0x4c7bcb
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x60]
push dword [ebp - 0x68]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ecx], eax
call esi
push dword [ebp - 0x64]
call esi
mov byte [ebp - 4], 2
mov eax, edi
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4c7bda
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4c7bd6
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call ebx
jmp 0x4c7bda
push 0x80070057
call fcn.00401b40
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
jmp 0x4c7b90
mov ecx, edx
call esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], edi
dec edi
test edi, edi
jg 0x4c7c10
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4c7c0c
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call ebx
jmp 0x4c7c10
mov ecx, edx
call esi
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret