Function at 0x409780
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff74
push ebx
push esi
push edi
mov ebx, eax
lea esi, [ebp - 0x50]
mov edi, 0x4781d0
mov eax, 0x47ac64
call fcn.0046b8cc
mov word [esi + 0x10], 0x14
xor edx, edx
mov dword [ebp - 0x14], edx
lea edx, [ebp - 0x14]
inc dword [esi + 0x1c]
mov eax, dword [ebx + 0x40]
call fcn.00421028
lea ecx, [ebp - 0x14]
push ecx
lea edx, [edi + 0x898]
lea eax, [ebp - 0x10]
call fcn.004758e8
inc dword [esi + 0x1c]
xor ecx, ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
inc dword [esi + 0x1c]
pop edx
call fcn.004759f8
dec dword [esi + 0x1c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004759a0
dec dword [esi + 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004759a0
mov word [esi + 0x10], 8
mov word [esi + 0x10], 0x20
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 8]
inc dword [esi + 0x1c]
mov eax, dword [ebx + 0x40]
call fcn.00420f60
mov word [esi + 0x10], 8
mov word [esi + 0x10], 0x2c
xor ecx, ecx
mov dword [ebp - 0x18], ecx
lea edx, [ebp - 0x18]
inc dword [esi + 0x1c]
mov eax, dword [ebx + 0x38]
call fcn.00425018
lea ecx, [ebp - 0x18]
push ecx
lea edx, [edi + 0x89c]
lea eax, [ebp - 0x1c]
call fcn.004758e8
inc dword [esi + 0x1c]
xor eax, eax
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1c]
inc dword [esi + 0x1c]
lea ecx, [ebp - 0xc]
pop eax
call fcn.004759f8
dec dword [esi + 0x1c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004759a0
dec dword [esi + 0x1c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004759a0
mov word [esi + 0x10], 8
push 0x3c
push 0
lea ecx, [ebp - 0x8c]
push ecx
call fcn.0046b568
mov dword [ebp - 0x8c], 0x3c
lea eax, [edi + 0x8a4]
add esp, 0xc
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0xc], 0
je 0x4098bd
mov edx, dword [ebp - 0xc]
jmp 0x4098c3
lea edx, [edi + 0x8a9]
mov dword [ebp - 0x7c], edx
cmp dword [ebp - 4], 0
je 0x4098d1
mov eax, dword [ebp - 4]
jmp 0x4098d7
lea eax, [edi + 0x8aa]
mov dword [ebp - 0x78], eax
cmp dword [ebp - 8], 0
je 0x4098e5
mov edx, dword [ebp - 8]
jmp 0x4098eb
lea edx, [edi + 0x8ab]
mov dword [ebp - 0x74], edx
xor eax, eax
mov dword [ebp - 0x88], 0x40
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0x8c]
push ecx
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
jne 0x409993
push esi
push 0
push 0
push 0
push 1
push 0x401728
push 0
lea edx, [edi + 0x8ac]
mov word [esi + 0x10], 0x38
lea eax, [ebp - 0x20]
call fcn.004758e8
inc dword [esi + 0x1c]
xor ecx, ecx
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x24]
inc dword [esi + 0x1c]
lea edx, [ebx + 0x40]
call fcn.004759f8
lea eax, [ebp - 0x24]
push eax
lea edx, [edi + 0x8bd]
lea eax, [ebp - 0x28]
call fcn.004758e8
inc dword [esi + 0x1c]
xor eax, eax
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0x28]
inc dword [esi + 0x1c]
lea ecx, [ebp - 0x2c]
pop eax
call fcn.004759f8
lea ecx, [ebp - 0x2c]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x41f558]
call fcn.00424498
push eax
push 0x4016c4
call fcn.004727a5
add esp, 0x24
push 0xffffffffffffffff
mov eax, dword [ebp - 0x54]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
dec dword [esi + 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004759a0
dec dword [esi + 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004759a0
dec dword [esi + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004759a0
mov ecx, dword [esi]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret