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

Disassembly:
push 0xffffffffffffffff
push 0x4ba7e2
mov eax, dword fs:[0]
push eax
mov eax, 0x1048
call fcn.004a2de0
mov eax, dword [0x4e27e0]
xor eax, esp
mov dword [esp + 0x1044], eax
push ebx
push ebp
push esi
mov eax, dword [0x4e27e0]
xor eax, esp
push eax
lea eax, [esp + 0x1058]
mov dword fs:[0], eax
mov eax, dword [esp + 0x106c]
mov ebp, dword [esp + 0x1068]
mov dword [esp + 0x2c], eax
xor ebx, ebx
xor edx, edx
push 0x1b
mov eax, str.CINIReader::GetText___start
lea esi, [esp + 0x14]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], dx
call fcn.004033f0
mov eax, esi
push eax
mov dword [esp + 0x1064], ebx
call fcn.00403580
mov esi, 8
add esp, 4
mov dword [esp + 0x1060], 0xffffffff
cmp dword [esp + 0x28], esi
jb 0x410692
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0047cc0e
add esp, 4
cmp byte [ebp + 0x24], bl
je 0x4108f8
cmp dword [ebp + 0x1c], esi
jb 0x4106a5
mov eax, dword [ebp + 8]
jmp 0x4106a8
lea eax, [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4108f8
xor edx, edx
push 0x1e
mov eax, str.CINIReader::GetText___sSection
lea esi, [esp + 0x14]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], dx
call fcn.004033f0
mov ecx, dword [esp + 0x2c]
mov eax, esi
push eax
mov dword [esp + 0x1064], 1
call fcn.00402ec0
add esp, 4
mov dword [esp + 0x1060], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x410713
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0047cc0e
add esp, 4
xor edx, edx
push 0x20
mov eax, str.CINIReader::GetText___sParamName
lea esi, [esp + 0x14]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], dx
call fcn.004033f0
mov eax, esi
mov esi, dword [esp + 0x30]
push eax
mov ecx, esi
mov dword [esp + 0x1064], 2
call fcn.00402ec0
add esp, 4
mov dword [esp + 0x1060], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x410771
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0047cc0e
add esp, 4
push 0xffe
lea eax, [esp + 0x5a]
xor edx, edx
push ebx
push eax
mov word [esp + 0x60], dx
call fcn.004a2540
mov eax, dword [ebp + 0x20]
add esp, 0xc
cmp eax, ebx
je 0x410886
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x410886
mov eax, 8
cmp dword [ebp + 0x1c], eax
jb 0x4107b6
mov edx, dword [ebp + 8]
jmp 0x4107b9
lea edx, [ebp + 8]
cmp dword [esi + 0x18], eax
jb 0x4107c3
mov ecx, dword [esi + 4]
jmp 0x4107c6
lea ecx, [esi + 4]
mov eax, dword [esp + 0x2c]
cmp dword [eax + 0x18], 8
jb 0x4107d5
mov eax, dword [eax + 4]
jmp 0x4107d8
add eax, 4
push edx
push 0x800
lea edx, [esp + 0x5c]
push edx
push 0x4c7eec
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, str.CINIReader::GetText___result
lea ecx, [esp + 0x34]
call fcn.004034a0
lea eax, [esp + 0x54]
lea ecx, [esp + 0x10]
mov dword [esp + 0x1060], 3
call fcn.004034a0
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
mov byte [esp + 0x1064], 4
call fcn.00402ec0
mov esi, 8
add esp, 4
cmp dword [esp + 0x28], esi
jb 0x410845
mov edx, dword [esp + 0x14]
push edx
call fcn.0047cc0e
add esp, 4
xor eax, eax
mov dword [esp + 0x1060], 0xffffffff
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], ax
cmp dword [esp + 0x4c], esi
jb 0x410876
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0047cc0e
add esp, 4
mov ebp, dword [ebp + 0x20]
cmp ebp, ebx
je 0x4108cb
push ebp
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x4108cb
mov eax, str.CINIReader::GetText___failed_to_read_mutex_is_locked.
lea ecx, [esp + 0x34]
call fcn.004034a0
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x1064], 5
call fcn.00403580
add esp, 4
mov dword [esp + 0x1060], 0xffffffff
cmp dword [esp + 0x4c], 8
jb 0x4108cb
mov eax, dword [esp + 0x38]
push eax
call fcn.0047cc0e
add esp, 4
xor ecx, ecx
lea eax, [esp + 0x54]
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
mov word [edi + 4], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4108e2
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x58]
jmp 0x41090e
xor edx, edx
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
mov word [edi + 4], dx
push ebx
mov eax, 0x4c7eec
mov esi, edi
call fcn.004033f0
mov eax, edi
mov ecx, dword [esp + 0x1058]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1044]
xor ecx, esp
call fcn.0049bee5
add esp, 0x1054
ret 8