Function at 0x403b20
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get installed programs
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push ebx
push esi
push edi
xor esi, esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x58], str.Sogou_Input
mov dword [ebp - 0x54], 0x497b60
mov dword [ebp - 0x50], str.360SD
mov dword [ebp - 0x4c], str.QQPCMgr
mov dword [ebp - 0x48], str.Kingsoft_Internet_Security
mov dword [ebp - 0x44], str.qkS
mov dword [ebp - 0x40], str.BaiduPlayer
call fcn.00405690
push 0x18
mov dword [ebp - 0x30], esi
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, esi
je 0x4040d5
mov dword [ebp - 0x34], eax
mov dword [eax], eax
mov eax, dword [ebp - 0x34]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [eax + 8], eax
mov ecx, dword [ebp - 0x34]
mov al, 1
mov byte [ecx + 0x14], al
mov edx, dword [ebp - 0x34]
mov byte [edx + 0x15], al
mov dword [ebp - 0x10], esi
jmp 0x403bb3
mov esi, dword [ebp - 0x10]
mov eax, dword [0x4ae214]
mov edx, dword [eax + 0xc]
mov ecx, 0x4ae214
call edx
add eax, 0x10
push esi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push 0x497c54
push eax
call fcn.00407630
add esp, 0xc
lea ecx, [ebp - 0x38]
push ecx
lea eax, [ebp - 0xc]
call fcn.00406070
push 5
push 0x498ae4
mov ecx, eax
call fcn.004069f0
mov edi, dword [ebp + esi*4 - 0x58]
lea ebx, [ebp - 0x3c]
lea esi, [ebp - 0x20]
call fcn.00405dd0
mov eax, dword [ebp - 0x14]
xor edi, edi
cmp eax, edi
je 0x403c16
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x18]
cmp eax, edi
je 0x403c27
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], edi
mov ebx, dword [ebp - 0x20]
lea edx, [ebp - 0x18]
push edx
push 0x20019
push edi
push ebx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x403c4c
mov dword [ebp - 0x18], edi
jmp 0x403d6e
mov eax, dword [0x4ae214]
mov edx, dword [eax + 0xc]
mov ecx, 0x4ae214
call edx
add eax, 0x10
mov dword [ebp - 8], eax
mov eax, 0x498b64
push edi
test eax, 0xffff0000
jne 0x403c8c
mov ecx, eax
movzx esi, cx
push esi
call fcn.0040b110
add esp, 8
cmp eax, edi
je 0x403c99
push esi
push eax
lea ecx, [ebp - 8]
call fcn.00406e10
jmp 0x403c99
push 0x498b64
lea ecx, [ebp - 8]
call fcn.004069f0
mov edx, dword [0x4ae214]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ae214
call eax
add eax, 0x10
mov ecx, str.UninstallString
mov dword [ebp - 0x1c], eax
test ecx, 0xffff0000
jne 0x403cdb
mov edx, ecx
movzx esi, dx
push edi
push esi
call fcn.0040b110
add esp, 8
cmp eax, edi
je 0x403cea
push esi
push eax
lea ecx, [ebp - 0x1c]
call fcn.00406e10
jmp 0x403cea
push 0xf
push str.UninstallString
lea ecx, [ebp - 0x1c]
call fcn.004069f0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea esi, [ebp - 8]
call fcn.00426640
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403d19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], edi
je 0x403d52
lea ecx, [ebp - 8]
push ecx
call fcn.00405b10
mov esi, dword [ebp - 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403d52
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0xc]
call fcn.00406070
push 4
push 0x498ad8
mov ecx, eax
call fcn.004069f0
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403d6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403d8a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403da9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, 7
jb 0x403bb0
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
push ecx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edx, dword [0x4ae214]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ae214
call eax
add eax, 0x10
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
mov dword [ebp - 8], eax
test ecx, 0xffff0000
jne 0x403e12
mov edx, ecx
movzx esi, dx
push 0
push esi
call fcn.0040b110
add esp, 8
test eax, eax
je 0x403e3f
push esi
push eax
lea ecx, [ebp - 8]
call fcn.00406e10
jmp 0x403e3f
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
lea edx, [eax + 2]
jmp 0x403e20
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403e20
sub eax, edx
sar eax, 1
push eax
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
lea ecx, [ebp - 8]
call fcn.004069f0
push 0x19
push str._baidu_browserconfig.ini
lea ebx, [ebp - 8]
call fcn.004064e0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, reloc.NETAPI32.dll_NetApiBufferFree
je 0x403fba
test al, 0x10
jne 0x403fba
lea edx, [ebp - 0xc]
push edx
mov ecx, ebx
call fcn.00419390
mov eax, dword [ebp - 0xc]
add esp, 4
push eax
push 0
push str.REPORT
push 0x497cb8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, dword [0x4ae214]
mov esi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4ae214
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov edx, 0x497858
test esi, esi
jne 0x403eb3
mov edx, 0x497cbc
mov eax, edx
lea esi, [eax + 2]
jmp 0x403ec0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403ec0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x10]
call fcn.004069f0
mov esi, dword [ebp - 0x10]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
mov dword [ebp - 0x24], 0x497cc0
call eax
cmp dword [esi + 0xc], edi
lea edx, [esi + 0xc]
jl 0x403f09
cmp eax, dword [esi]
jne 0x403f09
mov ebx, esi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x403f46
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
jne 0x403f22
call fcn.00406620
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
lea edx, [eax + eax + 2]
push edx
lea edx, [esi + 0x10]
push edx
lea eax, [eax + eax + 2]
lea ecx, [ebx + 0x10]
push eax
push ecx
call dword [sym.imp.MSVCR100.dll_memcpy_s]
add esp, 0x10
lea edi, [ebx + 0x10]
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x38]
mov dword [ebp - 0x20], edi
call fcn.00408690
push eax
lea ecx, [ebp - 0x38]
push ecx
lea ebx, [ebp - 0x24]
call fcn.00407b90
add edi, 0xfffffff0
lea edx, [edi + 0xc]
or eax, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x403f80
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
lea ecx, [esi + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403f99
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403fe0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x403fe0
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x38]
mov dword [ebp - 0x24], 0x497cc0
mov dword [ebp - 0x20], 0x497858
call fcn.00408760
push eax
lea ecx, [ebp - 0x38]
push ecx
lea ebx, [ebp - 0x24]
call fcn.00407b90
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403fff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
sub esp, 0x10
push esp
lea ecx, [ebp - 0x38]
call fcn.004067e0
mov edx, dword [0x4ae214]
mov eax, dword [edx + 0xc]
push ecx
mov ecx, 0x4ae214
mov esi, esp
call eax
add eax, 0x10
mov ecx, 0x497cc8
mov dword [esi], eax
test ecx, 0xffff0000
jne 0x40404f
mov edx, ecx
movzx edi, dx
push 0
push edi
call fcn.0040b110
add esp, 8
test eax, eax
je 0x40405d
push edi
push eax
mov ecx, esi
call fcn.00406e10
jmp 0x40405d
push 2
push 0x497cc8
mov ecx, esi
call fcn.004069f0
mov eax, dword [ebp + 8]
push eax
call fcn.00413540
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp + 8]
lea esi, [ebp - 0x38]
call fcn.00406b10
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov eax, dword [ebp - 0x3c]
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 0x4040a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4040b9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4040c7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp + 8], esi
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x4aa228
lea edx, [ebp - 0x28]
push edx
mov dword [ebp - 0x28], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
int3