Function at 0x540b0a
Capabilities:
Create process on windows

Disassembly:
push ebp
sub esp, 0x70
mov eax, 0x6a28a3
call fcn.006375a8
sub esp, 0x4c
push ebx
mov ebx, ecx
push esi
push edi
xor edi, edi
lea eax, [ebx + 0xc]
cmp dword [eax + 0x10], edi
jne 0x540b32
push 3
pop esi
jmp 0x540d4d
push 1
push eax
sub esp, 0x18
lea esi, [ebx + 0x24]
mov ecx, esp
push esi
call fcn.0042615e
lea eax, [ebp + 0x5c]
push eax
call fcn.0045e7e8
xor eax, eax
mov dword [ebp - 4], edi
mov dword [ebp + 0x30], 7
mov dword [ebp + 0x2c], edi
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x5c]
mov byte [ebp - 4], 1
push eax
call fcn.0045f4a7
test al, al
jne 0x540b78
push 2
pop esi
jmp 0x540d37
cmp byte [ebx + 8], 0
je 0x540bdf
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x540b8a
lea eax, [ebp + 0x5c]
push edi
lea ecx, [ebp + 0x1c]
push ecx
push eax
call fcn.004fbf6f
test eax, eax
jne 0x540bb5
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x540ba5
lea eax, [ebp + 0x5c]
push 1
lea ecx, [ebp + 0x1c]
push ecx
push eax
call fcn.004fbf6f
test eax, eax
je 0x540bd7
cmp byte [ebx + 8], 0
je 0x540bdf
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x540bc7
lea eax, [ebp + 0x5c]
push edi
push edi
lea ecx, [ebp + 0x1c]
push ecx
push eax
call fcn.004fbba5
test al, al
jne 0x540bdf
xor esi, esi
inc esi
jmp 0x540d37
xor eax, eax
mov dword [ebp + 0x58], 7
mov dword [ebp + 0x54], edi
mov word [ebp + 0x44], ax
mov eax, dword [ebx]
lea ecx, [ebp]
push ecx
mov ecx, ebx
mov byte [ebp - 4], 2
call dword [eax + 0xc]
mov byte [ebp - 4], 3
cmp dword [ebx + 0x4c], edi
jne 0x540c0d
cmp dword [ebp + 0x10], 0
je 0x540c73
mov edi, 0x6b7be8
push edi
call fcn.00426a30
pop ecx
push eax
push edi
lea ecx, [ebp + 0x44]
call fcn.004372ba
push 0xffffffffffffffff
push 0
lea eax, [ebp + 0x5c]
push eax
lea ecx, [ebp + 0x44]
call fcn.0042680e
push edi
call fcn.00426a30
pop ecx
push eax
push edi
lea ecx, [ebp + 0x44]
call fcn.0042689e
mov edi, 0x6b69e0
push edi
call fcn.00426a30
pop ecx
push eax
push edi
lea ecx, [ebp + 0x44]
call fcn.0042689e
cmp dword [ebp + 0x10], 0
lea eax, [ebx + 0x3c]
je 0x540c66
lea eax, [ebp]
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp + 0x44]
call fcn.0042680e
xor eax, eax
lea edi, [ebp + 0x34]
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
pop edi
push edi
push 0
push eax
call fcn.00651ed0
add esp, 0xc
mov dword [ebp - 0x58], edi
cmp dword [esi + 0x14], 8
jb 0x540c99
mov esi, dword [esi]
cmp dword [ebp + 0x58], 8
mov ecx, dword [ebp + 0x44]
jae 0x540ca5
lea ecx, [ebp + 0x44]
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x540cb1
lea eax, [ebp + 0x5c]
lea edx, [ebp + 0x34]
xor edi, edi
push edx
lea edx, [ebp - 0x58]
push edx
push esi
push edi
push 0x4008
push edi
push edi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
jne 0x540cd5
push 5
jmp 0x540ce6
push dword [ebp + 0x38]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp + 0x34], 0xffffffff
jne 0x540ce9
push 4
pop esi
jmp 0x540d21
mov ecx, ebx
call fcn.00540e71
mov eax, dword [ebp + 0x34]
mov dword [ebx + 0x60], eax
mov eax, dword [ebp + 0x3c]
mov dword [ebx + 0x78], eax
lea eax, [ebp - 0x14]
push eax
call fcn.00540d61
mov ecx, eax
mov esi, edi
mov eax, dword [ecx]
mov dword [ebx + 0x98], eax
mov eax, dword [ecx + 4]
mov dword [ebx + 0x9c], eax
mov dword [ebx + 0x7c], 1
push edi
push 1
lea ecx, [ebp]
call fcn.004267c2
push edi
push 1
lea ecx, [ebp + 0x44]
call fcn.004267c2
push edi
push 1
lea ecx, [ebp + 0x1c]
call fcn.004267c2
push edi
push 1
lea ecx, [ebp + 0x5c]
call fcn.004267c2
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
lea esp, [ebp + 0x74]
pop ebp
ret