Function at 0x4051ee
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x40202c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x410], ecx
mov ecx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x408], ecx
mov ebx, esi
mov dword [ebp - 0x40c], esi
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x414], esi
mov dword [ebp - 0x430], 0x200
test eax, eax
je 0x405529
cmp word [eax], si
je 0x405529
test edi, edi
je 0x405529
cmp word [edi], si
je 0x405529
lea eax, [ebp - 0x40c]
push eax
push esi
push edi
call fcn.00405b09
test eax, eax
js 0x4052be
mov eax, dword [ebp - 0x40c]
add eax, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4052c0
lea eax, [ebp - 0x40c]
push eax
push ebx
push edi
call fcn.00405b09
test eax, eax
jns 0x4052be
push ebx
call fcn.00403feb
mov ebx, esi
test ebx, ebx
mov ecx, dword [ebp - 0x408]
cmovne edi, ebx
xor edx, edx
test ecx, ecx
je 0x40540d
cmp word [ecx], dx
je 0x40540d
lea eax, [ebp - 0x428]
push eax
push 0x20019
push edi
push 0x80000000
call fcn.004020f4
mov esi, eax
test esi, esi
js 0x40552e
lea eax, [ebp - 0x42c]
push eax
push 0x20019
push dword [0x409144]
push dword [ebp - 0x428]
call fcn.004020f4
mov esi, eax
test esi, esi
js 0x40552e
mov ecx, dword [ebp - 0x408]
lea eax, [ebp - 0x424]
push eax
push 0x20019
push ecx
push dword [ebp - 0x42c]
call fcn.004020f4
mov esi, eax
test esi, esi
js 0x40552e
lea eax, [ebp - 0x41c]
push eax
push 0x20019
push dword [0x409148]
push dword [ebp - 0x424]
call fcn.004020f4
mov esi, eax
test esi, esi
js 0x40552e
lea eax, [ebp - 0x414]
push eax
xor ecx, ecx
push ecx
lea eax, [ebp - 0x418]
push eax
push ecx
push dword [ebp - 0x41c]
call fcn.00404385
mov esi, eax
mov eax, 0x80070002
test esi, esi
jns 0x4053a3
cmp esi, eax
jne 0x40552e
cmp esi, eax
je 0x4053c6
test esi, esi
js 0x405405
cmp dword [ebp - 0x418], 1
je 0x4053bd
cmp dword [ebp - 0x418], 2
jne 0x4053c6
cmp dword [ebp - 0x414], 2
ja 0x405405
lea eax, [ebp - 0x414]
push eax
xor eax, eax
push eax
lea eax, [ebp - 0x418]
push eax
push dword [0x40915c]
push dword [ebp - 0x41c]
call fcn.00404385
mov esi, eax
test esi, esi
js 0x40552e
cmp dword [ebp - 0x414], 0
ja 0x405405
mov esi, 0x80004005
jmp 0x40552e
mov ecx, dword [ebp - 0x408]
xor edx, edx
mov eax, dword [ebp - 0x410]
test eax, eax
je 0x40543f
cmp word [eax], dx
je 0x40543f
lea eax, [ebp - 0x40c]
push eax
push ecx
push edi
mov dword [ebp - 0x40c], edx
call fcn.00405c73
mov esi, eax
test esi, esi
js 0x40543f
cmp dword [ebp - 0x40c], 0
jne 0x4054ae
push 3
push dword [ebp - 0x420]
call dword [sym.imp.SHLWAPI.dll_UrlIsW]
test eax, eax
je 0x4054a2
push 0x400
xor esi, esi
lea eax, [ebp - 0x404]
push esi
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push esi
mov esi, dword [ebp - 0x420]
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathCreateFromUrlW]
test eax, eax
js 0x405496
lea eax, [ebp - 0x404]
mov dword [ebp - 0x410], eax
jmp 0x40549c
mov dword [ebp - 0x410], esi
xor eax, eax
mov esi, eax
jmp 0x4054b0
mov eax, dword [ebp - 0x420]
mov dword [ebp - 0x410], eax
xor eax, eax
push 0x3c
push eax
lea eax, [ebp - 0x46c]
push eax
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp - 0x408]
add esp, 0xc
mov dword [ebp - 0x460], ecx
mov ecx, dword [ebp - 0x410]
lea eax, [ebp - 0x46c]
push eax
mov dword [ebp - 0x46c], 0x3c
mov dword [ebp - 0x468], 0x101
mov dword [ebp - 0x45c], ecx
mov dword [ebp - 0x450], 1
mov dword [ebp - 0x444], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x40552e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40552e
and esi, 0xffff
or esi, 0x80070000
jmp 0x40552e
mov esi, 0x80070057
push ebx
call fcn.00403feb
lea eax, [ebp - 0x428]
push eax
call fcn.0040211d
lea eax, [ebp - 0x42c]
push eax
call fcn.0040211d
lea eax, [ebp - 0x424]
push eax
call fcn.0040211d
lea eax, [ebp - 0x41c]
push eax
call fcn.0040211d
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406887
leave
ret 0x10