Function at 0x402730
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2a4
mov eax, dword [0x418358]
xor eax, esp
mov dword [esp + 0x2a0], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
sub esp, 0x1c
mov esi, esp
xor ebx, ebx
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], cx
mov ecx, eax
mov dword [esp + 0x2c], esp
lea edi, [ecx + 2]
nop
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x402770
sub ecx, edi
sar ecx, 1
push ecx
call fcn.00404250
lea ecx, [esp + 0x34]
call fcn.00401930
cmp byte [esp + 0x1c], bl
jne 0x4027b3
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x18]
lea esi, [esp + 0x28]
call fcn.00404480
mov edx, dword [esp + 0x24]
push edx
jmp 0x402a76
xor eax, eax
mov word [esp + 0x30], ax
push 5
mov eax, str.wow64
lea esi, [esp + 0x34]
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], ebx
call fcn.00404250
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x30]
push ecx
lea eax, [esp + 0x24]
call fcn.00404540
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x24]
je 0x402818
mov edi, dword [eax + 0x1c]
add eax, 0xc
cmp dword [eax + 0x14], 8
jb 0x402800
mov eax, dword [eax]
push eax
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x34]
call fcn.00405750
test eax, eax
js 0x402818
lea eax, [esp + 0x14]
jmp 0x402824
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], edx
lea eax, [esp + 0x10]
cmp dword [eax], esi
setne bl
cmp dword [esp + 0x44], 8
jb 0x40283d
mov eax, dword [esp + 0x30]
push eax
call fcn.004071fc
add esp, 4
test bl, bl
je 0x402883
call fcn.004024a0
mov ebx, eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x18]
lea esi, [esp + 0x28]
call fcn.00404480
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004071fc
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2a0]
xor ecx, esp
call fcn.00407207
mov esp, ebp
pop ebp
ret 0x10
xor edx, edx
push 3
mov eax, 0x415f88
lea esi, [esp + 0x34]
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], dx
call fcn.00404250
mov ebx, esi
lea eax, [esp + 0x18]
call fcn.00402280
mov edi, 8
mov bl, al
cmp dword [esp + 0x44], edi
jb 0x4028cf
mov eax, dword [esp + 0x30]
push eax
call fcn.004071fc
add esp, 4
test bl, bl
je 0x402a5c
push 0x206
xor ebx, ebx
lea edx, [esp + 0xa6]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0xac], cx
call fcn.0040e6f0
add esp, 0xc
push 0x104
lea eax, [esp + 0xa4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0xa0]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor edx, edx
push 4
mov eax, str.args
lea esi, [esp + 0x50]
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], ebx
mov word [esp + 0x50], dx
call fcn.00404250
mov edx, esi
lea esi, [esp + 0x84]
lea ecx, [esp + 0x18]
call fcn.004022f0
cmp dword [eax + 0x14], edi
jb 0x40295e
mov eax, dword [eax]
mov dword [esp + 0x14], eax
xor ecx, ecx
push 3
mov eax, 0x415f88
lea esi, [esp + 0x34]
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], cx
call fcn.00404250
mov edx, esi
lea esi, [esp + 0x68]
lea ecx, [esp + 0x18]
call fcn.004022f0
cmp dword [eax + 0x14], edi
jb 0x40299b
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
push 5
lea edx, [esp + 0xa4]
push edx
push ecx
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [esp + 0x7c], edi
jb 0x4029c6
mov edx, dword [esp + 0x68]
push edx
call fcn.004071fc
add esp, 4
xor eax, eax
mov esi, 7
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], ax
cmp dword [esp + 0x44], edi
jb 0x4029ed
mov ecx, dword [esp + 0x30]
push ecx
call fcn.004071fc
add esp, 4
xor edx, edx
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], dx
cmp dword [esp + 0x98], edi
jb 0x402a15
mov eax, dword [esp + 0x84]
push eax
call fcn.004071fc
add esp, 4
xor ecx, ecx
mov dword [esp + 0x98], esi
mov dword [esp + 0x94], ebx
mov word [esp + 0x84], cx
cmp dword [esp + 0x60], edi
jb 0x402a40
mov edx, dword [esp + 0x4c]
push edx
call fcn.004071fc
add esp, 4
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x18]
lea esi, [esp + 0x28]
call fcn.00404480
mov eax, dword [esp + 0x24]
push eax
jmp 0x402a76
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x18]
lea esi, [esp + 0x28]
call fcn.00404480
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004071fc
mov ecx, dword [esp + 0x2b0]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00407207
mov esp, ebp
pop ebp
ret 0x10