Function at 0x4a5c1158
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x20
push 0
push 0
dec ecx
jne 0x4a5c1161
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov byte [ebp - 0xa], cl
mov byte [ebp - 9], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x4a5c198a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x4a5ed2c8], 0
jne 0x4a5c1191
mov byte [ebp - 9], 0
lea eax, [ebp - 4]
push eax
xor ecx, ecx
mov edx, 0x4a5c19ac
mov eax, ebx
call fcn.4a5bbd20
cmp dword [ebp - 4], 0
je 0x4a5c11c3
lea edx, [ebp - 0x70]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x70]
mov edx, 0x4a5c19c8
call fcn.4a507ef8
je 0x4a5c11c7
xor eax, eax
jmp 0x4a5c11c9
mov al, 1
mov byte [ebp - 0xb], al
cmp byte [ebp - 0xb], 0
je 0x4a5c17ef
lea eax, [ebp - 0x74]
mov edx, dword [ebp - 4]
mov ecx, 0x4a5c19d0
call fcn.4a50ab38
mov eax, dword [ebp - 0x74]
mov edx, dword [eax]
call dword [edx + 0x2c]
xor al, 1
mov byte [ebp - 0xc], al
mov esi, dword [ebx + 0x30]
mov eax, esi
mov edx, dword [0x4a5bb108]
call fcn.4a505e48
test al, al
je 0x4a5c120d
cmp byte [esi + 0x41], 0
je 0x4a5c1211
xor eax, eax
jmp 0x4a5c1213
mov al, 1
mov byte [ebp - 0xd], al
lea eax, [ebp - 0x78]
mov edx, dword [ebp - 4]
mov ecx, 0x4a5c19d0
call fcn.4a50ab38
mov eax, dword [ebp - 0x78]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x38]
cmp byte [ebp - 9], 0
je 0x4a5c1330
movzx eax, byte [ebp - 0xc]
or al, byte [ebp - 0xd]
je 0x4a5c1330
lea eax, [ebp - 4]
push eax
xor ecx, ecx
mov edx, 0x4a5c19ec
mov eax, ebx
call fcn.4a5bbd20
cmp dword [ebp - 4], 0
je 0x4a5c1330
lea edx, [ebp - 0x7c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x7c]
mov edx, 0x4a5c1a08
call fcn.4a507ef8
jne 0x4a5c1330
lea eax, [ebp - 0x84]
mov edx, dword [ebp - 4]
mov ecx, 0x4a5c1a10
call fcn.4a50ab38
mov eax, dword [ebp - 0x84]
lea edx, [ebp - 0x80]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
cmp dword [ebp - 0x80], 0
je 0x4a5c1330
lea eax, [ebp - 0x5c]
xor ecx, ecx
mov edx, 0x44
call fcn.4a5051e8
mov dword [ebp - 0x5c], 0x44
mov dword [ebp - 0x30], 1
mov word [ebp - 0x2c], 0
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x5c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x8c]
mov edx, dword [ebp - 4]
mov ecx, 0x4a5c1a10
call fcn.4a50ab38
mov eax, dword [ebp - 0x8c]
lea edx, [ebp - 0x88]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x88]
call fcn.4a5082f8
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x4a5c1330
mov eax, dword [ebp - 0x6c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_CloseHandle_1
cmp byte [ebp - 0xa], 0
je 0x4a5c15bc
cmp byte [0x4a5ed2c8], 0
je 0x4a5c15bc
lea eax, [ebp - 4]
push eax
mov cl, 1
mov edx, 0x4a5c1a2c
mov eax, ebx
call fcn.4a5bbd20
cmp dword [ebp - 4], 0
je 0x4a5c15bc
lea edx, [ebp - 0x98]
mov eax, ebx
call fcn.4a5bba48
mov eax, dword [ebp - 0x98]
lea edx, [ebp - 0x94]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x94]
lea edx, [ebp - 0x90]
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x90]
mov edx, 0x4a5c1a44
call fcn.4a507ef8
jne 0x4a5c15bc
lea edx, [ebp - 0xa4]
mov eax, ebx
call fcn.4a5bba48
mov eax, dword [ebp - 0xa4]
lea edx, [ebp - 0xa0]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov edx, dword [ebp - 0xa0]
lea eax, [ebp - 0x9c]
mov ecx, 0x4a5c1a4c
call fcn.4a50ab38
mov eax, dword [ebp - 0x9c]
mov edx, dword [eax]
call dword [edx + 0x80]
test al, al
je 0x4a5c15bc
lea eax, [ebp - 0xa8]
mov edx, dword [ebp - 4]
mov ecx, 0x4a5c19d0
call fcn.4a50ab38
mov eax, dword [ebp - 0xa8]
mov edx, dword [eax]
call dword [edx + 0x2c]
test al, al
je 0x4a5c1593
lea eax, [ebp - 4]
push eax
mov cl, 1
mov edx, 0x4a5c1a68
mov eax, ebx
call fcn.4a5bbd20
cmp dword [ebp - 4], 0
je 0x4a5c1593
lea eax, [ebp - 0xac]
mov edx, dword [ebp - 4]
mov ecx, 0x4a5c1a74
call fcn.4a50ab38
mov eax, dword [ebp - 0xac]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov esi, eax
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0xb4]
mov eax, ebx
call fcn.4a5bba48
mov eax, dword [ebp - 0xb4]
lea edx, [ebp - 0xb0]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0xb0]
mov cl, 1
mov edx, 0x4a5c1a90
mov edi, dword [eax]
call dword [edi + 0x44]
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0xbc]
mov eax, ebx
call fcn.4a5bba48
mov eax, dword [ebp - 0xbc]
lea edx, [ebp - 0xb8]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0xb8]
mov cl, 1
mov edx, 0x4a5c1aac
mov edi, dword [eax]
call dword [edi + 0x44]
cmp dword [ebp - 4], 0
je 0x4a5c1593
cmp dword [ebp - 8], 0
je 0x4a5c1593
lea eax, [ebp - 0xc4]
mov edx, dword [ebp - 4]
mov ecx, 0x4a5c1a10
call fcn.4a50ab38
mov eax, dword [ebp - 0xc4]
lea edx, [ebp - 0xc0]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0xc0]
mov edx, 0x4a5c1ac8
call fcn.4a508620
je 0x4a5c1593
lea eax, [ebp - 0xd0]
mov edx, dword [ebp - 8]
mov ecx, 0x4a5c1a10
call fcn.4a50ab38
mov eax, dword [ebp - 0xd0]
lea edx, [ebp - 0xcc]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov edx, dword [ebp - 0xcc]
lea eax, [ebp - 0xc8]
mov ecx, 0
call fcn.4a508124
mov eax, dword [ebp - 0xc8]
push eax
lea eax, [ebp - 0xdc]
mov edx, dword [ebp - 4]
mov ecx, 0x4a5c1a10
call fcn.4a50ab38
mov eax, dword [ebp - 0xdc]
lea edx, [ebp - 0xd8]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov edx, dword [ebp - 0xd8]
lea eax, [ebp - 0xd4]
mov ecx, 0
call fcn.4a508124
mov eax, dword [ebp - 0xd4]
mov ecx, esi
pop edx
call fcn.4a5b55c4
lea eax, [ebp - 0xe0]
mov edx, dword [ebx + 0xc]
call fcn.4a5083c0
mov eax, dword [ebp - 0xe0]
push eax
mov ecx, 0x4a5c1ad0
mov edx, 0x4a5c1b08
mov eax, 0x80000001
call fcn.4a5bca40
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x4a5c17d0
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4a5c15d9
sub eax, 4
mov eax, dword [eax]
dec eax
test eax, eax
jl 0x4a5c17d0
inc eax
mov dword [ebp - 0x14], eax
xor esi, esi
lea edx, [ebp - 0xe4]
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x34]
mov eax, dword [eax + esi*4]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0xe4]
mov edx, dword [ebx + 0xc]
call fcn.4a507ef8
je 0x4a5c17c6
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x34]
mov eax, dword [eax + esi*4]
xor ecx, ecx
mov edx, 0x4a5c19ac
mov edi, dword [eax]
call dword [edi + 0x44]
cmp dword [ebp - 4], 0
je 0x4a5c17c6
lea edx, [ebp - 0xe8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0xe8]
mov edx, 0x4a5c19c8
call fcn.4a507ef8
jne 0x4a5c17c6
lea eax, [ebp - 0xec]
mov edx, dword [ebp - 4]
mov ecx, 0x4a5c19d0
call fcn.4a50ab38
mov eax, dword [ebp - 0xec]
mov edx, dword [eax]
call dword [edx + 0x2c]
test al, al
je 0x4a5c17c6
lea eax, [ebp - 0xf0]
mov edx, dword [ebp - 4]
mov ecx, 0x4a5c19d0
call fcn.4a50ab38
mov eax, dword [ebp - 0xf0]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
cmp byte [ebp - 9], 0
je 0x4a5c17c6
mov eax, dword [ebx + 0x30]
mov edx, dword [0x4a5bb108]
call fcn.4a505e48
test al, al
je 0x4a5c17c6
mov eax, dword [ebx + 0x30]
cmp byte [eax + 0x41], 0
je 0x4a5c17c6
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x34]
mov eax, dword [eax + esi*4]
xor ecx, ecx
mov edx, 0x4a5c1b40
mov edi, dword [eax]
call dword [edi + 0x44]
cmp dword [ebp - 4], 0
je 0x4a5c17c6
lea edx, [ebp - 0xf4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0xf4]
mov edx, 0x4a5c1a08
call fcn.4a507ef8
jne 0x4a5c17c6
lea eax, [ebp - 0xfc]
mov edx, dword [ebp - 4]
mov ecx, 0x4a5c1a10
call fcn.4a50ab38
mov eax, dword [ebp - 0xfc]
lea edx, [ebp - 0xf8]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
cmp dword [ebp - 0xf8], 0
je 0x4a5c17c6
lea eax, [ebp - 0x5c]
xor ecx, ecx
mov edx, 0x44
call fcn.4a5051e8
mov dword [ebp - 0x5c], 0x44
mov dword [ebp - 0x30], 1
mov word [ebp - 0x2c], 0
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x5c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x104]
mov edx, dword [ebp - 4]
mov ecx, 0x4a5c1a10
call fcn.4a50ab38
mov eax, dword [ebp - 0x104]
lea edx, [ebp - 0x100]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x100]
call fcn.4a5082f8
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x4a5c17c6
mov eax, dword [ebp - 0x6c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_CloseHandle_1
inc esi
dec dword [ebp - 0x14]
jne 0x4a5c15e8
cmp byte [ebp - 9], 0
je 0x4a5c17ef
mov eax, dword [ebx + 0x30]
mov edx, dword [0x4a5bb108]
call fcn.4a505e48
test al, al
je 0x4a5c17ef
mov eax, dword [ebx + 0x30]
mov byte [eax + 0x41], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5c1994
lea eax, [ebp - 0x104]
call fcn.4a50aaf4
lea eax, [ebp - 0x100]
call fcn.4a507618
lea eax, [ebp - 0xfc]
call fcn.4a50aaf4
lea eax, [ebp - 0xf8]
call fcn.4a507618
lea eax, [ebp - 0xf4]
call fcn.4a50763c
lea eax, [ebp - 0xf0]
mov edx, dword [0x4a5b5250]
mov ecx, 2
call fcn.4a508a60
lea eax, [ebp - 0xe8]
mov edx, 2
call fcn.4a5076a8
lea eax, [ebp - 0xe0]
call fcn.4a507618
lea eax, [ebp - 0xdc]
call fcn.4a50aaf4
lea eax, [ebp - 0xd8]
call fcn.4a507618
lea eax, [ebp - 0xd4]
call fcn.4a50763c
lea eax, [ebp - 0xd0]
call fcn.4a50aaf4
lea eax, [ebp - 0xcc]
call fcn.4a507618
lea eax, [ebp - 0xc8]
call fcn.4a50763c
lea eax, [ebp - 0xc4]
call fcn.4a50aaf4
lea eax, [ebp - 0xc0]
call fcn.4a507618
lea eax, [ebp - 0xbc]
mov edx, dword [0x4a5b4fe8]
mov ecx, 4
call fcn.4a508a60
lea eax, [ebp - 0xac]
call fcn.4a50aaf4
lea eax, [ebp - 0xa8]
call fcn.4a50aaf4
lea eax, [ebp - 0xa4]
mov edx, dword [0x4a5b4fe8]
mov ecx, 2
call fcn.4a508a60
lea eax, [ebp - 0x9c]
call fcn.4a50aaf4
lea eax, [ebp - 0x98]
mov edx, dword [0x4a5b4fe8]
mov ecx, 2
call fcn.4a508a60
lea eax, [ebp - 0x90]
call fcn.4a50763c
lea eax, [ebp - 0x8c]
call fcn.4a50aaf4
lea eax, [ebp - 0x88]
call fcn.4a507618
lea eax, [ebp - 0x84]
call fcn.4a50aaf4
lea eax, [ebp - 0x80]
call fcn.4a507618
lea eax, [ebp - 0x7c]
call fcn.4a50763c
lea eax, [ebp - 0x78]
mov edx, dword [0x4a5b5250]
mov ecx, 2
call fcn.4a508a60
lea eax, [ebp - 0x70]
call fcn.4a50763c
lea eax, [ebp - 8]
mov edx, dword [0x4a5b5168]
mov ecx, 2
call fcn.4a508a60
ret