Function at 0x40e3a8
Capabilities:
Read .ini file

Disassembly:
push 0x38
mov eax, 0x439b4e
call fcn.0042501a
call fcn.0040aa74
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 0x40e3f5
push str.GetPrivateProfileStringA___lpDefaultNULL____
push str._s_failed_n
push 0x44d160
call fcn.00406a88
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
call fcn.004250f2
ret
mov edi, dword [ebp + 0x14]
cmp edi, esi
jne 0x40e403
push str.GetPrivateProfileStringA____lpReturnedStringNULL___
jmp 0x40e3d4
cmp dword [ebp + 0x18], esi
jne 0x40e40f
push str.GetPrivateProfileStringA_____nSize0__
jmp 0x40e3d4
cmp dword [ebp + 0x1c], esi
jne 0x40e41b
push str.GetPrivateProfileStringA______pFileNameNULL_
jmp 0x40e3d4
push dword [ebp + 0x10]
call fcn.00423fc0
cmp eax, dword [ebp + 0x18]
pop ecx
jb 0x40e44d
push str.GetPrivateProfileStringA___checking_strlen_lpDefault____nSize
push str._s_failed_n
push 0x44d160
call fcn.00406a88
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x40e3ef
push dword [ebp + 0x10]
push dword [ebp + 0x18]
push edi
call fcn.00421daf
push edi
call fcn.00423fc0
add esp, 0x10
add eax, edi
cmp byte [eax], 0x20
jne 0x40e46f
mov byte [eax], 0
dec eax
jmp 0x40e464
push edi
push str.GetPrivateProfileStringA___built_the_default_value:___s__n
mov ebx, 0x44d160
push ebx
call fcn.00406f12
push dword [ebp + 0x1c]
call fcn.0040dd0d
add esp, 0x10
test eax, eax
je 0x40e4a2
cmp dword [0x45d3cc], esi
jne 0x40e4a2
push edi
call fcn.00423fc0
pop ecx
mov esi, eax
jmp 0x40e440
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x44]
call fcn.004033c0
mov ecx, dword [0x45d3cc]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 1
call fcn.0040b431
push esi
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.00401ec0
mov eax, dword [0x45d3cc]
mov ecx, dword [eax + 4]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00411bb8
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
call fcn.004119f7
test al, al
jne 0x40e497
lea ecx, [ebp - 0x20]
call fcn.00407685
cmp dword [eax + 0x24], 0xffdc
jae 0x40e53a
call fcn.004118e7
test eax, eax
je 0x40e53a
push str.GetPrivateProfileString_redirected_to_native
push 0x20
push ebx
call fcn.00401110
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 0x40e49e
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x40e79d
push dword [ebp + 8]
lea ecx, [ebp - 0x44]
call fcn.004033c0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00407685
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [eax + 0x28]
call fcn.0040b3c5
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.00401ec0
lea ecx, [ebp - 0x20]
call fcn.00407685
mov ecx, dword [eax + 0x2c]
add eax, 0x28
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00411bb8
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x18]
call fcn.004119f7
test al, al
jne 0x40e497
cmp dword [ebp + 0xc], ebx
je 0x40e65d
push dword [ebp + 0xc]
lea ecx, [ebp - 0x44]
call fcn.004033c0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00407685
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [eax + 0x28]
call fcn.00407839
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.00401ec0
lea ecx, [ebp - 0x18]
call fcn.00407685
add eax, 0x28
push eax
push dword [eax + 4]
lea ecx, [ebp - 0x28]
call fcn.00401950
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
call fcn.00401270
test al, al
jne 0x40e497
lea ecx, [ebp - 0x20]
call fcn.00407685
add eax, 0x1c
cmp dword [eax + 0x18], 0x10
jb 0x40e638
mov eax, dword [eax + 4]
jmp 0x40e63b
add eax, 4
mov esi, dword [ebp + 0x18]
lea ecx, [esi - 1]
push ecx
push eax
push esi
push edi
call fcn.00422552
push edi
mov byte [edi + esi - 1], 0
call fcn.00423fc0
add esp, 0x14
jmp 0x40e49e
lea ecx, [ebp - 0x18]
call fcn.00407685
add eax, 0x1c
push eax
mov eax, dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x28]
call fcn.00401950
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
jmp 0x40e6f0
lea ecx, [ebp - 0x20]
call fcn.00401600
mov ecx, dword [ebp + 0x18]
mov eax, dword [eax + 0x14]
mov ebx, ecx
sub ebx, esi
inc eax
cmp ebx, eax
jbe 0x40e720
lea ecx, [ebp - 0x20]
call fcn.00401600
cmp dword [eax + 0x18], 0x10
jb 0x40e6b2
mov eax, dword [eax + 4]
jmp 0x40e6b5
add eax, 4
push eax
lea eax, [esi + edi]
push ebx
push eax
call fcn.00421daf
add esp, 0xc
lea ecx, [ebp - 0x20]
call fcn.00401600
cmp dword [eax + 0x18], 0x10
jb 0x40e6d6
mov eax, dword [eax + 4]
jmp 0x40e6d9
add eax, 4
push eax
call fcn.00423fc0
pop ecx
lea esi, [esi + eax + 1]
lea ecx, [ebp - 0x20]
mov byte [esi + edi], 0
call fcn.00401630
lea ecx, [ebp - 0x18]
call fcn.00407685
add eax, 0x1c
push eax
push dword [eax + 4]
lea ecx, [ebp - 0x28]
call fcn.00401950
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
call fcn.00401270
test al, al
je 0x40e684
jmp 0x40e440
cmp ecx, esi
jbe 0x40e779
mov ebx, ecx
sub ebx, esi
lea ecx, [ebp - 0x20]
mov dword [ebp + 0x10], ebx
call fcn.00401600
cmp dword [eax + 0x18], 0x10
jb 0x40e73e
mov eax, dword [eax + 4]
jmp 0x40e741
add eax, 4
push eax
call fcn.00423fc0
cmp eax, dword [ebp + 0x10]
pop ecx
jb 0x40e750
dec dword [ebp + 0x10]
lea ecx, [ebp - 0x20]
call fcn.00401600
cmp dword [eax + 0x18], 0x10
jb 0x40e763
mov eax, dword [eax + 4]
jmp 0x40e766
add eax, 4
push dword [ebp + 0x10]
add esi, edi
push eax
push ebx
push esi
call fcn.00422552
mov ecx, dword [ebp + 0x18]
add esp, 0x10
cmp ecx, 2
lea eax, [edi + ecx]
mov byte [eax - 1], 0
jb 0x40e789
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 0x40e3ef
lea ecx, [ebp - 0x20]
call fcn.00407685
add eax, 0x28
push eax
mov eax, dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x28]
call fcn.00411bb8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
jmp 0x40e830
lea ecx, [ebp - 0x18]
call fcn.00407685
mov ecx, dword [ebp + 0x18]
mov eax, dword [eax + 0x14]
mov ebx, ecx
sub ebx, esi
inc eax
cmp ebx, eax
jbe 0x40e860
lea ecx, [ebp - 0x18]
call fcn.00407685
cmp dword [eax + 0x18], 0x10
jb 0x40e7f2
mov eax, dword [eax + 4]
jmp 0x40e7f5
add eax, 4
push eax
lea eax, [esi + edi]
push ebx
push eax
call fcn.00421daf
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.00407685
cmp dword [eax + 0x18], 0x10
jb 0x40e816
mov eax, dword [eax + 4]
jmp 0x40e819
add eax, 4
push eax
call fcn.00423fc0
pop ecx
lea esi, [esi + eax + 1]
lea ecx, [ebp - 0x18]
mov byte [esi + edi], 0
call fcn.0040aeee
lea ecx, [ebp - 0x20]
call fcn.00407685
add eax, 0x28
push eax
push dword [eax + 4]
lea ecx, [ebp - 0x28]
call fcn.00411bb8
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x18]
call fcn.004119f7
test al, al
je 0x40e7c4
jmp 0x40e440
cmp ecx, esi
jbe 0x40e8b9
mov ebx, ecx
sub ebx, esi
lea ecx, [ebp - 0x18]
mov dword [ebp + 0x10], ebx
call fcn.00407685
cmp dword [eax + 0x18], 0x10
jb 0x40e87e
mov eax, dword [eax + 4]
jmp 0x40e881
add eax, 4
push eax
call fcn.00423fc0
cmp eax, dword [ebp + 0x10]
pop ecx
jb 0x40e890
dec dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
call fcn.00407685
cmp dword [eax + 0x18], 0x10
jb 0x40e8a3
mov eax, dword [eax + 4]
jmp 0x40e8a6
add eax, 4
push dword [ebp + 0x10]
add esi, edi
push eax
push ebx
push esi
call fcn.00422552
mov ecx, dword [ebp + 0x18]
add esp, 0x10
add edi, ecx
cmp ecx, 2
mov byte [edi - 1], 0
jb 0x40e789
mov byte [edi - 2], 0
jmp 0x40e789