Function at 0x41f4d5
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x44d244
call fcn.0042c4cc
sub esp, 0x1c
push ebx
push esi
push edi
call fcn.0041e2f1
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], edi
jne 0x41f51c
push str.GetPrivateProfileStringA___lpDefaultNULL____
push str._s_failed_n
push 0x46abb8
call fcn.00414d1c
add esp, 0xc
xor esi, esi
jmp 0x41f888
mov ebx, dword [ebp + 0x14]
cmp ebx, edi
jne 0x41f52a
push str.GetPrivateProfileStringA____lpReturnedStringNULL___
jmp 0x41f503
cmp dword [ebp + 0x18], edi
jne 0x41f536
push str.GetPrivateProfileStringA_____nSize0__
jmp 0x41f503
mov esi, dword [ebp + 0x1c]
cmp esi, edi
jne 0x41f544
push str.GetPrivateProfileStringA______pFileNameNULL_
jmp 0x41f503
push dword [ebp + 0x10]
call fcn.0042cc10
cmp eax, dword [ebp + 0x18]
pop ecx
jb 0x41f559
push str.GetPrivateProfileStringA___checking_strlen_lpDefault____nSize
jmp 0x41f503
push dword [ebp + 0x10]
push ebx
call fcn.0042cc90
push ebx
call fcn.0042cc10
add esp, 0xc
add eax, ebx
cmp byte [eax], 0x20
jne 0x41f578
and byte [eax], 0
dec eax
jmp 0x41f56d
push ebx
mov edi, 0x46abb8
push str.GetPrivateProfileStringA___built_the_default_value:___s__n
push edi
call fcn.00414b92
push esi
call fcn.0041ea55
add esp, 0x10
test eax, eax
je 0x41f5a3
cmp dword [0x47b214], 0
je 0x41f87f
mov al, byte [ebp + 0x1b]
push 0
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x28], al
call fcn.004151e3
push esi
call fcn.0042cc10
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00401879
mov ecx, dword [0x47b214]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.004216f0
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004151e3
mov eax, dword [0x47b214]
mov ecx, dword [ebp - 0x14]
xor esi, esi
mov eax, dword [eax + 4]
cmp ecx, eax
je 0x41f87f
cmp dword [ecx + 0x24], 0xffdc
jae 0x41f63e
call fcn.0041566d
test eax, eax
je 0x41f63b
push str.GetPrivateProfileString_redirected_to_native
push 0x20
push edi
call fcn.0040121a
add esp, 0xc
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x41f886
mov ecx, dword [ebp - 0x14]
xor edi, edi
cmp dword [ebp + 8], edi
je 0x41f7da
mov al, byte [ebp + 0x1b]
push edi
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x28], al
call fcn.004151e3
push dword [ebp + 8]
call fcn.0042cc10
pop ecx
push eax
lea ecx, [ebp - 0x28]
push dword [ebp + 8]
call fcn.00401879
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 2
lea ecx, [eax + 0x28]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.004212f6
mov eax, dword [ebp + 0x10]
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], eax
call fcn.004151e3
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax + 0x2c]
cmp ecx, eax
je 0x41f87f
cmp dword [ebp + 0xc], edi
je 0x41f736
mov al, byte [ebp + 0x1b]
push edi
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x28], al
call fcn.004151e3
push dword [ebp + 0xc]
call fcn.0042cc10
pop ecx
push eax
lea ecx, [ebp - 0x28]
push dword [ebp + 0xc]
call fcn.00401879
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 3
lea ecx, [eax + 0x28]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.0041cb40
mov esi, dword [ebp + 0x10]
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004151e3
mov eax, dword [ebp - 0x10]
cmp esi, dword [eax + 0x2c]
je 0x41f87f
mov esi, dword [esi + 0x20]
mov eax, 0x44f48c
cmp esi, edi
je 0x41f718
mov eax, esi
mov esi, dword [ebp + 0x18]
push esi
push eax
push ebx
call fcn.0042cda1
and byte [ebx + esi - 1], 0
push ebx
call fcn.0042cc10
add esp, 0x10
jmp 0x41f886
mov eax, dword [ecx + 0x20]
mov edi, dword [eax]
cmp edi, eax
je 0x41f888
mov eax, dword [ebp + 0x18]
mov ecx, dword [edi + 0x10]
mov edx, eax
inc ecx
sub edx, esi
cmp edx, ecx
jbe 0x41f794
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x41f75e
mov eax, 0x44f48c
push eax
lea eax, [esi + ebx]
push eax
call fcn.0042cc90
mov eax, dword [edi + 0xc]
pop ecx
test eax, eax
pop ecx
jne 0x41f776
mov eax, 0x44f48c
push eax
call fcn.0042cc10
lea esi, [esi + eax + 1]
pop ecx
and byte [esi + ebx], 0
mov eax, dword [ebp - 0x10]
mov edi, dword [edi]
cmp edi, dword [eax + 0x20]
jne 0x41f743
jmp 0x41f888
cmp eax, esi
jbe 0x41f7b6
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x41f7a4
mov edi, 0x44f48c
sub eax, esi
add esi, ebx
push eax
push edi
push esi
call fcn.0042cda1
mov eax, dword [ebp + 0x18]
add esp, 0xc
and byte [ebx + eax - 1], 0
add ebx, eax
cmp eax, 2
jb 0x41f7c6
and byte [ebx - 2], 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0x18]
add eax, 0xfffffffe
jmp 0x41f893
mov eax, dword [ecx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
cmp eax, dword [ecx + 0x2c]
je 0x41f888
mov edi, dword [ebp + 0x18]
mov edx, dword [eax + 0x14]
mov ecx, edi
sub ecx, esi
inc edx
cmp ecx, edx
jbe 0x41f840
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x41f806
mov eax, 0x44f48c
push eax
lea eax, [esi + ebx]
push eax
call fcn.0042cc90
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x41f821
mov eax, 0x44f48c
push eax
call fcn.0042cc10
pop ecx
lea esi, [esi + eax + 1]
lea ecx, [ebp - 0x10]
and byte [esi + ebx], 0
call fcn.00421c41
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
jmp 0x41f7e2
cmp edi, esi
jbe 0x41f861
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x41f850
mov eax, 0x44f48c
mov ecx, edi
sub ecx, esi
add esi, ebx
push ecx
push eax
push esi
call fcn.0042cda1
add esp, 0xc
and byte [ebx + edi - 1], 0
add ebx, edi
cmp edi, 2
jb 0x41f871
and byte [ebx - 2], 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [edi - 2]
jmp 0x41f893
push ebx
call fcn.0042cc10
pop ecx
mov esi, eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret