Function at 0x447980
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x47ee25
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4a6024]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x24], esi
mov ebx, ecx
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp + 0x214]
mov dword [ebp - 0x14], eax
mov al, byte [ebp + 0x21c]
push 0
mov byte [ebp - 0xd], al
lea eax, [ebp - 0x68]
push 0x3c
push eax
call fcn.00405d50
mov ecx, dword [ebx]
add esp, 0xc
sub ecx, 0x10
mov dword [ebp - 0x68], 0x3c
mov dword [ebp - 0x64], 0x440
call fcn.004058b0
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 1
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.004058b0
lea edi, [eax + 0x10]
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 3
lea eax, [ebp - 0x20]
push 4
push eax
mov ecx, ebx
call fcn.00426390
mov ebx, eax
mov byte [ebp - 4], 4
mov eax, dword [ebx]
mov esi, dword [eax - 0xc]
test esi, esi
js 0x447cb6
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or eax, ecx
jge 0x447a57
push esi
mov ecx, ebx
call fcn.00404db0
lea eax, [esi + 1]
push eax
push dword [ebx]
call fcn.0045e7a7
mov eax, dword [ebx]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x447cb6
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebx]
mov word [eax + esi*2], cx
mov ecx, dword [ebx]
sub ecx, 0x10
call fcn.004058b0
lea esi, [eax + 0x10]
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 7
or ebx, 0xffffffff
mov edx, dword [ebp - 0x20]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x447aac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x447b64
mov ecx, 0x491e78
mov eax, esi
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x447ae6
test dx, dx
je 0x447ae2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x447ae6
add eax, 4
add ecx, 4
test dx, dx
jne 0x447ac0
xor eax, eax
jmp 0x447aeb
sbb eax, eax
or eax, 1
test eax, eax
je 0x447b25
mov ecx, str..cmd
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x447b1c
test dx, dx
je 0x447b18
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x447b1c
add eax, 4
add ecx, 4
test dx, dx
jne 0x447af6
xor eax, eax
jmp 0x447b21
sbb eax, eax
or eax, 1
test eax, eax
jne 0x447b64
push 0x104
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push str._sSystem32cmd.exe
push eax
call fcn.00422e30
mov eax, dword [ebp - 0x24]
push dword [eax]
mov eax, dword [ebp - 0x28]
push dword [eax]
lea eax, [ebp - 0x1c]
push str._C____s___s_
push eax
call fcn.00422e30
mov edi, dword [ebp - 0x1c]
add esp, 0x1c
cmp byte [ebp - 0xd], 0
mov ecx, str.open
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x58], eax
mov eax, str.runas
cmove eax, ecx
mov dword [ebp - 0x4c], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x50]
mov ecx, dword [ecx]
cmp dword [ecx - 0xc], 0
cmovne eax, ecx
mov dword [ebp - 0x50], eax
cmp dword [edi - 0xc], 0
mov eax, dword [ebp - 0x54]
cmovne eax, edi
cmp byte [ebp - 0xd], 0
mov dword [ebp - 0x54], eax
je 0x447bb3
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x447be6
mov eax, dword [ebp - 0x48]
cmp eax, 0x1f
je 0x447bce
cmp eax, 0x1b
jne 0x447be6
and dword [ebp - 0x64], 0xfffffbff
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x5c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push dword [ebp - 0x2c]
lea eax, [ebp - 0x68]
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x74]
call fcn.00447d50
add esp, 4
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x447c30
push str.GetProcessId
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp - 0x14]
call eax
push eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
nop
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x74]
call fcn.00447cd0
mov byte [ebp - 4], 3
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x447c57
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x447c72
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x447c91
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00452869
lea esp, [ebp + 0x20c]
pop ebp
ret
push 0x80070057
call fcn.00402f30
int3