Function at 0x4593e8
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x59a0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xor cl, cl
push ebx
push esi
push edi
mov dword [ebp - 0xa8], eax
lea edi, [ebp - 0x30]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0x24]
push 8
pop edx
mov dword [ebp - 0xb0], eax
xor eax, eax
mov byte [ebp - 0x9d], cl
mov ecx, edx
rep stosd dword es:[edi], eax
mov ecx, edx
mov ebx, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ebx
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
mov ecx, edx
push 0x21
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x78]
rep stosd dword es:[edi], eax
mov ecx, edx
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x9c]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x30]
pop edi
push edi
push eax
push 0
push str.config1
push str.Profile
call esi
push ebx
push edi
lea eax, [ebp - 0x54]
push eax
push 0
push str.config2
push str.Profile
call esi
push ebx
push edi
lea eax, [ebp - 0x78]
push eax
push 0
push str.config3
push str.Profile
call esi
push ebx
push edi
lea eax, [ebp - 0x9c]
mov edi, str.Profile
push eax
push 0
push str.config4
push edi
call esi
push ebx
push 0
push str.config5
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push dword [ebp - 0xa4]
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0x9c]
push eax
call fcn.004b178c
pop ecx
pop ecx
test eax, eax
jne 0x459513
push dword [ebp - 0xa8]
lea eax, [ebp - 0x54]
push eax
call fcn.004b178c
pop ecx
pop ecx
test eax, eax
je 0x459509
push dword [ebp - 0xc]
lea eax, [ebp - 0x78]
push eax
call fcn.004b178c
pop ecx
pop ecx
test eax, eax
jne 0x459513
mov bl, 1
mov byte [ebp - 0x9d], bl
jmp 0x459519
mov bl, byte [ebp - 0x9d]
lea eax, [ebp - 0x30]
push eax
call fcn.004b0770
pop ecx
cmp eax, 0x20
je 0x45952f
xor al, al
jmp 0x459616
test bl, bl
je 0x459583
and dword [ebp - 0xa], 0
xor eax, eax
and dword [ebp - 0xa4], eax
xor esi, esi
mov word [ebp - 8], ax
movsx ax, byte [ebp + esi*2 - 0x30]
mov word [ebp - 0xc], ax
movsx ax, byte [ebp + esi*2 - 0x2f]
mov word [ebp - 0xa], ax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xc]
push 0x57fc74
push eax
call fcn.00426990
mov al, byte [ebp - 0xa4]
add esp, 0xc
mov byte [esi + section..QMGuid], al
inc esi
cmp esi, 0x10
jl 0x459545
xor ebx, ebx
cmp byte [ebp + 0x18], bl
setne bl
xor eax, eax
cmp byte [ebp + 0x1c], al
setne al
add ebx, eax
xor eax, eax
cmp byte [ebp + 0x20], al
setne al
add ebx, eax
lea eax, [ebp - 0x54]
push eax
call fcn.004b0770
pop ecx
xor ecx, ecx
cmp ecx, eax
lea eax, [ebp - 0x78]
push eax
sbb esi, esi
neg esi
call fcn.004b0770
pop ecx
xor ecx, ecx
cmp ecx, eax
lea eax, [ebp - 0x9c]
push eax
sbb edi, edi
neg edi
call fcn.004b0770
pop ecx
xor ecx, ecx
cmp ecx, eax
movzx ecx, byte [ebp - 0x9d]
sbb eax, eax
xor edx, edx
neg eax
add eax, edi
add eax, esi
cmp ebx, eax
cmovg ecx, edx
cmp dword [ebp - 0xac], edx
jne 0x459614
cmp byte [ebp + 0x20], dl
je 0x459614
cmp edi, 1
jne 0x459600
cmp esi, edi
je 0x459614
cmp ebx, 3
je 0x459614
cmp ebx, eax
jl 0x459614
mov eax, dword [ebp - 0xb0]
xor cl, cl
mov byte [eax], 1
mov al, cl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049aa22
mov esp, ebp
pop ebp
ret 0x24