Function at 0x427986
Capabilities:
Read .ini file

Disassembly:
push 0x38
mov eax, 0x46dd64
call fcn.0045736a
call fcn.00424e99
mov ebx, eax
push ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor esi, esi
cmp dword [ebp + 0x10], esi
mov dword [ebp - 4], esi
jne 0x4279d3
push str.GetPrivateProfileStringA___lpDefaultNULL____
push str._s_failed_n
push 0x4932a8
call fcn.0041fb18
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
call fcn.00457442
ret
mov edi, dword [ebp + 0x14]
cmp edi, esi
jne 0x4279e1
push str.GetPrivateProfileStringA____lpReturnedStringNULL___
jmp 0x4279b2
cmp dword [ebp + 0x18], esi
jne 0x4279ed
push str.GetPrivateProfileStringA_____nSize0__
jmp 0x4279b2
cmp dword [ebp + 0x1c], esi
jne 0x4279f9
push str.GetPrivateProfileStringA______pFileNameNULL_
jmp 0x4279b2
push dword [ebp + 0x10]
call fcn.00456310
cmp eax, dword [ebp + 0x18]
pop ecx
jb 0x427a2b
push str.GetPrivateProfileStringA___checking_strlen_lpDefault____nSize
push str._s_failed_n
push 0x4932a8
call fcn.0041fb18
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x4279cd
push dword [ebp + 0x10]
push dword [ebp + 0x18]
push edi
call fcn.004542fb
push edi
call fcn.00456310
add esp, 0x10
add eax, edi
cmp byte [eax], 0x20
jne 0x427a4d
mov byte [eax], 0
dec eax
jmp 0x427a42
push edi
push str.GetPrivateProfileStringA___built_the_default_value:___s__n
mov ebx, 0x4932a8
push ebx
call fcn.0041ffa2
push dword [ebp + 0x1c]
call fcn.004272eb
add esp, 0x10
test eax, eax
je 0x427a80
cmp dword [0x4a3654], esi
jne 0x427a80
push edi
call fcn.00456310
pop ecx
mov esi, eax
jmp 0x427a1e
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x44]
call fcn.004043b0
mov ecx, dword [0x4a3654]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 1
call fcn.00425790
push esi
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.00402f50
mov eax, dword [0x4a3654]
mov ecx, dword [eax + 4]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.0042b4b1
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
call fcn.0042525e
test al, al
jne 0x427a75
lea ecx, [ebp - 0x20]
call fcn.00421972
cmp dword [eax + 0x24], 0xffdc
jae 0x427b18
call fcn.0042a022
test eax, eax
je 0x427b18
push str.GetPrivateProfileString_redirected_to_native
push 0x20
push ebx
call fcn.00401300
add esp, 0xc
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x427a7c
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x427d7b
push dword [ebp + 8]
lea ecx, [ebp - 0x44]
call fcn.004043b0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00421972
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [eax + 0x28]
call fcn.00425724
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push ebx
mov dword [ebp - 0x18], ecx
push 1
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], bl
call fcn.00402f50
lea ecx, [ebp - 0x20]
call fcn.00421972
mov ecx, dword [eax + 0x2c]
add eax, 0x28
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.0042b4b1
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x18]
call fcn.0042525e
test al, al
jne 0x427a75
cmp dword [ebp + 0xc], ebx
je 0x427c3b
push dword [ebp + 0xc]
lea ecx, [ebp - 0x44]
call fcn.004043b0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00421972
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [eax + 0x28]
call fcn.00421aeb
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push ebx
mov dword [ebp - 0x20], ecx
push 1
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x1c], eax
call fcn.00402f50
lea ecx, [ebp - 0x18]
call fcn.00421972
add eax, 0x28
push eax
push dword [eax + 4]
lea ecx, [ebp - 0x28]
call fcn.00405a60
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
call fcn.00405610
test al, al
jne 0x427a75
lea ecx, [ebp - 0x20]
call fcn.00421972
add eax, 0x1c
cmp dword [eax + 0x18], 0x10
jb 0x427c16
mov eax, dword [eax + 4]
jmp 0x427c19
add eax, 4
mov esi, dword [ebp + 0x18]
lea ecx, [esi - 1]
push ecx
push eax
push esi
push edi
call fcn.00453da6
push edi
mov byte [edi + esi - 1], 0
call fcn.00456310
add esp, 0x14
jmp 0x427a7c
lea ecx, [ebp - 0x18]
call fcn.00421972
add eax, 0x1c
push eax
mov eax, dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x28]
call fcn.00405a60
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
jmp 0x427cce
lea ecx, [ebp - 0x20]
call fcn.0040aa30
mov ecx, dword [ebp + 0x18]
mov eax, dword [eax + 0x14]
mov ebx, ecx
sub ebx, esi
inc eax
cmp ebx, eax
jbe 0x427cfe
lea ecx, [ebp - 0x20]
call fcn.0040aa30
cmp dword [eax + 0x18], 0x10
jb 0x427c90
mov eax, dword [eax + 4]
jmp 0x427c93
add eax, 4
push eax
lea eax, [esi + edi]
push ebx
push eax
call fcn.004542fb
add esp, 0xc
lea ecx, [ebp - 0x20]
call fcn.0040aa30
cmp dword [eax + 0x18], 0x10
jb 0x427cb4
mov eax, dword [eax + 4]
jmp 0x427cb7
add eax, 4
push eax
call fcn.00456310
pop ecx
lea esi, [esi + eax + 1]
lea ecx, [ebp - 0x20]
mov byte [esi + edi], 0
call fcn.0040cff0
lea ecx, [ebp - 0x18]
call fcn.00421972
add eax, 0x1c
push eax
push dword [eax + 4]
lea ecx, [ebp - 0x28]
call fcn.00405a60
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
call fcn.00405610
test al, al
je 0x427c62
jmp 0x427a1e
cmp ecx, esi
jbe 0x427d57
mov ebx, ecx
sub ebx, esi
lea ecx, [ebp - 0x20]
mov dword [ebp + 0x10], ebx
call fcn.0040aa30
cmp dword [eax + 0x18], 0x10
jb 0x427d1c
mov eax, dword [eax + 4]
jmp 0x427d1f
add eax, 4
push eax
call fcn.00456310
cmp eax, dword [ebp + 0x10]
pop ecx
jb 0x427d2e
dec dword [ebp + 0x10]
lea ecx, [ebp - 0x20]
call fcn.0040aa30
cmp dword [eax + 0x18], 0x10
jb 0x427d41
mov eax, dword [eax + 4]
jmp 0x427d44
add eax, 4
push dword [ebp + 0x10]
add esi, edi
push eax
push ebx
push esi
call fcn.00453da6
mov ecx, dword [ebp + 0x18]
add esp, 0x10
cmp ecx, 2
lea eax, [edi + ecx]
mov byte [eax - 1], 0
jb 0x427d67
mov byte [eax - 2], 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0x18]
add eax, 0xfffffffe
jmp 0x4279cd
lea ecx, [ebp - 0x20]
call fcn.00421972
add eax, 0x28
push eax
mov eax, dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x28]
call fcn.0042b4b1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
jmp 0x427e0e
lea ecx, [ebp - 0x18]
call fcn.00421972
mov ecx, dword [ebp + 0x18]
mov eax, dword [eax + 0x14]
mov ebx, ecx
sub ebx, esi
inc eax
cmp ebx, eax
jbe 0x427e3e
lea ecx, [ebp - 0x18]
call fcn.00421972
cmp dword [eax + 0x18], 0x10
jb 0x427dd0
mov eax, dword [eax + 4]
jmp 0x427dd3
add eax, 4
push eax
lea eax, [esi + edi]
push ebx
push eax
call fcn.004542fb
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.00421972
cmp dword [eax + 0x18], 0x10
jb 0x427df4
mov eax, dword [eax + 4]
jmp 0x427df7
add eax, 4
push eax
call fcn.00456310
pop ecx
lea esi, [esi + eax + 1]
lea ecx, [ebp - 0x18]
mov byte [esi + edi], 0
call fcn.00425318
lea ecx, [ebp - 0x20]
call fcn.00421972
add eax, 0x28
push eax
push dword [eax + 4]
lea ecx, [ebp - 0x28]
call fcn.0042b4b1
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x18]
call fcn.0042525e
test al, al
je 0x427da2
jmp 0x427a1e
cmp ecx, esi
jbe 0x427e97
mov ebx, ecx
sub ebx, esi
lea ecx, [ebp - 0x18]
mov dword [ebp + 0x10], ebx
call fcn.00421972
cmp dword [eax + 0x18], 0x10
jb 0x427e5c
mov eax, dword [eax + 4]
jmp 0x427e5f
add eax, 4
push eax
call fcn.00456310
cmp eax, dword [ebp + 0x10]
pop ecx
jb 0x427e6e
dec dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
call fcn.00421972
cmp dword [eax + 0x18], 0x10
jb 0x427e81
mov eax, dword [eax + 4]
jmp 0x427e84
add eax, 4
push dword [ebp + 0x10]
add esi, edi
push eax
push ebx
push esi
call fcn.00453da6
mov ecx, dword [ebp + 0x18]
add esp, 0x10
add edi, ecx
cmp ecx, 2
mov byte [edi - 1], 0
jb 0x427d67
mov byte [edi - 2], 0
jmp 0x427d67