Function at 0x4b9e90
Capabilities:
Check if file exists
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x596d04
mov eax, dword fs:[0]
push eax
sub esp, 0x74c
mov eax, dword [0x5f4964]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x744], ecx
mov dword [ebp - 0x18], 0x207
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x744]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0x5b104c
push 0x5b1058
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov eax, dword [ebp - 0x744]
push eax
push 0x5b10e0
push 0x104
mov ecx, dword [ebp - 0x744]
add ecx, 0x208
push ecx
call fcn.00419550
add esp, 0x10
push 0x5b10e8
mov ecx, dword [ebp - 0x744]
add ecx, 0x618
call fcn.004150e0
push 0x5b10ec
mov ecx, dword [ebp - 0x744]
add ecx, 0x620
call fcn.004150e0
push 0x5b10f0
mov ecx, dword [ebp - 0x744]
add ecx, 0x624
call fcn.004150e0
push 0x5b10f4
mov ecx, dword [ebp - 0x744]
add ecx, 0x62c
call fcn.004150e0
push 0x5b10f8
mov ecx, dword [ebp - 0x744]
add ecx, 0x630
call fcn.004150e0
push 0x5b10fc
mov ecx, dword [ebp - 0x744]
add ecx, 0x628
call fcn.004150e0
mov edx, dword [ebp - 0x744]
push edx
lea ecx, [ebp - 0x14]
call fcn.00415010
mov dword [ebp - 4], 0
push str.360base.dll
lea ecx, [ebp - 0x14]
call fcn.00417020
lea eax, [ebp - 0x14]
push eax
call fcn.00418ff0
add esp, 4
mov ecx, dword [ebp - 0x744]
push ecx
lea ecx, [ebp - 0x738]
call fcn.00415010
mov byte [ebp - 4], 1
lea edx, [ebp - 0x738]
push edx
call fcn.00419010
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x738]
call fcn.00423040
call fcn.00419040
mov eax, dword [ebp - 0x744]
cmp dword [eax + 0x63c], 1
jne 0x4ba060
xor ecx, ecx
mov word [ebp - 0xe4], cx
push 0xc6
push 0
lea edx, [ebp - 0xe2]
push edx
call fcn.0056b960
add esp, 0xc
push 0x64
lea eax, [ebp - 0xe4]
push eax
call fcn.004aee70
add esp, 8
test eax, eax
je 0x4ba060
lea ecx, [ebp - 0xe4]
push ecx
mov ecx, dword [ebp - 0x744]
add ecx, 0x618
call fcn.004150e0
mov edx, dword [ebp - 0x744]
add edx, 0x61c
push edx
call fcn.00419060
add esp, 4
xor eax, eax
mov word [ebp - 0x2ec], ax
push 0x206
push 0
lea ecx, [ebp - 0x2ea]
push ecx
call fcn.0056b960
add esp, 0xc
push str.QHVer.dll
mov edx, dword [ebp - 0x744]
push edx
lea eax, [ebp - 0x2ec]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x2ec]
push ecx
lea edx, [ebp - 0x73c]
push edx
call fcn.004b1490
add esp, 8
mov dword [ebp - 0x748], eax
mov eax, dword [ebp - 0x748]
mov dword [ebp - 0x74c], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x74c]
push ecx
mov ecx, dword [ebp - 0x744]
add ecx, 0x620
call fcn.004150c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x73c]
call fcn.00423040
lea edx, [ebp - 0x2ec]
push edx
lea eax, [ebp - 0x740]
push eax
call fcn.004b9b30
add esp, 8
mov dword [ebp - 0x750], eax
mov ecx, dword [ebp - 0x750]
mov dword [ebp - 0x754], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x754]
push edx
mov ecx, dword [ebp - 0x744]
add ecx, 0x634
call fcn.004150c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x740]
call fcn.00423040
xor eax, eax
mov word [ebp - 0x4f4], ax
push 0x206
push 0
lea ecx, [ebp - 0x4f2]
push ecx
call fcn.0056b960
add esp, 0xc
push str.config.ini
mov edx, dword [ebp - 0x744]
push edx
lea eax, [ebp - 0x4f4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x4f4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4ba2cf
lea edx, [ebp - 0x4f4]
push edx
push 0x3e8
push 0x3e8
mov ecx, dword [ebp - 0x744]
add ecx, 0x624
call fcn.00415f30
push eax
push 0x5b1148
push str.language
push 0x5b1164
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x744]
add ecx, 0x624
call fcn.00415dd0
lea eax, [ebp - 0x4f4]
push eax
push 0x3e8
push 0x3e8
mov ecx, dword [ebp - 0x744]
add ecx, 0x62c
call fcn.00415f30
push eax
push 0x5b116c
push str.channel
push 0x5b1180
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x744]
add ecx, 0x62c
call fcn.00415dd0
lea ecx, [ebp - 0x4f4]
push ecx
push 0x3e8
push 0x3e8
mov ecx, dword [ebp - 0x744]
add ecx, 0x630
call fcn.00415f30
push eax
push 0x5b1188
push str.schannel
push 0x5b11a0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x744]
add ecx, 0x630
call fcn.00415dd0
mov ecx, dword [ebp - 0x744]
add ecx, 0x630
call fcn.004153a0
movzx edx, al
test edx, edx
jne 0x4ba2b9
mov eax, dword [ebp - 0x744]
add eax, 0x630
push eax
push 0x5b11a8
call fcn.00471680
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x4ba2cf
push 0x5b11ac
mov ecx, dword [ebp - 0x744]
add ecx, 0x630
call fcn.004150e0
mov dword [ebp - 0x4f8], 0
mov dword [ebp - 0x4fc], 0
mov dword [ebp - 0x614], 0x114
push pe_nt_image_headers32
push 0
lea edx, [ebp - 0x610]
push edx
call fcn.0056b960
add esp, 0xc
mov dword [ebp - 0x734], 0x11c
push 0x118
push 0
lea eax, [ebp - 0x730]
push eax
call fcn.0056b960
add esp, 0xc
push 0
lea ecx, [ebp - 0x734]
push ecx
call fcn.004bac00
add esp, 8
test eax, eax
je 0x4ba352
mov edx, dword [ebp - 0x730]
mov dword [ebp - 0x4f8], edx
mov eax, dword [ebp - 0x72c]
mov dword [ebp - 0x4fc], eax
jmp 0x4ba37b
lea ecx, [ebp - 0x614]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4ba37b
mov edx, dword [ebp - 0x610]
mov dword [ebp - 0x4f8], edx
mov eax, dword [ebp - 0x60c]
mov dword [ebp - 0x4fc], eax
push 0x1e
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
je 0x4ba393
mov dword [ebp - 0x758], 0x5b11b0
jmp 0x4ba39d
mov dword [ebp - 0x758], 0x5b11b8
mov ecx, dword [ebp - 0x758]
push ecx
mov edx, dword [ebp - 0x4fc]
push edx
mov eax, dword [ebp - 0x4f8]
push eax
push 0x5b11c0
mov ecx, dword [ebp - 0x744]
add ecx, 0x628
push ecx
call fcn.00416010
add esp, 0x14
xor edx, edx
mov eax, dword [ebp - 0x744]
mov word [eax + 0x410], dx
mov ecx, dword [ebp - 0x744]
push ecx
push 0x104
mov edx, dword [ebp - 0x744]
add edx, 0x410
push edx
call fcn.00417ad0
push 0
mov eax, dword [ebp - 0x744]
add eax, 0x784
push eax
call fcn.0041d090
mov ecx, eax
call fcn.004ba790
mov ecx, dword [ebp - 0x744]
mov dword [ecx + 0x640], eax
call fcn.00419030
push eax
mov ecx, dword [ebp - 0x744]
add ecx, 0x644
call fcn.0041ee00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00423040
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0056ab51
mov esp, ebp
pop ebp
ret