Function at 0x408530
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x150
push ebx
push ebp
push esi
push edi
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x28]
mov dword [esp + 0x24], 0x3c
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x168]
mov dword [esp + 0x18], 0x43f4a8
push eax
mov dword [esp + 0x18], 0xffffffff
call fcn.00427e80
add esp, 4
lea ecx, [esp + 0x18]
xor ebx, ebx
mov dword [esp + 0x20], eax
push ecx
push ebx
push eax
call fcn.004119b0
mov esi, eax
cmp esi, ebx
je 0x408731
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x170]
mov dword [esp + 0x10], ebx
cmp byte [edx], bl
je 0x4085da
cmp ebp, ebx
je 0x4085e2
lea eax, [esp + 0x10]
mov edi, ebp
push eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov edi, 0x43ff8c
or ecx, 0xffffffff
push ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, edx
push ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x43ff8c
push ecx
push edx
call fcn.00427dd0
jmp 0x4085e6
cmp ebp, ebx
mov dword [esp + 0x10], ebp
jne 0x4085e6
mov dword [esp + 0x10], edx
mov al, byte [esi]
mov cl, 0x5c
cmp al, cl
jne 0x40862b
cmp byte [esi + 1], cl
jne 0x40862b
cmp byte [esi + 2], 0x3f
jne 0x408624
cmp byte [esi + 3], cl
jne 0x40862b
mov al, byte [esi + 4]
cmp al, 0x55
je 0x408609
cmp al, 0x75
jne 0x40862b
mov al, byte [esi + 5]
cmp al, 0x4e
je 0x408614
cmp al, 0x6e
jne 0x40862b
mov al, byte [esi + 6]
cmp al, 0x43
je 0x40861f
cmp al, 0x63
jne 0x40862b
cmp byte [esi + 7], cl
jne 0x40862b
mov eax, 1
jmp 0x40862d
xor eax, eax
neg al
sbb eax, eax
mov ecx, dword [esp + 0x164]
mov edx, dword [esp + 0x10]
and eax, 0x80
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x16c]
or eax, 0x440
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], eax
mov al, byte [esi]
cmp al, bl
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], edx
mov dword [esp + 0x40], 7
je 0x40869b
lea eax, [esp + 0x60]
push 0x100
push eax
push esi
call fcn.0040d610
test al, al
je 0x40868d
lea ecx, [esp + 0x60]
mov dword [esp + 0x4c], ecx
jmp 0x408691
mov dword [esp + 0x4c], esi
mov eax, dword [esp + 0x28]
or al, 1
mov dword [esp + 0x28], eax
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x408700
mov eax, dword [esp + 0x5c]
cmp eax, ebx
je 0x408715
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x1c]
mov ecx, dword [esp + 0x5c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4086f3
mov eax, dword [esp + 0x1c]
sub eax, ebx
je 0x4086ef
dec eax
jne 0x4086f3
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x14], 1
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x408715
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x408715
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
jne 0x408715
mov dword [esp + 0x14], 0xfffffffe
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x408731
cmp eax, ebp
je 0x408731
cmp eax, dword [esp + 0x18]
je 0x408731
push eax
mov dword [esp + 0x14], ebx
call fcn.00427d30
mov eax, dword [esp + 0x20]
push eax
call fcn.00427d30
pop edi
pop esi
mov eax, dword [esp + 0xc]
pop ebp
pop ebx
add esp, 0x150
ret 0x10