Function at 0x4024d0
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x188
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x184], eax
push esi
push edi
push 0x44
lea eax, [esp + 0x3c]
mov dword [esp + 0x1c], edx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x1c], 0
lea eax, [esp + 0x80]
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
push 0x102
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x80]
push 0x100
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40257a
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea edx, [esp + 0x80]
sub edx, eax
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x402550
lea eax, [esp + 0x80]
push 0x4047b8
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsstr]
add esp, 8
test eax, eax
je 0x40257a
mov byte [eax], 0
lea edi, [esp + 0x80]
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x402584
sub edi, ecx
add edi, 0x28
push edi
call fcn.00402c1e
add esp, 4
mov esi, eax
mov dword [esp + 0x14], esi
push edi
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x80]
lea ecx, [edi - 1]
push eax
push ecx
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
push 0x4047bc
push edi
push esi
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
call esi
add esp, 0xc
push dword [esp + 0x18]
push edi
push dword [esp + 0x1c]
call esi
add esp, 0xc
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push dword [ebp + 8]
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x402603
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x402629
lea eax, [esp + 0x1c]
push eax
push 1
push 1
push 0
push 0x2000000
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x40262f
call edi
mov esi, eax
neg esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x402643
cmp eax, 0xffffffff
je 0x402643
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x40265a
call edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
neg eax
mov dword [esp + 0x34], eax
jmp 0x4026dc
lea eax, [esp + 0x20]
mov dword [esp + 0x38], 0x44
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0x8000020
push 0
push 0
push 0
push dword [esp + 0x34]
push 0
push dword [esp + 0x44]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov dword [esp + 0x34], eax
test eax, eax
jne 0x4026a3
call edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
neg eax
mov dword [esp + 0x34], eax
jmp 0x4026dc
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x4026be
mov dword [esp + 0x34], 0xfffffffe
mov eax, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x4026d0
push eax
call esi
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x4026dc
push eax
call esi
push dword [esp + 0x14]
call fcn.00402bdb
mov eax, dword [esp + 0x20]
add esp, 4
test eax, eax
je 0x4026f3
push eax
call esi
mov ecx, dword [esp + 0x18c]
mov eax, dword [esp + 0x34]
pop edi
pop esi
xor ecx, esp
call fcn.00402bcd
mov esp, ebp
pop ebp
ret