Function at 0x49da20
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 0x59e32c
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x61ce74]
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 0x49da67
mov eax, 1
jmp 0x49dd01
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00540d70
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x49da9d
mov eax, 0x80004005
jmp 0x49dd01
lea eax, [ebp - 0x220]
mov dword [ebp - 0x228], eax
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x49dd1d
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 0x49daeb
movzx eax, ax
lea ecx, [ebp - 0x220]
push eax
call fcn.00426130
jmp 0x49db16
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49daf4
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x220]
call fcn.004263f0
push 0x5c118c
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 1
call fcn.0047d410
push str.regsvr32.exe
lea ecx, [ebp - 0x220]
call fcn.0047d410
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x49dd27
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 0x49db72
mov eax, str.__s__n__u__i:_user____s_
mov ecx, str._s__u___s_
jmp 0x49db7c
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.004289d0
add esp, 0xc
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x49dd31
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.004289d0
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 0x49dc88
mov ebx, 0x80004005
jmp 0x49dca4
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 0x49dcc2
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 0x49dcdd
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 0x49dcff
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.0053d079
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00425f50
push 0x80004005
call fcn.00425f50
push 0x80004005
call fcn.00425f50
int3