Function at 0x490450
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 0x580311
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x5fb61c]
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 bl, byte [ebp + 8]
mov esi, ecx
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49049a
mov eax, 1
jmp 0x4906f1
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x21a]
push ecx
mov word [ebp - 0x21c], ax
call fcn.005336c0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x490660
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
call fcn.00422540
push str.System32
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 0
call fcn.00479630
push str.regsvr32.exe
lea ecx, [ebp - 0x220]
call fcn.00479630
mov edx, dword [0x5fcb00]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcb00
call eax
add eax, 0x10
mov dword [ebp - 0x224], eax
cmp byte [ebp + 0xc], 0
mov byte [ebp - 4], 1
je 0x49053e
mov eax, str.__s__n__u__i:_user____s_
test bl, bl
jne 0x49054c
mov eax, str._s__u___s_
jmp 0x49054c
mov eax, str.__s__n__i:_user____s_
test bl, bl
jne 0x49054c
mov eax, str._s___s_
mov ecx, dword [esi]
push ecx
push eax
lea edx, [ebp - 0x224]
push edx
call fcn.004237a0
mov eax, dword [0x5fcb00]
mov edx, dword [eax + 0xc]
add esp, 0xc
mov ecx, 0x5fcb00
call edx
add eax, 0x10
mov dword [ebp - 0x228], eax
mov esi, dword [ebp - 0x224]
push esi
lea eax, [ebp - 0x228]
push str.register_qingshellext_arg:_s_n
push eax
mov byte [ebp - 4], 2
call fcn.004237a0
mov edi, dword [ebp - 0x228]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x38
lea ecx, [ebp - 0x260]
push 0
push ecx
call fcn.005336c0
mov edx, dword [ebp - 0x220]
add esp, 0xc
lea eax, [ebp - 0x264]
push eax
mov dword [ebp - 0x264], 0x3c
mov dword [ebp - 0x260], 0x440
mov dword [ebp - 0x254], edx
mov dword [ebp - 0x250], esi
mov dword [ebp - 0x248], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x49066a
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x490617
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x490637
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x490660
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x80004005
jmp 0x4906f1
mov ecx, dword [ebp - 0x22c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4906a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4906c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4906ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
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.005332ca
mov esp, ebp
pop ebp
ret