Function at 0x499608
Capabilities:
Access peb ldr_data
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff84
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea esi, [ebp - 0x54]
xor eax, eax
push ebp
push 0x49985d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 2
lea edx, [ebp - 0x6c]
mov eax, dword [0x4a7bdc]
mov eax, dword [eax]
call fcn.0045ba70
mov eax, dword [ebp - 0x6c]
lea edx, [ebp - 0x68]
call fcn.00409b88
mov eax, dword [ebp - 0x68]
push eax
mov ecx, ebx
mov dl, 1
mov eax, dword [0x498bc0]
call fcn.00498c4c
mov dword [ebp - 8], eax
lea edx, [ebp - 0x74]
mov eax, dword [0x4a7bdc]
mov eax, dword [eax]
call fcn.0045ba70
mov eax, dword [ebp - 0x74]
lea edx, [ebp - 0x70]
call fcn.00409b88
mov eax, dword [ebp - 0x70]
push eax
mov ecx, 0x499878
mov dl, 1
mov eax, dword [0x498bc0]
call fcn.00498c4c
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x499833
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x499807
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.004991f0
mov eax, dword [ebp - 8]
call fcn.004993b0
test al, al
jne 0x4996e5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.004043c0
jmp 0x49983a
mov eax, dword [ebp - 0xc]
call fcn.004993b0
test al, al
je 0x499731
mov eax, dword [0x4a7768]
mov eax, dword [eax]
mov edx, 0x499890
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [0x4a7768]
mov eax, dword [eax]
mov edx, 0x49989c
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0xc]
call fcn.00498d20
test eax, eax
je 0x499731
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.004043c0
jmp 0x49983a
mov dword [esi], 0x44
xor eax, eax
mov dword [esi + 0x10], eax
xor eax, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 0x280
mov dword [esi + 0x1c], 0x1e0
mov word [esi + 0x30], 1
mov dword [esi + 0x2c], 7
xor eax, eax
mov dword [esi + 4], eax
xor eax, eax
mov dword [esi + 8], eax
xor eax, eax
mov dword [esi + 0xc], eax
mov word [esi + 0x32], 0
xor eax, eax
mov dword [esi + 0x34], eax
mov eax, dword [0x4a7768]
mov eax, dword [eax]
mov edx, 0x499890
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [0x4a7768]
mov eax, dword [eax]
mov edx, 0x4998b8
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x64]
push eax
push esi
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
lea edx, [ebp - 0x7c]
mov eax, dword [ebp - 0xc]
call fcn.004991f0
push dword [ebp - 0x7c]
push 0x499890
push ebx
push 0x499890
mov eax, dword [ebp - 8]
push dword [eax + 0x10]
lea eax, [ebp - 0x78]
mov edx, 5
call fcn.00404d20
mov eax, dword [ebp - 0x78]
call fcn.00404e60
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_CloseHandle_1
mov byte [ebp - 1], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x499815
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49983a
mov eax, dword [ebp - 8]
call fcn.00403b74
mov eax, dword [ebp - 0xc]
call fcn.00403b74
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x499864
lea eax, [ebp - 0x7c]
mov edx, 6
call fcn.004049a8
lea eax, [ebp - 0x10]
call fcn.00404984
ret