Function at 0x402610
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5182b1
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x56dbc8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, ecx
call fcn.00407698
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40265c
push 0x80004005
call fcn.004014c0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x114], eax
mov dword [ebp - 4], 0
call fcn.00402310
push eax
lea ecx, [ebp - 0x114]
call fcn.00401f50
push esi
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x118]
push edx
call fcn.00402120
add esp, 0xc
push eax
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 1
call fcn.00402050
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4026d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x118]
push str.Wusa__quiet
push edx
call fcn.00402200
add esp, 0xc
push eax
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 2
call fcn.00402050
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402724
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x44
lea ecx, [ebp - 0x16c]
push 0
push ecx
call fcn.005014a0
mov esi, dword [ebp - 0x114]
xor eax, eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x16c], 0x44
mov edx, dword [esi - 0xc]
add esp, 0xc
test edx, edx
jns 0x402772
push 0x80070057
call fcn.004014c0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x402795
push edx
lea ecx, [ebp - 0x114]
call fcn.00401920
mov esi, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
mov eax, esi
sub edx, esi
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4027a0
lea edx, [ebp - 0x128]
push edx
lea eax, [ebp - 0x16c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x110]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [ebp - 0x128]
test eax, eax
je 0x402809
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x120]
push edx
push str.Setup.exe
call fcn.00401430
mov eax, dword [ebp - 0x128]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40281e
mov edx, dword [edi]
mov eax, dword [edx + 0xb4]
push 0
push 0
push str.Create_process_fail_
mov ecx, edi
call eax
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402841
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00501491
mov esp, ebp
pop ebp
ret 4