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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x73c
mov eax, dword [0x5a53f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x738], ecx
mov dword [ebp - 0xc], 0x207
mov dword [ebp - 4], 1
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x738]
push ecx
lea edx, [ebp - 4]
push edx
push str.Path
push 0x57b848
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov eax, dword [ebp - 0x738]
push eax
push 0x57b8d0
push 0x104
mov ecx, dword [ebp - 0x738]
add ecx, 0x208
push ecx
call fcn.004082f0
add esp, 0x10
push 0x57b8d8
mov ecx, dword [ebp - 0x738]
add ecx, 0x618
call fcn.004032f0
push 0x57b8dc
mov ecx, dword [ebp - 0x738]
add ecx, 0x620
call fcn.004032f0
push 0x57b8e0
mov ecx, dword [ebp - 0x738]
add ecx, 0x624
call fcn.004032f0
push 0x57b8e4
mov ecx, dword [ebp - 0x738]
add ecx, 0x62c
call fcn.004032f0
push 0x57b8e8
mov ecx, dword [ebp - 0x738]
add ecx, 0x630
call fcn.004032f0
push 0x57b8ec
mov ecx, dword [ebp - 0x738]
add ecx, 0x628
call fcn.004032f0
mov edx, dword [ebp - 0x738]
push edx
lea ecx, [ebp - 8]
call fcn.00403220
push 0x57b8f0
lea ecx, [ebp - 8]
call fcn.004062b0
lea eax, [ebp - 8]
push eax
call fcn.004335e0
add esp, 4
mov ecx, dword [ebp - 0x738]
push ecx
lea ecx, [ebp - 0x72c]
call fcn.00403220
lea edx, [ebp - 0x72c]
push edx
call fcn.00433610
add esp, 4
lea ecx, [ebp - 0x72c]
call fcn.00404d70
call fcn.00433640
mov eax, dword [ebp - 0x738]
cmp dword [eax + 0x63c], 1
jne 0x4d81a9
xor ecx, ecx
mov word [ebp - 0xd8], cx
push 0xc6
push 0
lea edx, [ebp - 0xd6]
push edx
call fcn.00534b20
add esp, 0xc
push 0x64
lea eax, [ebp - 0xd8]
push eax
call fcn.004d87e0
add esp, 8
test eax, eax
je 0x4d81a9
lea ecx, [ebp - 0xd8]
push ecx
mov ecx, dword [ebp - 0x738]
add ecx, 0x618
call fcn.004032f0
mov edx, dword [ebp - 0x738]
add edx, 0x61c
push edx
call fcn.00433b40
add esp, 4
xor eax, eax
mov word [ebp - 0x2e0], ax
push 0x206
push 0
lea ecx, [ebp - 0x2de]
push ecx
call fcn.00534b20
add esp, 0xc
push 0x57b90c
mov edx, dword [ebp - 0x738]
push edx
lea eax, [ebp - 0x2e0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x2e0]
push ecx
lea edx, [ebp - 0x730]
push edx
call fcn.004c7860
add esp, 8
push eax
mov ecx, dword [ebp - 0x738]
add ecx, 0x620
call fcn.004032d0
lea ecx, [ebp - 0x730]
call fcn.00404d70
lea eax, [ebp - 0x2e0]
push eax
lea ecx, [ebp - 0x734]
push ecx
call fcn.004d7db0
add esp, 8
push eax
mov ecx, dword [ebp - 0x738]
add ecx, 0x634
call fcn.004032d0
lea ecx, [ebp - 0x734]
call fcn.00404d70
xor edx, edx
mov word [ebp - 0x4e8], dx
push 0x206
push 0
lea eax, [ebp - 0x4e6]
push eax
call fcn.00534b20
add esp, 0xc
push 0x57b920
mov ecx, dword [ebp - 0x738]
push ecx
lea edx, [ebp - 0x4e8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x4e8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4d83d9
lea ecx, [ebp - 0x4e8]
push ecx
push 0x3e8
push 0x3e8
mov ecx, dword [ebp - 0x738]
add ecx, 0x624
call fcn.004049b0
push eax
push 0x57b938
push 0x57b940
push 0x57b954
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x738]
add ecx, 0x624
call fcn.00404800
lea edx, [ebp - 0x4e8]
push edx
push 0x3e8
push 0x3e8
mov ecx, dword [ebp - 0x738]
add ecx, 0x62c
call fcn.004049b0
push eax
push 0x57b95c
push str.channel
push 0x57b970
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x738]
add ecx, 0x62c
call fcn.00404800
lea eax, [ebp - 0x4e8]
push eax
push 0x3e8
push 0x3e8
mov ecx, dword [ebp - 0x738]
add ecx, 0x630
call fcn.004049b0
push eax
push 0x57b978
push str.schannel
push 0x57b990
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x738]
add ecx, 0x630
call fcn.00404800
mov ecx, dword [ebp - 0x738]
add ecx, 0x630
call fcn.004035b0
movzx ecx, al
test ecx, ecx
jne 0x4d83c3
mov edx, dword [ebp - 0x738]
add edx, 0x630
push edx
push 0x57b998
call fcn.004d8800
add esp, 8
movzx eax, al
test eax, eax
je 0x4d83d9
push 0x57b99c
mov ecx, dword [ebp - 0x738]
add ecx, 0x630
call fcn.004032f0
mov dword [ebp - 0x4ec], 0
mov dword [ebp - 0x4f0], 0
mov dword [ebp - 0x608], 0x114
push 0x110
push 0
lea ecx, [ebp - 0x604]
push ecx
call fcn.00534b20
add esp, 0xc
mov dword [ebp - 0x728], 0x11c
push 0x118
push 0
lea edx, [ebp - 0x724]
push edx
call fcn.00534b20
add esp, 0xc
push 0
lea eax, [ebp - 0x728]
push eax
call fcn.004d8c40
add esp, 8
test eax, eax
je 0x4d845c
mov ecx, dword [ebp - 0x724]
mov dword [ebp - 0x4ec], ecx
mov edx, dword [ebp - 0x720]
mov dword [ebp - 0x4f0], edx
jmp 0x4d8485
lea eax, [ebp - 0x608]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4d8485
mov ecx, dword [ebp - 0x604]
mov dword [ebp - 0x4ec], ecx
mov edx, dword [ebp - 0x600]
mov dword [ebp - 0x4f0], edx
push 0x1e
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
je 0x4d849d
mov dword [ebp - 0x73c], 0x57b9a0
jmp 0x4d84a7
mov dword [ebp - 0x73c], 0x57b9a8
mov eax, dword [ebp - 0x73c]
push eax
mov ecx, dword [ebp - 0x4f0]
push ecx
mov edx, dword [ebp - 0x4ec]
push edx
push 0x57b9b0
mov eax, dword [ebp - 0x738]
add eax, 0x628
push eax
call fcn.00404aa0
add esp, 0x14
xor ecx, ecx
mov edx, dword [ebp - 0x738]
mov word [edx + 0x410], cx
mov eax, dword [ebp - 0x738]
push eax
push 0x104
mov ecx, dword [ebp - 0x738]
add ecx, 0x410
push ecx
call fcn.00407af0
call fcn.00433630
push eax
mov ecx, dword [ebp - 0x738]
add ecx, 0x640
call fcn.0042eac0
lea ecx, [ebp - 8]
call fcn.00404d70
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005308cb
mov esp, ebp
pop ebp
ret