Function at 0x404d57
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc80
mov eax, dword [0x408f54]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edx, 0x20119
mov ecx, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0xc24], eax
mov eax, dword [ebp + 0x10]
mov ebx, esi
cmp dword [ebp + 0x18], ebx
push edi
mov edi, 0x20019
mov dword [ebp - 0xc18], eax
mov eax, dword [ebp + 0x14]
cmovne edi, edx
mov dword [ebp - 0xc28], ecx
mov dword [ebp - 0xc14], esi
mov dword [ebp - 0xc1c], esi
mov dword [ebp - 0xc20], esi
mov dword [ebp - 0xc0c], esi
mov dword [ebp - 0xc10], esi
mov dword [ebp - 0xc08], esi
mov dword [ebp - 0xc2c], 0x200
test ecx, ecx
je 0x4051f5
cmp word [ecx], si
je 0x4051f5
test eax, eax
je 0x4051f5
cmp word [eax], si
je 0x4051f5
lea ecx, [ebp - 0xc14]
push ecx
push edi
push eax
push 0x80000002
call fcn.00402518
mov esi, eax
test esi, esi
js 0x4051fa
mov eax, dword [ebp - 0xc18]
xor ecx, ecx
test eax, eax
je 0x404f21
cmp word [eax], cx
je 0x404f21
lea eax, [ebp - 0xc1c]
push eax
push edi
push dword [0x40b114]
push dword [ebp - 0xc14]
call fcn.00402518
mov esi, eax
test esi, esi
js 0x4051fa
lea eax, [ebp - 0xc20]
push eax
push edi
push dword [ebp - 0xc18]
push dword [ebp - 0xc1c]
call fcn.00402518
mov esi, eax
test esi, esi
js 0x4051fa
lea eax, [ebp - 0xc0c]
push eax
push edi
push dword [0x40b118]
push dword [ebp - 0xc20]
call fcn.00402518
mov esi, eax
test esi, esi
js 0x4051fa
lea eax, [ebp - 0xc08]
xor ecx, ecx
push eax
push ecx
lea eax, [ebp - 0xc10]
push eax
push ecx
push dword [ebp - 0xc0c]
call fcn.004039d9
mov esi, eax
mov eax, 0x80070002
test esi, esi
jns 0x404ebe
cmp esi, eax
jne 0x4051fa
cmp esi, eax
je 0x404ee1
test esi, esi
js 0x404f1f
cmp dword [ebp - 0xc10], 1
je 0x404ed8
cmp dword [ebp - 0xc10], 2
jne 0x404ee1
cmp dword [ebp - 0xc08], 2
ja 0x404f1f
lea eax, [ebp - 0xc08]
push eax
xor eax, eax
push eax
lea eax, [ebp - 0xc10]
push eax
push dword [0x40b12c]
push dword [ebp - 0xc0c]
call fcn.004039d9
mov esi, eax
test esi, esi
js 0x4051fa
cmp dword [ebp - 0xc08], ebx
ja 0x404f1f
mov esi, 0x80004005
jmp 0x4051fa
xor ecx, ecx
mov edi, dword [ebp - 0xc24]
test edi, edi
je 0x404f30
cmp word [edi], cx
jne 0x404f81
mov edi, dword [ebp - 0xc28]
push 3
push edi
call dword [sym.imp.SHLWAPI.dll_UrlIsW]
test eax, eax
je 0x404f7f
push 0x400
xor esi, esi
lea eax, [ebp - 0x404]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0xc2c]
push esi
push eax
lea eax, [ebp - 0x404]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathCreateFromUrlW]
test eax, eax
lea edi, [ebp - 0x404]
cmovs edi, dword [ebp - 0xc28]
xor ecx, ecx
cmp dword [ebp + 0x18], ebx
je 0x405181
cmp dword [ebp - 0xc0c], ebx
je 0x40517a
mov eax, dword [ebp - 0xc08]
test eax, eax
je 0x40517a
add eax, 2
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x404fbf
mov esi, 0x8007000e
jmp 0x4051fa
mov eax, dword [ebp - 0xc08]
xor esi, esi
add eax, 2
push eax
push esi
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0xc08]
push eax
push ebx
lea eax, [ebp - 0xc10]
push eax
push esi
push dword [ebp - 0xc0c]
call fcn.004039d9
mov esi, eax
test esi, esi
js 0x4051fa
xor eax, eax
cmp word [ebx], ax
je 0x40517a
push 0x4085a8
push ebx
call dword [sym.imp.VCRUNTIME140.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x405042
push 0x73
pop ecx
push edi
push ebx
mov word [eax + 2], cx
lea eax, [ebp - 0xc04]
push 0x400
push eax
call fcn.00405602
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4050d3
jmp 0x404f15
mov eax, 0x400
cmp dword [ebp - 0xc08], eax
jae 0x40517a
push dword [ebp - 0xc08]
push ebx
push eax
lea eax, [ebp - 0xc04]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x10
test eax, eax
jne 0x404f15
push 0x4085b0
lea eax, [ebp - 0xc04]
push 0x400
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
test eax, eax
jne 0x404f15
push edi
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea eax, [ebp - 0xc04]
push 0x400
push eax
call edi
add esp, 0xc
test eax, eax
jne 0x404f15
push 0x4085b8
lea eax, [ebp - 0xc04]
push 0x400
push eax
call edi
add esp, 0xc
test eax, eax
jne 0x404f15
push 0x44
pop edi
xor eax, eax
push edi
push eax
lea eax, [ebp - 0xc80]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
or dword [ebp - 0xc3c], 0xffffffff
or dword [ebp - 0xc38], 0xffffffff
xor eax, eax
inc eax
mov dword [ebp - 0xc80], edi
mov dword [ebp - 0xc54], eax
xor ecx, ecx
mov word [ebp - 0xc50], ax
lea eax, [ebp - 0xc3c]
push eax
lea eax, [ebp - 0xc80]
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
lea eax, [ebp - 0xc04]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x405149
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp dword [ebp - 0xc3c], 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x405160
push dword [ebp - 0xc3c]
call edi
cmp dword [ebp - 0xc38], 0xffffffff
je 0x4051fa
push dword [ebp - 0xc38]
call edi
jmp 0x4051fa
mov esi, 0x8000ffff
jmp 0x4051fa
push 0x3c
push ecx
lea eax, [ebp - 0xc78]
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0xc18]
add esp, 0xc
mov dword [ebp - 0xc6c], eax
xor eax, eax
inc eax
mov dword [ebp - 0xc78], 0x3c
mov dword [ebp - 0xc5c], eax
mov eax, dword [ebp - 0xc14]
mov dword [ebp - 0xc4c], eax
lea eax, [ebp - 0xc78]
push eax
mov dword [ebp - 0xc74], 0x103
mov dword [ebp - 0xc68], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4051fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x4051fa
mov esi, 0x80070057
xor edi, edi
push edi
call fcn.00402f02
push ebx
call fcn.00402f02
lea eax, [ebp - 0xc14]
push eax
call fcn.0040113a
lea eax, [ebp - 0xc1c]
push eax
call fcn.0040113a
lea eax, [ebp - 0xc20]
push eax
call fcn.0040113a
lea eax, [ebp - 0xc0c]
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 0x14