Function at 0x499780
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5f98
mov eax, dword fs:[0]
push eax
sub esp, 0x4c0
mov eax, dword [0x4fe37c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0xe], 1
mov byte [ebp - 0xd], 0
mov byte [ebp - 0x485], 0
lea ecx, [ebp - 0x424]
call fcn.0040adf0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
call fcn.004183b0
movzx eax, al
test eax, eax
je 0x49980c
push 0x4db7a0
mov ecx, dword [ebp + 8]
push ecx
push 0x4db7a4
lea edx, [ebp - 0x424]
push edx
call fcn.0040ae90
add esp, 8
push eax
call fcn.0040ae50
add esp, 8
push eax
call fcn.0040ae90
add esp, 8
jmp 0x499856
mov eax, dword [ebp + 0xc]
push eax
push 0x4db7a8
push 0x4db7ac
mov ecx, dword [ebp + 8]
push ecx
push 0x4db7b0
lea edx, [ebp - 0x424]
push edx
call fcn.0040ae90
add esp, 8
push eax
call fcn.0040ae50
add esp, 8
push eax
call fcn.0040ae90
add esp, 8
push eax
call fcn.0040ae90
add esp, 8
push eax
call fcn.0040ae50
add esp, 8
push 0x44
push 0
lea eax, [ebp - 0x484]
push eax
call fcn.00445020
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x434]
push ecx
call fcn.00445020
add esp, 0xc
mov dword [ebp - 0x484], 0x44
lea ecx, [ebp - 0x424]
call fcn.0041bf70
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp - 0x43c]
add eax, 0x20
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00442b2d
add esp, 4
mov dword [ebp - 0x4b8], eax
mov eax, dword [ebp - 0x4b8]
mov dword [ebp - 0x438], eax
lea ecx, [ebp - 0x424]
call fcn.0040aee0
push eax
mov ecx, dword [ebp - 0x43c]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x438]
push edx
call fcn.004451f5
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x4a4]
push ecx
call fcn.0049e000
add esp, 8
lea edx, [ebp - 0x434]
push edx
lea eax, [ebp - 0x484]
push eax
lea ecx, [ebp - 0x4a4]
call fcn.00407070
push eax
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x438]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x49993e
mov byte [ebp - 0xe], 0
movzx edx, byte [ebp - 0xe]
test edx, edx
je 0x499a14
cmp dword [ebp + 0x10], 0
je 0x4999b5
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x4b0], eax
mov ecx, dword [ebp - 0x434]
mov dword [ebp - 0x4ac], ecx
mov edx, dword [ebp + 0x18]
push edx
push 0
lea eax, [ebp - 0x4b0]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 0x4a8], eax
xor ecx, ecx
cmp dword [ebp - 0x4a8], 0
sete cl
mov byte [ebp - 0xe], cl
xor edx, edx
cmp dword [ebp - 0x4a8], 0x102
sete dl
mov byte [ebp - 0xd], dl
xor eax, eax
cmp dword [ebp - 0x4a8], 0
setne al
mov byte [ebp - 0x485], al
jmp 0x499a14
movzx ecx, byte [ebp + 0x14]
test ecx, ecx
je 0x499a14
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x4b4], eax
xor ecx, ecx
cmp dword [ebp - 0x4b4], 0
sete cl
mov byte [ebp - 0xe], cl
cmp dword [ebp + 0x1c], 0
je 0x499a02
movzx edx, byte [ebp - 0xe]
test edx, edx
je 0x499a02
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp - 0x434]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
xor edx, edx
cmp dword [ebp - 0x4b4], 0x102
sete dl
mov byte [ebp - 0xd], dl
cmp dword [ebp - 0x438], 0
je 0x499a42
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x4bc], eax
mov ecx, dword [ebp - 0x4bc]
push ecx
call fcn.004443f2
add esp, 4
mov dword [ebp - 0x438], 0
cmp dword [ebp - 0x434], 0
je 0x499a58
mov edx, dword [ebp - 0x434]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x430], 0
je 0x499a6e
mov eax, dword [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx ecx, byte [ebp - 0xe]
test ecx, ecx
je 0x499aad
mov dword [ebp - 0x4c0], 0
lea ecx, [ebp - 0x4a4]
call fcn.00406fd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x424]
call fcn.0040ae20
mov eax, dword [ebp - 0x4c0]
jmp 0x499b71
movzx edx, byte [ebp - 0xd]
test edx, edx
je 0x499ae9
mov dword [ebp - 0x4c4], 1
lea ecx, [ebp - 0x4a4]
call fcn.00406fd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x424]
call fcn.0040ae20
mov eax, dword [ebp - 0x4c4]
jmp 0x499b71
movzx eax, byte [ebp - 0x485]
test eax, eax
je 0x499b25
mov dword [ebp - 0x4c8], 2
lea ecx, [ebp - 0x4a4]
call fcn.00406fd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x424]
call fcn.0040ae20
mov eax, dword [ebp - 0x4c8]
jmp 0x499b71
mov dword [ebp - 0x4cc], 0xffffffff
lea ecx, [ebp - 0x4a4]
call fcn.00406fd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x424]
call fcn.0040ae20
mov eax, dword [ebp - 0x4cc]
jmp 0x499b71
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004443e3
mov esp, ebp
pop ebp
ret