Function at 0x4b2980
Capabilities:
Check if file exists
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a8011
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x639354]
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 0x4b29c7
mov eax, 1
jmp 0x4b2c81
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00560a80
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x4b29fd
mov eax, 0x80004005
jmp 0x4b2c81
lea eax, [ebp - 0x220]
mov dword [ebp - 0x228], eax
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x4b2c9d
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 0x4b2a4b
movzx eax, ax
lea ecx, [ebp - 0x220]
push eax
call fcn.00429d90
jmp 0x4b2a76
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b2a54
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x220]
call fcn.0042a060
push 0x5c3248
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 1
call fcn.00489dd0
push str.regsvr32.exe
lea ecx, [ebp - 0x220]
call fcn.00489dd0
push dword [ebp - 0x220]
call fcn.0051f2a0
add esp, 4
or ebx, 0xffffffff
test eax, eax
jne 0x4b2ade
push dword [ebp - 0x220]
push str.1026_t_registerQingDll_tpathRegsvr32_checkLocalFileSafe_fail__current_path
push str.D:pub_bh8h_rc_bug_mas_v12_2409Coding_support_newsetup_srccommonappKUninstallkuserinfo.cpp
push str._ERROR_
push 0x641cc8
call fcn.0046b730
add esp, 0x14
mov esi, 0x80004005
jmp 0x4b2c64
lea ecx, [ebp - 0x224]
call fcn.0042a9e0
cmp byte [ebp + 0x10], 0
push dword [esi]
mov byte [ebp - 4], 2
je 0x4b2b01
mov eax, 0x5cb3d8
mov ecx, str._s__u___s_
jmp 0x4b2b0b
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.0042c720
add esp, 0xc
lea ecx, [ebp - 0x228]
call fcn.0042a9e0
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.0042c720
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 fcn.00521b00
add esp, 4
test eax, eax
jne 0x4b2c0c
mov dword [ebp - 0x224], 0x80004005
jmp 0x4b2c30
push 0xffffffffffffffff
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x224], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4b2c47
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4b2c5e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x224]
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4b2c7f
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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.0055c3a9
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00429b60
int3