Function at 0x4a87f0
Capabilities:
Check if file exists
Create process on windows
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e3cc
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x62819c]
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 esi, dword [ebp + 8]
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a8837
mov eax, 1
jmp 0x4a8ad1
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.0054b380
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x4a886d
mov eax, 0x80004005
jmp 0x4a8ad1
lea eax, [ebp - 0x220]
mov dword [ebp - 0x228], eax
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x4a8aed
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x4a88bb
movzx eax, ax
lea ecx, [ebp - 0x220]
push eax
call fcn.004295b0
jmp 0x4a88e6
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a88c4
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x220]
call fcn.00429870
push 0x5b9520
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 1
call fcn.00482c30
push str.regsvr32.exe
lea ecx, [ebp - 0x220]
call fcn.00482c30
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x4a8af7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
cmp byte [ebp + 0x10], 0
push dword [esi]
mov byte [ebp - 4], 2
je 0x4a8942
mov eax, str.__s__n__u__i:_user____s_
mov ecx, str._s__u___s_
jmp 0x4a894c
mov eax, str.__s__n__i:_user____s_
mov ecx, str._s___s_
cmp byte [ebp + 0xc], 0
cmove eax, ecx
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.0042bf70
add esp, 0xc
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x4a8b01
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x228], eax
mov esi, dword [ebp - 0x224]
lea eax, [ebp - 0x228]
push esi
push str.register_qingshellext_arg:_s_n
push eax
mov byte [ebp - 4], 3
call fcn.0042bf70
mov edi, dword [ebp - 0x228]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x264]
push eax
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x264], 0x3c
mov dword [ebp - 0x260], 0x440
mov dword [ebp - 0x250], esi
mov dword [ebp - 0x248], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4a8a58
mov ebx, 0x80004005
jmp 0x4a8a74
push 0xffffffffffffffff
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
lea edx, [edi - 0x10]
mov byte [ebp - 4], 2
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a8a92
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4a8aad
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x220]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x4a8acf
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.00545ec7
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004293d0
push 0x80004005
call fcn.004293d0
push 0x80004005
call fcn.004293d0
int3