Function at 0x41cf2c
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4308b8
call fcn.004083b8
sub esp, 0x1c
push ebx
push esi
push edi
call fcn.0041c226
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
mov dword [ebp - 4], ebx
jne 0x41cf73
push str.GetPrivateProfileStringA___lpDefaultNULL____
push str._s_failed_n
push 0x444698
call fcn.00413226
add esp, 0xc
xor esi, esi
jmp 0x41d2d6
mov edi, dword [ebp + 0x14]
cmp edi, ebx
jne 0x41cf81
push str.GetPrivateProfileStringA____lpReturnedStringNULL___
jmp 0x41cf5a
cmp dword [ebp + 0x18], ebx
jne 0x41cf8d
push str.GetPrivateProfileStringA_____nSize0__
jmp 0x41cf5a
mov esi, dword [ebp + 0x1c]
cmp esi, ebx
jne 0x41cf9b
push str.GetPrivateProfileStringA______pFileNameNULL_
jmp 0x41cf5a
push dword [ebp + 0x10]
call fcn.00409f30
cmp eax, dword [ebp + 0x18]
pop ecx
jb 0x41cfb0
push str.GetPrivateProfileStringA___checking_strlen_lpDefault____nSize
jmp 0x41cf5a
push dword [ebp + 0x10]
push edi
call fcn.0040d890
push edi
call fcn.00409f30
add esp, 0xc
add eax, edi
cmp byte [eax], 0x20
jne 0x41cfcf
and byte [eax], 0
dec eax
jmp 0x41cfc4
push edi
mov ebx, 0x444698
push str.GetPrivateProfileStringA___built_the_default_value:___s__n
push ebx
call fcn.0041309c
push esi
call fcn.0041c99f
add esp, 0x10
test eax, eax
je 0x41cffa
cmp dword [0x456acc], 0
je 0x41d2cd
mov al, byte [ebp + 0x1b]
push 0
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x28], al
call fcn.00403360
push esi
call fcn.00409f30
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00403650
mov ecx, dword [0x456acc]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.0041eafe
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00403360
mov eax, dword [0x456acc]
mov ecx, dword [ebp - 0x14]
xor esi, esi
mov eax, dword [eax + 4]
cmp ecx, eax
je 0x41d2cd
cmp dword [ecx + 0x24], 0xffdc
jae 0x41d095
call sym.HPZwis01.exe_unsigned_int___cdecl_Is9X_void_
test eax, eax
je 0x41d092
push str.GetPrivateProfileString_redirected_to_native
push 0x20
push ebx
call fcn.00413026
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 0x41d2d4
mov ecx, dword [ebp - 0x14]
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x41d228
mov al, byte [ebp + 0x1b]
push ebx
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x28], al
call fcn.00403360
push dword [ebp + 8]
call fcn.00409f30
pop ecx
push eax
lea ecx, [ebp - 0x28]
push dword [ebp + 8]
call fcn.00403650
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.0041e990
mov eax, dword [ebp + 0x10]
and byte [ebp - 4], bl
push 1
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], eax
call fcn.00403360
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax + 0x2c]
cmp ecx, eax
je 0x41d2cd
cmp dword [ebp + 0xc], ebx
je 0x41d18b
mov al, byte [ebp + 0x1b]
push ebx
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x28], al
call fcn.00403360
push dword [ebp + 0xc]
call fcn.00409f30
pop ecx
push eax
lea ecx, [ebp - 0x28]
push dword [ebp + 0xc]
call fcn.00403650
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.004181d4
mov esi, dword [ebp + 0x10]
and byte [ebp - 4], bl
push 1
lea ecx, [ebp - 0x28]
call fcn.00403360
mov eax, dword [ebp - 0x10]
cmp esi, dword [eax + 0x2c]
je 0x41d2cd
mov esi, dword [esi + 0x20]
mov eax, 0x43257c
cmp esi, ebx
je 0x41d16d
mov eax, esi
mov esi, dword [ebp + 0x18]
push esi
push eax
push edi
call fcn.00407995
and byte [edi + esi - 1], 0
push edi
call fcn.00409f30
add esp, 0x10
jmp 0x41d2d4
mov eax, dword [ecx + 0x20]
mov ebx, dword [eax]
cmp ebx, dword [ecx + 0x20]
je 0x41d2d6
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebx + 0x10]
mov edx, eax
inc ecx
sub edx, esi
cmp edx, ecx
jbe 0x41d1e2
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x41d1b4
mov eax, 0x43257c
push eax
lea eax, [esi + edi]
push eax
call fcn.0040d890
mov eax, dword [ebx + 0xc]
pop ecx
test eax, eax
pop ecx
jne 0x41d1cc
mov eax, 0x43257c
push eax
call fcn.00409f30
lea esi, [esi + eax + 1]
pop ecx
and byte [esi + edi], 0
mov ebx, dword [ebx]
mov ecx, dword [ebp - 0x10]
jmp 0x41d190
cmp eax, esi
jbe 0x41d204
mov ebx, dword [ebx + 0xc]
test ebx, ebx
jne 0x41d1f2
mov ebx, 0x43257c
sub eax, esi
add esi, edi
push eax
push ebx
push esi
call fcn.00407995
mov eax, dword [ebp + 0x18]
add esp, 0xc
and byte [edi + eax - 1], 0
add edi, eax
cmp eax, 2
jb 0x41d214
and byte [edi - 2], 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0x18]
add eax, 0xfffffffe
jmp 0x41d2e1
mov eax, dword [ecx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
cmp eax, dword [ecx + 0x2c]
je 0x41d2d6
mov ebx, dword [ebp + 0x18]
mov edx, dword [eax + 0x14]
mov ecx, ebx
sub ecx, esi
inc edx
cmp ecx, edx
jbe 0x41d28e
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x41d254
mov eax, 0x43257c
push eax
lea eax, [esi + edi]
push eax
call fcn.0040d890
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x41d26f
mov eax, 0x43257c
push eax
call fcn.00409f30
pop ecx
lea esi, [esi + eax + 1]
lea ecx, [ebp - 0x10]
and byte [esi + edi], 0
call fcn.0041f048
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
jmp 0x41d230
cmp ebx, esi
jbe 0x41d2af
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x41d29e
mov eax, 0x43257c
mov ecx, ebx
sub ecx, esi
add esi, edi
push ecx
push eax
push esi
call fcn.00407995
add esp, 0xc
and byte [edi + ebx - 1], 0
add edi, ebx
cmp ebx, 2
jb 0x41d2bf
and byte [edi - 2], 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebx - 2]
jmp 0x41d2e1
push edi
call fcn.00409f30
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