Function at 0x408630
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], 0x43e498
push eax
mov dword [esp + 0x18], 0xffffffff
call fcn.00426790
add esp, 4
lea ecx, [esp + 0x18]
xor ebx, ebx
mov dword [esp + 0x20], eax
push ecx
push ebx
push eax
call fcn.00411630
mov esi, eax
cmp esi, ebx
je 0x408831
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x170]
mov dword [esp + 0x10], ebx
cmp byte [edx], bl
je 0x4086da
cmp ebp, ebx
je 0x4086e2
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, 0x43eff4
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 0x43eff4
push ecx
push edx
call fcn.004266e0
jmp 0x4086e6
cmp ebp, ebx
mov dword [esp + 0x10], ebp
jne 0x4086e6
mov dword [esp + 0x10], edx
mov al, byte [esi]
mov cl, 0x5c
cmp al, cl
jne 0x40872b
cmp byte [esi + 1], cl
jne 0x40872b
cmp byte [esi + 2], 0x3f
jne 0x408724
cmp byte [esi + 3], cl
jne 0x40872b
mov al, byte [esi + 4]
cmp al, 0x55
je 0x408709
cmp al, 0x75
jne 0x40872b
mov al, byte [esi + 5]
cmp al, 0x4e
je 0x408714
cmp al, 0x6e
jne 0x40872b
mov al, byte [esi + 6]
cmp al, 0x43
je 0x40871f
cmp al, 0x63
jne 0x40872b
cmp byte [esi + 7], cl
jne 0x40872b
mov eax, 1
jmp 0x40872d
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 0x40879b
lea eax, [esp + 0x60]
push 0x100
push eax
push esi
call fcn.0040d690
test al, al
je 0x40878d
lea ecx, [esp + 0x60]
mov dword [esp + 0x4c], ecx
jmp 0x408791
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 0x408800
mov eax, dword [esp + 0x5c]
cmp eax, ebx
je 0x408815
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 0x4087f3
mov eax, dword [esp + 0x1c]
sub eax, ebx
je 0x4087ef
dec eax
jne 0x4087f3
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x14], 1
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x408815
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x408815
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
jne 0x408815
mov dword [esp + 0x14], 0xfffffffe
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x408831
cmp eax, ebp
je 0x408831
cmp eax, dword [esp + 0x18]
je 0x408831
push eax
mov dword [esp + 0x14], ebx
call fcn.00426640
mov eax, dword [esp + 0x20]
push eax
call fcn.00426640
pop edi
pop esi
mov eax, dword [esp + 0xc]
pop ebp
pop ebx
add esp, 0x150
ret 0x10