Function at 0x41bb40
Capabilities:
Copy file
Delete file
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2254
call fcn.00492d40
push ebx
push esi
push edi
xor ebx, ebx
push str.void_ClearInstallDir_was_called
push str.ClearInstallDir_
lea esi, [ebx + 0x25]
mov dword [esp + 0x34], ebx
call fcn.0040b830
add esp, 8
push 0x1000
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str.SOFTWARE_baiduBaiduBrowser
lea ecx, [esp + 0x40]
call fcn.00405690
mov edx, dword [0x4ae214]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ae214
call eax
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x10]
push ecx
push 0x2001b
push ebx
push edx
lea edi, [eax + 0x10]
push 0x80000002
mov dword [esp + 0x38], edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41bc4d
push str.void_ClearInstallDir_open_CBdRegKey_failed
push str.ClearInstallDir_
mov dword [esp + 0x18], ebx
call fcn.0040b830
mov eax, dword [esp + 0x1c]
add esp, 8
cmp eax, ebx
je 0x41bbf7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x41bc0a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bc26
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bc46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x10]
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x2c]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edx
mov dword [esp + 0x4c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
neg eax
sbb eax, eax
not eax
and eax, dword [esp + 0x1c]
mov ecx, 0x4ae214
mov dword [esp + 0x1c], eax
mov eax, dword [0x4ae214]
mov edx, dword [eax + 0xc]
call edx
lea edi, [eax + 0x10]
xor esi, esi
mov dword [esp + 0x28], edi
cmp dword [esp + 0x1c], ebx
jbe 0x41bd15
mov edx, dword [esp + 0x10]
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x74]
push ecx
push esi
push edx
mov dword [esp + 0x38], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x41bce6
lea eax, [esp + 0x60]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41bcc4
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x30]
call fcn.004069f0
mov edi, dword [esp + 0x28]
push str.SilentInstallHistory
push edi
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x41bd02
inc esi
cmp esi, dword [esp + 0x1c]
jb 0x41bc97
jmp 0x41bd15
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x14]
push edx
lea esi, [esp + 0x2c]
call fcn.00426640
mov eax, dword [esp + 0x24]
cmp dword [eax - 0xc], ebx
jne 0x41bdab
push str.void_ClearInstallDir_install_path_is_empty
push str.ClearInstallDir_
mov esi, 0x25
call fcn.0040b830
mov eax, dword [esp + 0x1c]
add esp, 8
cmp eax, ebx
je 0x41bd4c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x41bd61
push eax
call esi
mov dword [esp + 0x10], ebx
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bd7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x41bd90
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x41bd9f
push eax
call esi
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
jmp 0x41bc0d
push 0xc
mov dword [esp + 0x38], ebx
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, ebx
je 0x41c373
mov dword [eax], eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], eax
mov dword [eax + 4], eax
push ecx
lea eax, [esp + 0x28]
call fcn.0041b6b0
mov eax, dword [esp + 0x34]
mov edi, dword [eax]
add esp, 4
mov dword [esp + 0x20], edi
cmp edi, eax
je 0x41c1d8
mov edi, edi
mov esi, dword [edi + 8]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi - 4], ebx
lea ecx, [esi - 4]
jl 0x41be18
cmp eax, dword [esi - 0x10]
jne 0x41be18
lea ebx, [esi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x41be4d
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x41c1d3
mov eax, dword [esi - 0xc]
mov dword [ebx + 4], eax
mov eax, dword [esi - 0xc]
lea eax, [eax + eax + 2]
push eax
push esi
push eax
lea ecx, [ebx + 0x10]
push ecx
call dword [sym.imp.MSVCR100.dll_memcpy_s]
add esp, 0x10
mov esi, dword [ebx + 4]
add ebx, 0x10
mov dword [esp + 0x18], ebx
test esi, esi
je 0x41bf93
or dword [esp + 0x2c], 1
cmp esi, 1
jg 0x41bedb
mov ecx, dword [ebx - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
lea esi, [ebx - 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x41be9a
cmp eax, dword [esi]
jne 0x41be9a
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
add ebx, 0x10
mov dword [esp + 0x1c], ebx
jmp 0x41bf51
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x41c1d3
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
lea eax, [eax + eax + 2]
push eax
add esi, 0x10
push esi
push eax
lea ecx, [ebx + 0x10]
push ecx
call dword [sym.imp.MSVCR100.dll_memcpy_s]
add esp, 0x10
add ebx, 0x10
mov dword [esp + 0x1c], ebx
jmp 0x41bf51
mov ecx, dword [ebx - 0x10]
test ecx, ecx
je 0x41beed
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
jne 0x41befd
mov edx, dword [0x4ae214]
mov eax, dword [edx + 0x10]
mov ecx, 0x4ae214
call eax
lea esi, [ebx + esi*2 - 2]
test eax, eax
je 0x41c291
test esi, esi
je 0x41c20a
mov edx, dword [eax]
push 2
mov ebx, 1
mov ecx, eax
mov eax, dword [edx]
push ebx
call eax
test eax, eax
je 0x41c1d3
add eax, 0x10
mov dword [esp + 0x1c], eax
cmp dword [eax - 8], ebx
jl 0x41c20a
push 2
push esi
xor ecx, ecx
push 2
mov dword [eax - 0xc], ebx
push eax
mov word [eax + 2], cx
call dword [sym.imp.MSVCR100.dll_memcpy_s]
add esp, 0x10
mov eax, dword [esp + 0x1c]
mov ecx, 0x49a27c
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41bf86
test dx, dx
je 0x41bf82
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41bf86
add eax, 4
add ecx, 4
test dx, dx
jne 0x41bf60
xor eax, eax
jmp 0x41bf8b
sbb eax, eax
sbb eax, reloc.NETAPI32.dll_NetApiBufferFree
test eax, eax
je 0x41bf93
mov bl, 1
jmp 0x41bf95
xor bl, bl
test byte [esp + 0x2c], 1
je 0x41bfc1
mov eax, dword [esp + 0x1c]
and dword [esp + 0x2c], 0xfffffffe
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41bfc1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x41bfd5
push 1
push 0x49a27c
lea ebx, [esp + 0x20]
call fcn.004064e0
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
jne 0x41bfeb
xor ecx, ecx
jmp 0x41bfff
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41bff0
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ebx, [esp + 0x20]
call fcn.004064e0
mov eax, dword [esp + 0x18]
lea edx, reloc.NETAPI32.dll_NetApiBufferFree
push edx
push eax
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x41c081
mov esi, dword [esp + 0x20]
mov ecx, dword [esi + 4]
mov ebx, dword [esi]
mov dword [ecx], ebx
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov eax, dword [edi + 8]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c056
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov eax, dword [esp + 0x1c]
dec dword [esp + 0x38]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x20], ebx
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x41c1b2
xor eax, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov word [esp + 0x5c], ax
mov ecx, 0x414
mov word [esp + 0x50], cx
mov edx, dword [edi + 8]
mov eax, dword [edx - 0xc]
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004928c4
mov esi, eax
mov eax, dword [edi + 8]
mov ebx, dword [eax - 0xc]
add esp, 4
cmp dword [eax - 4], 1
jle 0x41c0ea
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [edi + 8]
call fcn.00406630
mov edx, dword [edi + 8]
mov ecx, dword [edx - 0xc]
push ebx
push edx
add ecx, 2
push ecx
push esi
call dword [sym.imp.MSVCR100.dll_wcsncpy_s]
mov edx, dword [edi + 8]
mov eax, dword [edx - 0xc]
xor ecx, ecx
mov word [esi + eax*2], cx
mov edx, dword [edi + 8]
mov eax, dword [edx - 0xc]
add esp, 0x10
mov word [esi + eax*2 + 2], cx
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], ecx
mov dword [esp + 0x48], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x41c148
cmp eax, 0x7c
je 0x41c148
cmp eax, 2
je 0x41c148
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
jmp 0x41c190
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [edx], eax
mov ecx, dword [ebx + 4]
mov dword [esp + 0x20], eax
mov eax, dword [ebx]
mov dword [eax + 4], ecx
mov eax, dword [edi + 8]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41c17e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov ecx, dword [esp + 0x24]
add esp, 4
dec dword [esp + 0x34]
push esi
mov dword [esp + 0x24], ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41c1be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
cmp dword [esp + 0x20], ecx
je 0x41c1d8
mov edi, dword [esp + 0x20]
xor ebx, ebx
jmp 0x41bdf0
call fcn.00406620
mov edx, dword [0x4ae214]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ae214
call eax
lea edi, [eax + 0x10]
cmp dword [edi - 0xc], 0
mov esi, dword [edi - 0x10]
lea eax, [edi - 0x10]
mov dword [esp + 0x18], edi
je 0x41c248
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x41c222
cmp dword [edi - 8], 0
jge 0x41c214
push 0x80070057
call fcn.0040b800
xor ecx, ecx
mov dword [edi - 0xc], 0
mov word [edi], cx
jmp 0x41c248
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c238
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
cmp dword [esp + 0x34], 0
je 0x41c287
mov eax, dword [esp + 0x30]
mov esi, dword [eax]
cmp esi, eax
je 0x41c287
mov edi, eax
jmp 0x41c260
mov eax, dword [esi + 8]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ebx, [esp + 0x20]
call fcn.004064e0
push 1
push 0x49a3d8
call fcn.004064e0
mov esi, dword [esi]
cmp esi, edi
jne 0x41c260
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
xor ebx, ebx
cmp eax, ebx
jne 0x41c29b
push 0x80004005
call fcn.0040b800
push eax
push edi
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x41c2c8
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x41c2c8
mov edx, dword [edi - 0xc]
mov ecx, dword [esp + 0x28]
add edx, edx
push edx
push edi
push 1
push ebx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x41c2dd
push eax
call esi
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x41c2f0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41c30c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ebx, [esp + 0x30]
call fcn.0041ea60
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41c343
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
xor edi, edi
cmp eax, edi
je 0x41c354
push eax
call esi
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x41c367
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
jmp 0x41bc0d
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x20], ebx
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x4aa228
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x38], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
int3