Function at 0x40524d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x408f54]
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 - 0x418], ecx
mov ecx, dword [ebp + 0x10]
mov ebx, esi
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x408], ecx
mov dword [ebp - 0x40c], esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x410], esi
mov dword [ebp - 0x414], esi
mov dword [ebp - 0x430], 0x200
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x40557d
cmp word [eax], si
je 0x40557d
test edi, edi
je 0x40557d
cmp word [edi], si
je 0x40557d
lea eax, [ebp - 0x40c]
push eax
push esi
push edi
call fcn.00404241
test eax, eax
js 0x40531d
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 0x40531f
lea eax, [ebp - 0x40c]
push eax
push ebx
push edi
call fcn.00404241
test eax, eax
jns 0x40531d
push ebx
call fcn.00402f02
mov ebx, esi
test ebx, ebx
mov ecx, dword [ebp - 0x408]
cmovne edi, ebx
xor edx, edx
test ecx, ecx
je 0x40546c
cmp word [ecx], dx
je 0x40546c
lea eax, [ebp - 0x424]
push eax
push 0x20019
push edi
push Ordinal_1
call fcn.00402518
mov esi, eax
test esi, esi
js 0x405582
lea eax, [ebp - 0x428]
push eax
push 0x20019
push dword [0x40b114]
push dword [ebp - 0x424]
call fcn.00402518
mov esi, eax
test esi, esi
js 0x405582
mov ecx, dword [ebp - 0x408]
lea eax, [ebp - 0x42c]
push eax
push 0x20019
push ecx
push dword [ebp - 0x428]
call fcn.00402518
mov esi, eax
test esi, esi
js 0x405582
lea eax, [ebp - 0x41c]
push eax
push 0x20019
push dword [0x40b118]
push dword [ebp - 0x42c]
call fcn.00402518
mov esi, eax
test esi, esi
js 0x405582
lea eax, [ebp - 0x414]
xor ecx, ecx
push eax
push ecx
lea eax, [ebp - 0x410]
push eax
push ecx
push dword [ebp - 0x41c]
call fcn.004039d9
mov esi, eax
mov eax, 0x80070002
test esi, esi
jns 0x405402
cmp esi, eax
jne 0x405582
cmp esi, eax
je 0x405425
test esi, esi
js 0x405464
cmp dword [ebp - 0x410], 1
je 0x40541c
cmp dword [ebp - 0x410], 2
jne 0x405425
cmp dword [ebp - 0x414], 2
ja 0x405464
lea eax, [ebp - 0x414]
push eax
xor eax, eax
push eax
lea eax, [ebp - 0x410]
push eax
push dword [0x40b12c]
push dword [ebp - 0x41c]
call fcn.004039d9
mov esi, eax
test esi, esi
js 0x405582
cmp dword [ebp - 0x414], 0
ja 0x405464
mov esi, 0x80004005
jmp 0x405582
mov ecx, dword [ebp - 0x408]
xor edx, edx
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x40549e
cmp word [eax], dx
je 0x40549e
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x40c], edx
push eax
push ecx
push edi
call fcn.00403f2b
mov esi, eax
test esi, esi
js 0x40549e
cmp dword [ebp - 0x40c], 0
jne 0x405506
push 3
push dword [ebp - 0x420]
call dword [sym.imp.SHLWAPI.dll_UrlIsW]
test eax, eax
je 0x4054fa
push 0x400
xor esi, esi
lea eax, [ebp - 0x404]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x430]
push esi
mov esi, dword [ebp - 0x420]
push eax
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathCreateFromUrlW]
test eax, eax
lea ecx, [ebp - 0x404]
cmovs ecx, esi
xor eax, eax
mov dword [ebp - 0x418], ecx
mov esi, eax
jmp 0x405508
mov eax, dword [ebp - 0x420]
mov dword [ebp - 0x418], eax
xor eax, eax
push 0x3c
push eax
lea eax, [ebp - 0x46c]
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp - 0x408]
lea eax, [ebp - 0x46c]
add esp, 0xc
mov dword [ebp - 0x460], ecx
mov ecx, dword [ebp - 0x418]
mov dword [ebp - 0x46c], 0x3c
mov dword [ebp - 0x468], 0x101
push eax
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 0x405582
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x405582
mov esi, 0x80070057
push ebx
call fcn.00402f02
lea eax, [ebp - 0x424]
push eax
call fcn.0040113a
lea eax, [ebp - 0x428]
push eax
call fcn.0040113a
lea eax, [ebp - 0x42c]
push eax
call fcn.0040113a
lea eax, [ebp - 0x41c]
push eax
call fcn.0040113a
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405a64
mov esp, ebp
pop ebp
ret 0x10