Function at 0x4106a0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x49f391
mov eax, dword fs:[0]
push eax
sub esp, 0x724
mov eax, dword [0x4c13e0]
xor eax, esp
mov dword [esp + 0x720], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c13e0]
xor eax, esp
push eax
lea eax, [esp + 0x738]
mov dword fs:[0], eax
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0x536]
push ecx
mov word [esp + 0x538], ax
call fcn.0047c020
add esp, 0xc
push str.360base.dll
lea ebx, [esi + 0x410]
push ebx
push 0x4a4864
lea edx, [esp + 0x538]
push 0x104
push edx
mov dword [esp + 0x2c], ebx
call fcn.004784c6
add esp, 0x14
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x530]
call fcn.004038d0
lea eax, [esp + 0x14]
mov edi, 0x4cacb8
mov dword [esp + 0x740], 0
call fcn.00403160
or ebp, 0xffffffff
mov dword [esp + 0x740], ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41077a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.004038d0
lea eax, [esp + 0x14]
mov edi, 0x4cacbc
mov dword [esp + 0x740], 1
call fcn.00403160
mov dword [esp + 0x740], ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], ebp
dec ebp
test ebp, ebp
jg 0x4107c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [0x4cac84], 0
jne 0x4107db
mov ecx, dword [0x4cacb8]
push ecx
call fcn.0040fa30
add esp, 4
push 0x4cacbc
lea ecx, [esi + 0x96c]
call fcn.0044f010
lea eax, [esi + 0x948]
push 0x4a7458
xor ebx, ebx
mov dword [esp + 0x18], eax
call fcn.004037f0
lea edi, [esi + 0x94c]
push 0x4a7458
mov eax, edi
call fcn.004037f0
lea ebp, [esi + 0x950]
push 0x4a7458
mov eax, ebp
call fcn.004037f0
lea eax, [esi + 0x958]
push 0x4a7458
mov dword [esp + 0x20], eax
call fcn.004037f0
lea eax, [esi + 0x954]
push 0x4a7458
mov dword [esp + 0x24], eax
call fcn.004037f0
xor edx, edx
push 0xc6
push edx
lea eax, [esp + 0x266]
push eax
mov word [esp + 0x268], dx
call fcn.0047c020
add esp, 0xc
push 0x64
lea ecx, [esp + 0x260]
push ecx
call fcn.00492ab0
test eax, eax
je 0x4108b2
lea eax, [esp + 0x25c]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410890
sub eax, edx
sar eax, 1
lea edx, [esp + 0x25c]
mov ebx, eax
mov eax, dword [esp + 0x14]
push edx
call fcn.004037f0
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x32e]
push ecx
mov word [esp + 0x330], ax
call fcn.0047c020
mov edx, dword [esp + 0x24]
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0xc
push str.QHVer.dll
push edx
lea eax, [esp + 0x32c]
push eax
call esi
lea ecx, [esp + 0x324]
lea ebx, [esp + 0x14]
call fcn.0040fb80
mov dword [esp + 0x740], 2
call fcn.00403160
mov dword [esp + 0x740], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410937
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x32e]
push edx
mov word [esp + 0x330], cx
call fcn.0047c020
mov eax, dword [esp + 0x24]
add esp, 0xc
push str.config.ini
push eax
lea ecx, [esp + 0x32c]
push ecx
call esi
lea edx, [esp + 0x324]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410a7f
mov eax, dword [ebp]
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, 0x3e8
or ecx, edx
jge 0x4109a8
mov ecx, 0x3e8
mov eax, ebp
call fcn.00403780
mov ecx, dword [ebp]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x324]
push eax
push 0x3e8
push ecx
push 0x4a745c
push str.language
push 0x4a730c
call esi
mov eax, dword [ebp]
mov ecx, dword [eax - 8]
test eax, eax
je 0x4109ec
push ecx
push eax
call fcn.004774c2
add esp, 8
test eax, eax
jl 0x410af8
mov ecx, dword [ebp]
cmp eax, dword [ecx - 8]
jg 0x410af8
mov edi, dword [esp + 0x1c]
mov dword [ecx - 0xc], eax
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [edi]
sub eax, 0x10
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x3e8
or edx, eax
jge 0x410a2d
mov ecx, 0x3e8
mov eax, edi
call fcn.00403780
mov edx, dword [edi]
lea ecx, [esp + 0x324]
push ecx
push 0x3e8
push edx
push 0x4a7458
push str.channel
push 0x4a730c
call esi
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x410a69
push ecx
push eax
call fcn.004774c2
add esp, 8
test eax, eax
jl 0x410af8
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x410af8
mov dword [ecx - 0xc], eax
mov ecx, dword [edi]
xor edx, edx
mov word [ecx + eax*2], dx
push 0x110
xor edi, edi
lea eax, [esp + 0x2c]
push edi
push eax
xor esi, esi
mov dword [esp + 0x30], 0x114
call fcn.0047c020
add esp, 0xc
push 0x118
lea ecx, [esp + 0x144]
push edi
push ecx
mov dword [esp + 0x148], 0x11c
call fcn.0047c020
add esp, 0xc
cmp dword [0x4cac84], edi
je 0x410b02
cmp dword [0x4ca864], 0xb
jbe 0x410b02
mov eax, dword [0x4ca894]
test eax, eax
je 0x410b02
push edi
lea edx, [esp + 0x140]
push edx
call eax
test eax, eax
je 0x410b02
mov esi, dword [esp + 0x140]
mov edi, dword [esp + 0x144]
jmp 0x410b19
push 0x80070057
call fcn.004037d0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x410b19
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
push 0x1e
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
mov eax, 0x4a7c0c
jne 0x410b2f
mov eax, 0x4a7c14
push eax
push edi
mov edi, dword [esp + 0x28]
push esi
push str._d._d__s
call fcn.0040dff0
add esp, 0x10
mov ecx, dword [esp + 0x738]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x720]
xor ecx, esp
call fcn.00476dfd
add esp, 0x730
ret