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

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x45782d
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x478024]
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 edi, edx
mov dword [ebp - 0x24], edi
mov esi, ecx
mov dword [ebp - 0x28], esi
mov eax, dword [ebp + 0x214]
mov bl, byte [ebp + 0x21c]
push 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x64]
push 0x3c
push eax
call fcn.00407da0
add esp, 0xc
mov dword [ebp - 0x64], 0x3c
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x60], 0x440
push esi
call fcn.00407510
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push edi
call fcn.00407510
mov byte [ebp - 4], 1
lea eax, [ebp - 0x20]
push 4
push eax
mov ecx, esi
call fcn.00425370
mov edi, eax
mov byte [ebp - 4], 2
mov edx, dword [edi]
mov esi, dword [edx - 0xc]
test esi, esi
js 0x42d464
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x42d238
push esi
mov ecx, edi
call fcn.00403ef0
mov edx, dword [edi]
lea eax, [esi + 1]
push eax
push edx
call fcn.00442159
mov eax, dword [edi]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x42d464
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [edi]
push edi
mov word [eax + esi*2], cx
lea ecx, [ebp - 0x1c]
call fcn.00407510
mov byte [ebp - 4], 4
or edi, 0xffffffff
mov edx, dword [ebp - 0x20]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42d285
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x42d33b
mov eax, dword [ebp - 0x1c]
mov edx, 0x4678a8
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x42d2bd
test si, si
je 0x42d2b9
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x42d2bd
add ecx, 4
add edx, 4
test si, si
jne 0x42d297
xor ecx, ecx
jmp 0x42d2c2
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x42d2ff
mov ecx, str..cmd
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42d2f6
test dx, dx
je 0x42d2f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42d2f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x42d2d0
xor eax, eax
jmp 0x42d2fb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x42d33b
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.004121e0
mov eax, dword [ebp - 0x24]
push dword [eax]
mov eax, dword [ebp - 0x28]
push dword [eax]
lea eax, [ebp - 0x14]
push str._C____s___s_
push eax
call fcn.004121e0
add esp, 0x1c
mov eax, dword [ebp - 0x18]
test bl, bl
mov dword [ebp - 0x54], eax
mov ecx, 0x467cf4
mov eax, str.runas
mov dword [ebp - 0x48], 0
cmove eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ecx]
cmp dword [ecx - 0xc], 0
cmovne eax, ecx
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
cmovne ecx, eax
mov dword [ebp - 0x50], ecx
test bl, bl
je 0x42d390
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x5c], eax
nop dword [eax]
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea eax, [ebp - 0x64]
push eax
call esi
test eax, eax
jne 0x42d3c1
mov eax, dword [ebp - 0x44]
cmp eax, 0x1f
je 0x42d3ad
cmp eax, 0x1b
jne 0x42d3c1
and dword [ebp - 0x60], 0xfffffbff
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x58], 0
call esi
lea eax, [ebp - 0x64]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x10]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x70]
call fcn.0042d4f0
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
call fcn.0042d470
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42d402
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42d420
mov ecx, dword [edx]
push edx
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], edi
dec edi
test edi, edi
jg 0x42d43f
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.00438889
lea esp, [ebp + 0x20c]
pop ebp
ret
push 0x80070057
call fcn.00404020
int3