Function at 0x402470
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405270
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x409008]
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 ebx, ecx
mov dword [ebp - 4], 0
lea edx, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
mov esi, dword [ebp + 0x18]
cmovae edx, dword [ebp + 8]
add esi, edx
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0x1c], 0x10
lea edx, [ebp + 8]
mov dword [ebp - 0x14], 7
cmovae edx, dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x28], ax
mov eax, esi
sub eax, edx
mov dword [ebp - 0x2c], edx
cmp eax, 7
jbe 0x4024f9
mov byte [ebp - 0x30], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x30]
push eax
call fcn.004041d0
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
push esi
push edx
call fcn.00404120
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
cmp eax, 0xf
jb 0x402544
cmp edx, 8
lea esi, [ebp - 0x28]
push 0x1e
cmovae esi, dword [ebp - 0x28]
lea edi, [ecx + 0xf]
push 0x407698
mov dword [ebp - 0x18], edi
lea eax, [esi + ecx*2]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x402558
push 0xf
push ecx
mov byte [ebp - 0x2c], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x2c]
push 0xf
call fcn.00403cc0
cmp dword [ebx + 0x14], 8
xorps xmm0, xmm0
mov dword [ebp - 0x54], 0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
mov dword [ebp - 0x68], 0x140
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], str.runas
jb 0x40258e
mov ebx, dword [ebx]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x5c], ebx
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x6c], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4025e8
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4025e8
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4025e8
mov esi, dword [ebp - 0x30]
jmp 0x4025f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40262c
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402622
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402622
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004046b6
add esp, 8
mov edx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 0x10
jb 0x402676
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40266c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40266c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004046b6
add esp, 8
mov eax, esi
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.004042fa
mov esp, ebp
pop ebp
ret