Function at 0x412c50
Capabilities:
Create process on windows

Disassembly:
mov ecx, dword [0x483990]
sub esp, 0x24c
lea eax, [esp + 0x44]
push ebx
push ebp
push esi
push edi
push 0x104
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, dword [esp + 0x260]
mov eax, dword [edx - 8]
test eax, eax
jne 0x412ce5
lea edx, [esp + 0x54]
test edx, edx
jne 0x412c8b
xor ebx, ebx
jmp 0x412c98
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
push ebx
lea ecx, [esp + 0x264]
call fcn.00401de0
test eax, eax
je 0x412cde
mov edi, dword [esp + 0x260]
lea eax, [ebx + ebx]
mov ecx, eax
lea esi, [esp + 0x54]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x260]
mov dword [ecx - 8], ebx
mov edx, dword [esp + 0x260]
mov word [eax + edx], 0
mov edx, dword [esp + 0x260]
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [edx - 0xc]
mov dword [esp + 0x18], 0x3c
cmp dword [eax], 0
jl 0x412d0f
push eax
mov dword [esp + 0x14], edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x412d34
mov eax, dword [0x46b21c]
mov esi, edx
test edx, edx
mov dword [esp + 0x10], eax
jne 0x412d22
xor eax, eax
jmp 0x412d29
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.004027f0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], 0
xor ecx, ecx
mov edx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
cmp edx, 1
jg 0x412d54
mov edx, dword [eax - 4]
test edx, edx
jge 0x412dac
mov ebp, dword [eax - 8]
test ebp, ebp
jle 0x412d5d
mov ecx, ebp
push ecx
lea ecx, [esp + 0x14]
call fcn.00401ce0
test eax, eax
je 0x412dac
mov edi, dword [esp + 0x10]
lea ecx, [ebp + ebp + 2]
mov edx, ecx
lea esi, [ebx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
mov dword [eax - 8], ebp
mov eax, dword [0x46b220]
cmp ebx, eax
je 0x412da8
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x412da8
push ebx
call fcn.00459de2
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x264]
xor edx, edx
mov dword [esp + 0x34], 1
lea ecx, [eax - 0xc]
mov dword [esp + 0x40], edx
mov dword [esp + 0x20], edx
cmp dword [ecx], edx
jl 0x412ddd
push ecx
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x412dff
mov ecx, dword [0x46b21c]
mov esi, eax
test eax, eax
mov dword [esp + 0x14], ecx
je 0x412df4
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.004027f0
mov eax, dword [esp + 0x268]
mov edx, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x2c], edx
je 0x412e1a
mov dword [esp + 0x24], str.runas
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edx, dword [0x46b220]
mov esi, eax
mov eax, dword [esp + 0x14]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x412e5a
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x412e60
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00459de2
add esp, 4
jmp 0x412e60
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x10]
mov edx, dword [0x46b220]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x412e8b
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x412e8b
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00459de2
add esp, 4
mov eax, dword [esp + 0x260]
mov edx, dword [0x46b220]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x412ebc
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x412ebc
mov edx, dword [esp + 0x260]
add edx, 0xfffffff4
push edx
call fcn.00459de2
add esp, 4
lea ecx, [esp + 0x264]
call fcn.00401e80
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret