Function at 0x435923
Capabilities:
Read .ini file

Disassembly:
push 0x38
mov eax, 0x4cb5f0
call fcn.0049aeba
call fcn.0042e183
mov ebx, eax
push ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebp + 0x10], esi
jne 0x435970
push str.GetPrivateProfileStringA___lpDefaultNULL____
push str._s_failed_n
push 0x519518
call fcn.00426fe1
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
call fcn.0049af92
ret
mov edi, dword [ebp + 0x14]
cmp edi, esi
jne 0x43597e
push str.GetPrivateProfileStringA____lpReturnedStringNULL___
jmp 0x43594f
cmp dword [ebp + 0x18], esi
jne 0x43598a
push str.GetPrivateProfileStringA_____nSize0__
jmp 0x43594f
cmp dword [ebp + 0x1c], esi
jne 0x435996
push str.GetPrivateProfileStringA______pFileNameNULL_
jmp 0x43594f
push dword [ebp + 0x10]
call fcn.004998a0
pop ecx
cmp eax, dword [ebp + 0x18]
jb 0x4359c8
push str.GetPrivateProfileStringA___checking_strlen_lpDefault____nSize
push str._s_failed_n
push 0x519518
call fcn.00426fe1
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x43596a
push dword [ebp + 0x10]
push dword [ebp + 0x18]
push edi
call fcn.00497fe1
push edi
call fcn.004998a0
add esp, 0x10
jmp 0x4359e8
mov byte [eax + edi], 0
cmp eax, esi
je 0x4359ee
dec eax
cmp byte [eax + edi], 0x20
je 0x4359df
push edi
push str.GetPrivateProfileStringA___built_the_default_value:___s__n
mov ebx, 0x519518
push ebx
call fcn.00427473
push dword [ebp + 0x1c]
call fcn.00434e3a
add esp, 0x10
test eax, eax
je 0x435a21
cmp dword [0x52975c], esi
jne 0x435a21
push edi
call fcn.004998a0
pop ecx
mov esi, eax
jmp 0x4359bb
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x44]
call fcn.00402a30
mov ecx, dword [0x52975c]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 1
call fcn.004310af
push esi
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.00401a30
mov eax, dword [0x52975c]
mov ecx, dword [eax + 0x18]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.0042f5bf
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
call fcn.0042ead3
test al, al
jne 0x435a16
lea ecx, [ebp - 0x20]
call fcn.0042ec85
cmp dword [eax + 0x24], 0xffdc
jae 0x435ab9
call fcn.004280af
test eax, eax
je 0x435ab9
push str.GetPrivateProfileString_redirected_to_native
push 0x20
push ebx
call fcn.00402450
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 0x435a1d
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x435d1c
push dword [ebp + 8]
lea ecx, [ebp - 0x44]
call fcn.00402a30
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.0042ec85
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [eax + 0x28]
call fcn.00431043
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.00401a30
lea ecx, [ebp - 0x20]
call fcn.0042ec85
mov ecx, dword [eax + 0x40]
add eax, 0x28
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.0042f60b
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x18]
call fcn.0042ebe6
test al, al
jne 0x435a16
cmp dword [ebp + 0xc], ebx
je 0x435bdc
push dword [ebp + 0xc]
lea ecx, [ebp - 0x44]
call fcn.00402a30
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.0042ed05
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [eax + 0x38]
call fcn.0042a661
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.00401a30
lea ecx, [ebp - 0x18]
call fcn.0042ed05
add eax, 0x38
push eax
push dword [eax + 0x18]
lea ecx, [ebp - 0x28]
call fcn.00413870
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
call fcn.004123d0
test al, al
jne 0x435a16
lea ecx, [ebp - 0x20]
call fcn.0042a383
add eax, 0x1c
cmp dword [eax + 0x18], 0x10
jb 0x435bb7
mov eax, dword [eax + 4]
jmp 0x435bba
add eax, 4
mov esi, dword [ebp + 0x18]
lea ecx, [esi - 1]
push ecx
push eax
push esi
push edi
call fcn.004976fa
push edi
mov byte [edi + esi - 1], 0
call fcn.004998a0
add esp, 0x14
jmp 0x435a1d
lea ecx, [ebp - 0x18]
call fcn.0042ed05
add eax, 0x1c
push eax
mov eax, dword [eax + 0x14]
push dword [eax]
lea ecx, [ebp - 0x28]
call fcn.00404fb0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
jmp 0x435c6f
lea ecx, [ebp - 0x20]
call fcn.00404fe0
mov ecx, dword [ebp + 0x18]
mov eax, dword [eax + 0x14]
mov ebx, ecx
sub ebx, esi
inc eax
cmp ebx, eax
jbe 0x435c9f
lea ecx, [ebp - 0x20]
call fcn.00404fe0
cmp dword [eax + 0x18], 0x10
jb 0x435c31
mov eax, dword [eax + 4]
jmp 0x435c34
add eax, 4
push eax
lea eax, [esi + edi]
push ebx
push eax
call fcn.00497fe1
add esp, 0xc
lea ecx, [ebp - 0x20]
call fcn.00404fe0
cmp dword [eax + 0x18], 0x10
jb 0x435c55
mov eax, dword [eax + 4]
jmp 0x435c58
add eax, 4
push eax
call fcn.004998a0
pop ecx
lea esi, [esi + eax + 1]
lea ecx, [ebp - 0x20]
mov byte [esi + edi], 0
call fcn.00404a00
lea ecx, [ebp - 0x18]
call fcn.0042ed05
add eax, 0x1c
push eax
push dword [eax + 0x14]
lea ecx, [ebp - 0x28]
call fcn.00404fb0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
call fcn.00404970
test al, al
je 0x435c03
jmp 0x4359bb
cmp ecx, esi
jbe 0x435cf8
mov ebx, ecx
sub ebx, esi
lea ecx, [ebp - 0x20]
mov dword [ebp + 0x10], ebx
call fcn.00404fe0
cmp dword [eax + 0x18], 0x10
jb 0x435cbd
mov eax, dword [eax + 4]
jmp 0x435cc0
add eax, 4
push eax
call fcn.004998a0
pop ecx
cmp eax, dword [ebp + 0x10]
jb 0x435ccf
dec dword [ebp + 0x10]
lea ecx, [ebp - 0x20]
call fcn.00404fe0
cmp dword [eax + 0x18], 0x10
jb 0x435ce2
mov eax, dword [eax + 4]
jmp 0x435ce5
add eax, 4
push dword [ebp + 0x10]
add esi, edi
push eax
push ebx
push esi
call fcn.004976fa
mov ecx, dword [ebp + 0x18]
add esp, 0x10
lea eax, [edi + ecx]
mov byte [eax - 1], 0
cmp ecx, 2
jb 0x435d08
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 0x43596a
lea ecx, [ebp - 0x20]
call fcn.0042ec85
add eax, 0x28
push eax
mov eax, dword [eax + 0x18]
push dword [eax]
lea ecx, [ebp - 0x28]
call fcn.0042f60b
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
jmp 0x435daf
lea ecx, [ebp - 0x18]
call fcn.0042ed05
mov ecx, dword [ebp + 0x18]
mov eax, dword [eax + 0x14]
mov ebx, ecx
sub ebx, esi
inc eax
cmp ebx, eax
jbe 0x435ddf
lea ecx, [ebp - 0x18]
call fcn.0042ed05
cmp dword [eax + 0x18], 0x10
jb 0x435d71
mov eax, dword [eax + 4]
jmp 0x435d74
add eax, 4
push eax
lea eax, [esi + edi]
push ebx
push eax
call fcn.00497fe1
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.0042ed05
cmp dword [eax + 0x18], 0x10
jb 0x435d95
mov eax, dword [eax + 4]
jmp 0x435d98
add eax, 4
push eax
call fcn.004998a0
pop ecx
lea esi, [esi + eax + 1]
lea ecx, [ebp - 0x18]
mov byte [esi + edi], 0
call fcn.0042ee99
lea ecx, [ebp - 0x20]
call fcn.0042ec85
add eax, 0x28
push eax
push dword [eax + 0x18]
lea ecx, [ebp - 0x28]
call fcn.0042f60b
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x18]
call fcn.0042ebe6
test al, al
je 0x435d43
jmp 0x4359bb
cmp ecx, esi
jbe 0x435e38
mov ebx, ecx
sub ebx, esi
lea ecx, [ebp - 0x18]
mov dword [ebp + 0x10], ebx
call fcn.0042ed05
cmp dword [eax + 0x18], 0x10
jb 0x435dfd
mov eax, dword [eax + 4]
jmp 0x435e00
add eax, 4
push eax
call fcn.004998a0
pop ecx
cmp eax, dword [ebp + 0x10]
jb 0x435e0f
dec dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
call fcn.0042ed05
cmp dword [eax + 0x18], 0x10
jb 0x435e22
mov eax, dword [eax + 4]
jmp 0x435e25
add eax, 4
push dword [ebp + 0x10]
add esi, edi
push eax
push ebx
push esi
call fcn.004976fa
mov ecx, dword [ebp + 0x18]
add esp, 0x10
add edi, ecx
mov byte [edi - 1], 0
cmp ecx, 2
jb 0x435d08
mov byte [edi - 2], 0
jmp 0x435d08