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

Disassembly:
push 0xffffffffffffffff
push 0x4ada32
mov eax, dword fs:[0]
push eax
mov eax, 0x1048
call fcn.004a5f50
mov eax, dword [0x4d25ac]
xor eax, esp
mov dword [esp + 0x1044], eax
push ebx
push ebp
push esi
mov eax, dword [0x4d25ac]
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.00401f30
mov eax, esi
push eax
mov dword [esp + 0x1064], ebx
call fcn.00403780
mov esi, 8
add esp, 4
mov dword [esp + 0x1060], 0xffffffff
cmp dword [esp + 0x28], esi
jb 0x4203f2
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00491101
add esp, 4
cmp byte [ebp + 0x24], bl
je 0x420658
cmp dword [ebp + 0x1c], esi
jb 0x420405
mov eax, dword [ebp + 8]
jmp 0x420408
lea eax, [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x420658
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.00401f30
mov ecx, dword [esp + 0x2c]
mov eax, esi
push eax
mov dword [esp + 0x1064], 1
call fcn.004035d0
add esp, 4
mov dword [esp + 0x1060], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x420473
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00491101
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.00401f30
mov eax, esi
mov esi, dword [esp + 0x30]
push eax
mov ecx, esi
mov dword [esp + 0x1064], 2
call fcn.004035d0
add esp, 4
mov dword [esp + 0x1060], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x4204d1
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00491101
add esp, 4
push 0xffe
lea eax, [esp + 0x5a]
xor edx, edx
push ebx
push eax
mov word [esp + 0x60], dx
call fcn.004957a0
mov eax, dword [ebp + 0x20]
add esp, 0xc
cmp eax, ebx
je 0x4205e6
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4205e6
mov eax, 8
cmp dword [ebp + 0x1c], eax
jb 0x420516
mov edx, dword [ebp + 8]
jmp 0x420519
lea edx, [ebp + 8]
cmp dword [esi + 0x18], eax
jb 0x420523
mov ecx, dword [esi + 4]
jmp 0x420526
lea ecx, [esi + 4]
mov eax, dword [esp + 0x2c]
cmp dword [eax + 0x18], 8
jb 0x420535
mov eax, dword [eax + 4]
jmp 0x420538
add eax, 4
push edx
push 0x800
lea edx, [esp + 0x5c]
push edx
push 0x4b49f8
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, str.CINIReader::GetText___result
lea ecx, [esp + 0x34]
call fcn.00401fe0
lea eax, [esp + 0x54]
lea ecx, [esp + 0x10]
mov dword [esp + 0x1060], 3
call fcn.00401fe0
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
mov byte [esp + 0x1064], 4
call fcn.004035d0
mov esi, 8
add esp, 4
cmp dword [esp + 0x28], esi
jb 0x4205a5
mov edx, dword [esp + 0x14]
push edx
call fcn.00491101
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 0x4205d6
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00491101
add esp, 4
mov ebp, dword [ebp + 0x20]
cmp ebp, ebx
je 0x42062b
push ebp
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x42062b
mov eax, str.CINIReader::GetText___failed_to_read_mutex_is_locked.
lea ecx, [esp + 0x34]
call fcn.00401fe0
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x1064], 5
call fcn.00403780
add esp, 4
mov dword [esp + 0x1060], 0xffffffff
cmp dword [esp + 0x4c], 8
jb 0x42062b
mov eax, dword [esp + 0x38]
push eax
call fcn.00491101
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 0x420642
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x58]
jmp 0x42066e
xor edx, edx
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
mov word [edi + 4], dx
push ebx
mov eax, 0x4b49f8
mov esi, edi
call fcn.00401f30
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.0049110c
add esp, 0x1054
ret 8