Function at 0x402a60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d528
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x5524b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
xor edx, edx
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], edx
mov byte [ebp - 0x28], dl
mov dword [ebp - 4], edx
test edi, edi
je 0x402b07
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], edx
mov byte [ebp - 0x40], dl
cmp byte [edi], dl
jne 0x402ad1
xor ecx, ecx
jmp 0x402adf
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402ad6
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x40]
call fcn.00409450
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x40]
mov eax, dword [ebp - 0x30]
mov edx, 1
cmovae ecx, dword [ebp - 0x40]
cmp byte [eax + ecx - 1], 0x5c
je 0x402b07
mov bl, dl
jmp 0x402b09
xor bl, bl
test dl, 1
je 0x402b16
lea ecx, [ebp - 0x40]
call fcn.00408cf0
test bl, bl
je 0x402baa
cmp byte [edi], 0
jne 0x402b27
xor ecx, ecx
jmp 0x402b39
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402b30
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.00409450
mov ecx, dword [ebp - 0x18]
or eax, 0xffffffff
sub eax, ecx
cmp eax, 1
ja 0x402b5a
push str.string_too_long
call fcn.0044a0dc
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
jbe 0x402b6c
push str.string_too_long
call fcn.0044a0dc
mov edx, dword [ebp - 0x14]
cmp edx, esi
jae 0x402bb6
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.004090a0
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
test esi, esi
je 0x402ba7
cmp edx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov byte [eax + ecx], 0x5c
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x18], esi
cmovae eax, dword [ebp - 0x28]
mov byte [eax + esi], 0
mov esi, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x48]
cmp byte [ebx], 0
jne 0x402bcc
xor ecx, ecx
jmp 0x402bda
test esi, esi
jne 0x402b87
cmp edx, 0x10
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov byte [eax], 0
jmp 0x402ba7
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402bd1
sub ecx, edx
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.00408b90
push 0x38
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.004ab2f0
mov eax, dword [ebp - 0x4c]
add esp, 0xc
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x8c]
push eax
mov dword [ebp - 0x8c], 0x3c
mov dword [ebp - 0x88], 0x440
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
cmp byte [ebp + 0x18], 0
je 0x402c5b
push 0xffffffffffffffff
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x28]
call fcn.00408cf0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a4bd0
mov esp, ebp
pop ebp
ret