Function at 0x41d2f0
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4308ec
call fcn.004083b8
sub esp, 0x428
push ebx
push esi
push edi
call fcn.0041c226
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 4], ebx
jne 0x41d338
push str.GetPrivateProfileSection____lpReturnedStringNULL___
push str._s_failed_n
push 0x444698
call fcn.00413226
add esp, 0xc
jmp 0x41d63c
cmp dword [ebp + 0x10], ebx
jne 0x41d344
push str.GetPrivateProfileSection_____nSize0__
jmp 0x41d321
mov esi, dword [ebp + 0x14]
cmp esi, ebx
jne 0x41d352
push str.GetPrivateProfileSection______pFileNameNULL_
jmp 0x41d321
cmp dword [ebp + 8], ebx
jne 0x41d35e
push str.GetPrivateProfileSection______lpAppNameNULL_
jmp 0x41d321
push 0x43d448
call fcn.00409f30
cmp eax, dword [ebp + 0x10]
pop ecx
jb 0x41d375
push str.GetPrivateProfileSection___checking_size_of_default___nSize
jmp 0x41d321
push esi
call fcn.0041c99f
test eax, eax
pop ecx
je 0x41d38c
cmp dword [0x456acc], ebx
je 0x41d631
mov al, byte [ebp + 0xf]
push ebx
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x24], al
call fcn.00403360
push esi
call fcn.00409f30
pop ecx
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.00403650
mov ecx, dword [0x456acc]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 1
call fcn.0041eafe
mov esi, dword [ebp - 0x2c]
push 1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.00403360
mov al, byte [0x4541f8]
mov ecx, 0xf9
mov byte [ebp - 0x434], al
xor eax, eax
lea edi, [ebp - 0x433]
mov dword [ebp - 0x10], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x456acc]
cmp esi, dword [eax + 4]
je 0x41d631
cmp dword [esi + 0x24], 0xffdc
jae 0x41d43e
call sym.HPZwis01.exe_unsigned_int___cdecl_Is9X_void_
test eax, eax
je 0x41d43e
push str.GetPrivateProfileSection___redirected_to_native
push 0x20
push 0x444698
call fcn.00413026
add esp, 0xc
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
jmp 0x41d63a
mov al, byte [ebp + 0xf]
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x3c], al
call fcn.00403360
push dword [ebp + 8]
call fcn.00409f30
pop ecx
push eax
lea ecx, [ebp - 0x3c]
push dword [ebp + 8]
call fcn.00403650
lea eax, [ebp - 0x3c]
lea ecx, [esi + 0x28]
push eax
lea eax, [ebp + 0x14]
push eax
mov byte [ebp - 4], 2
call fcn.0041e990
mov edi, dword [ebp + 0x14]
push 1
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x28], edi
mov byte [ebp - 4], bl
call fcn.00403360
cmp edi, dword [esi + 0x2c]
je 0x41d631
mov eax, dword [edi + 0x20]
mov esi, dword [eax]
cmp esi, dword [edi + 0x20]
je 0x41d62c
mov eax, dword [esi + 0xc]
mov dword [ebp + 8], 0x43257c
cmp eax, ebx
je 0x41d4b1
mov dword [ebp + 8], eax
mov al, byte [ebp + 0xf]
push ebx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0x4c], al
call fcn.00403360
push dword [ebp + 8]
call fcn.00409f30
pop ecx
push eax
lea ecx, [ebp - 0x4c]
push dword [ebp + 8]
call fcn.00403650
lea eax, [ebp - 0x4c]
lea ecx, [edi + 0x28]
push eax
mov byte [ebp - 4], 3
call fcn.0041812c
mov edi, eax
push ebx
lea ecx, [ebp - 0x24]
mov al, byte [edi]
mov byte [ebp - 0x24], al
call fcn.00403360
push dword [0x432578]
lea ecx, [ebp - 0x24]
push ebx
push edi
call fcn.00402e60
push 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.00403360
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + eax + 1]
cmp eax, 0x3e8
jae 0x41d56c
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x41d530
mov eax, 0x43257c
push eax
lea eax, [ebp - 0x434]
push eax
call fcn.0040d890
lea eax, [ebp - 0x434]
push 0x433aec
push eax
call fcn.0040d8a0
mov eax, dword [ebp - 0x20]
add esp, 0x10
cmp eax, ebx
jne 0x41d55d
mov eax, 0x43257c
push eax
lea eax, [ebp - 0x434]
push eax
call fcn.0040d8a0
jmp 0x41d57d
lea eax, [ebp - 0x434]
push str._This_line_is_over_1000_characters__....__This_function_fails_on_lines_over_1000_characters
push eax
call fcn.0040d890
pop ecx
lea eax, [ebp - 0x434]
pop ecx
push eax
call fcn.00409f30
mov edi, dword [ebp - 0x10]
pop ecx
mov ecx, dword [ebp + 0x10]
inc eax
mov edx, ecx
sub edx, edi
cmp edx, eax
jbe 0x41d5e0
lea eax, [ebp - 0x434]
push eax
mov eax, dword [ebp + 0xc]
add eax, edi
push eax
call fcn.0040d890
lea eax, [ebp - 0x434]
push eax
call fcn.00409f30
add esp, 0xc
lea edi, [edi + eax + 1]
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
push 1
mov dword [ebp - 0x10], edi
mov byte [edi + eax], bl
mov byte [ebp - 4], bl
call fcn.00403360
mov esi, dword [esi]
mov edi, dword [ebp - 0x28]
jmp 0x41d497
cmp ecx, edi
jbe 0x41d5ff
sub ecx, edi
lea eax, [ebp - 0x434]
push ecx
push eax
mov eax, dword [ebp + 0xc]
add edi, eax
push edi
call fcn.00407995
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [ebp + 0xc]
add eax, ecx
cmp ecx, 2
mov byte [eax - 1], bl
jb 0x41d60f
mov byte [eax - 2], bl
lea esi, [ecx - 2]
push 1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.00403360
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x41d647
mov ebx, dword [ebp - 0x10]
jmp 0x41d63c
push dword [ebp + 0xc]
call fcn.00409f30
pop ecx
mov ebx, eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret