Function at 0x510134ec
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x510134f4
push ebx
push esi
push edi
mov eax, dword [0x51014514]
mov byte [eax], 1
mov eax, 0x5101345c
call fcn.51005bf0
mov edi, 0x5101589c
mov esi, 0x51015898
xor eax, eax
push ebp
push 0x510139e5
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov dl, 1
mov eax, dword [0x510129c4]
call fcn.51012ac4
mov dword [esi], eax
mov edx, 0x80000002
mov eax, dword [esi]
call fcn.51012b64
mov cl, 1
mov edx, 0x510139fc
mov eax, dword [esi]
call fcn.51012bc8
test al, al
je 0x5101356e
mov ecx, 1
mov edx, 0x51013a30
mov eax, dword [esi]
call fcn.51012e08
mov eax, dword [esi]
call fcn.51012b34
call fcn.51002cd0
test eax, eax
jne 0x5101361e
lea edx, [ebp - 0x20]
mov eax, 0x51013a48
call fcn.5100bda8
push dword [ebp - 0x20]
push 0x51013a5c
lea edx, [ebp - 0x24]
mov eax, 0x51013a68
call fcn.5100bda8
push dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.51004238
mov eax, dword [ebp - 0x1c]
call fcn.51004378
lea edx, [ebp - 0x18]
call fcn.510130f4
mov edx, dword [ebp - 0x18]
mov eax, 0x51015888
call fcn.51003f30
push 0x51013a7c
push dword [0x51015888]
push 0x51013ac4
mov eax, 0x5101588c
mov edx, 3
call fcn.51004238
mov eax, dword [0x5101588c]
call fcn.510131dc
mov edx, 0x80000003
mov eax, dword [esi]
call fcn.51012b64
mov eax, 0x5101588c
mov ecx, 0x51013ae0
mov edx, dword [0x51015888]
call fcn.510041c4
mov eax, dword [0x5101588c]
call fcn.510131dc
mov edx, 0x80000001
mov eax, dword [esi]
call fcn.51012b64
xor ecx, ecx
mov edx, 0x51013b28
mov eax, dword [esi]
call fcn.51012bc8
test al, al
je 0x5101369c
mov bl, 3
movsx eax, bl
push eax
mov eax, 0x51015884
mov ecx, 1
mov edx, dword [0x51012fa0]
call fcn.51004d40
add esp, 4
lea ecx, [ebp - 0x28]
mov edx, 0x51013b78
mov eax, dword [esi]
call fcn.51012d90
mov edx, dword [ebp - 0x28]
mov eax, dword [0x51015884]
call fcn.51003f30
lea ecx, [ebp - 0x2c]
mov edx, 0x51013b8c
mov eax, dword [esi]
call fcn.51012d90
mov edx, dword [ebp - 0x2c]
mov eax, dword [0x51015884]
add eax, 4
call fcn.51003f30
mov eax, dword [esi]
call fcn.51012b34
mov eax, dword [esi]
call fcn.510033f4
test bl, bl
jle 0x510139ca
lea edx, [ebp - 0x34]
mov eax, 0x51013b9c
call fcn.5100bda8
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.51012fc8
mov edx, dword [ebp - 0x30]
mov eax, 0x51015888
call fcn.51003f30
mov eax, dword [0x51015884]
add eax, 8
mov ecx, 0x51013bb0
mov edx, dword [0x51015888]
call fcn.510041c4
push 0x51013bc8
lea edx, [ebp - 0x3c]
mov eax, 0x51013bd4
call fcn.5100bda8
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.51012fc8
push dword [ebp - 0x38]
push 0x51013be8
mov eax, 0x51015890
mov edx, 3
call fcn.51004238
dec ebx
test bl, bl
jl 0x510139ca
inc ebx
mov byte [ebp - 0x11], bl
mov bl, 0
lea eax, [ebp - 0x44]
push eax
movsx esi, bl
mov eax, dword [0x51015884]
mov eax, dword [eax + esi*4]
mov ecx, 0xd
mov edx, 1
call fcn.510043d8
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
call fcn.51006d68
mov eax, dword [ebp - 0x40]
mov edx, 0x51013bfc
call fcn.510042c4
je 0x51013794
push 0x51013bc8
mov eax, dword [0x51015884]
mov eax, dword [eax + esi*4]
lea edx, [ebp - 0x48]
call fcn.51012fc8
push dword [ebp - 0x48]
push 0x51013bc8
mov eax, dword [0x51015884]
lea eax, [eax + esi*4]
mov edx, 3
call fcn.51004238
jmp 0x510137ec
push 0x51013bc8
push dword [0x51015888]
lea eax, [ebp - 0x50]
push eax
mov eax, dword [0x51015884]
mov eax, dword [eax + esi*4]
call fcn.51004178
mov ecx, eax
sub ecx, 0xd
mov eax, dword [0x51015884]
mov eax, dword [eax + esi*4]
mov edx, 0xe
call fcn.510043d8
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
call fcn.51012fc8
push dword [ebp - 0x4c]
push 0x51013bc8
mov eax, dword [0x51015884]
lea eax, [eax + esi*4]
mov edx, 4
call fcn.51004238
push 0x51013bc8
lea edx, [ebp - 0x54]
mov eax, 0x51013c14
call fcn.5100bda8
push dword [ebp - 0x54]
push 0x51013c2c
mov eax, 0x5101588c
mov edx, 3
call fcn.51004238
lea edx, [ebp - 0x5c]
mov eax, 1
call fcn.51002d38
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x58]
call fcn.51006db8
mov eax, dword [ebp - 0x58]
mov edx, 0x51013c58
call fcn.510042c4
jne 0x51013871
push dword [0x5101588c]
push 0x51013c64
mov eax, dword [0x51015884]
push dword [eax + esi*4]
push 0x51013c88
push dword [0x51015890]
mov eax, dword [0x51015884]
lea eax, [eax + esi*4]
mov edx, 5
call fcn.51004238
jmp 0x51013953
mov eax, 0x51015894
mov edx, dword [0x51015884]
mov edx, dword [edx + esi*4]
call fcn.51003f30
mov edx, dword [0x51015894]
mov eax, 0x51013c94
call fcn.51004460
mov esi, eax
test esi, esi
jle 0x510138d0
push 0x51015894
mov eax, dword [0x51015894]
call fcn.51004178
mov ecx, eax
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [0x51015894]
call fcn.510043d8
mov edx, dword [0x51015894]
mov eax, 0x51013c94
call fcn.51004460
mov esi, eax
test esi, esi
jg 0x5101389a
lea eax, [ebp - 0x60]
push eax
mov eax, dword [0x51015890]
call fcn.51004178
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [0x51015890]
call fcn.510043d8
push dword [ebp - 0x60]
lea eax, [ebp - 0x64]
push eax
mov eax, dword [0x51015894]
call fcn.51004178
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [0x51015894]
call fcn.510043d8
push dword [ebp - 0x64]
push 0x51013ca0
mov eax, 0x51015894
mov edx, 3
call fcn.51004238
push dword [0x5101588c]
push dword [0x51015894]
movsx esi, bl
mov eax, dword [0x51015884]
push dword [eax + esi*4]
mov eax, dword [0x51015884]
lea eax, [eax + esi*4]
mov edx, 3
call fcn.51004238
mov dword [edi], 0x3c
mov dword [edi + 4], 0x40
xor eax, eax
mov dword [edi + 0xc], eax
mov eax, 0x51013ca4
mov dword [edi + 0x10], eax
push 0x51013cb4
movsx eax, bl
mov edx, dword [0x51015884]
push dword [edx + eax*4]
push 0x51013bc8
lea eax, [ebp - 0x68]
mov edx, 3
call fcn.51004238
mov eax, dword [ebp - 0x68]
call fcn.51004378
mov dword [edi + 0x14], eax
xor eax, eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], 6
call sub.user32.dll_GetDesktopWindow
mov dword [edi + 0x20], eax
push edi
call sub.shell32.dll_ShellExecuteExA
push 0xffffffffffffffff
mov eax, dword [edi + 0x38]
push eax
call sub.kernel32.dll_WaitForSingleObject
inc ebx
dec byte [ebp - 0x11]
jne 0x5101372b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x510139ec
lea eax, [ebp - 0x68]
mov edx, 0x15
call fcn.51003f00
ret