Function at 0x4b78de
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x672494]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
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 - 0xa0], eax
mov eax, dword [ebp + 0x24]
push 8
pop edx
mov dword [ebp - 0xb0], eax
mov ecx, edx
xor eax, eax
mov ebx, dword [ebp + 8]
rep stosd dword es:[edi], eax
mov ecx, edx
mov esi, dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
push ebx
push 0x21
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
mov ecx, edx
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 - 0xa0]
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0x9c]
push eax
call fcn.0058025b
pop ecx
pop ecx
test eax, eax
jne 0x4b7a03
push dword [ebp - 0xa8]
lea eax, [ebp - 0x54]
mov dword [ebp - 0xa4], 1
push eax
mov bl, 1
call fcn.0058025b
pop ecx
pop ecx
test eax, eax
je 0x4b7a0c
push dword [ebp - 0xc]
lea eax, [ebp - 0x78]
push eax
call fcn.0058025b
pop ecx
pop ecx
test eax, eax
je 0x4b7a0c
and dword [ebp - 0xa4], 0
xor bl, bl
lea eax, [ebp - 0x30]
push eax
call fcn.005811f0
pop ecx
cmp eax, 0x20
jne 0x4b7af9
test bl, bl
je 0x4b7a6f
xor eax, eax
and dword [ebp - 0xa0], 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 - 0xa0]
push eax
lea eax, [ebp - 0xc]
push 0x65414c
push eax
call fcn.00438fb0
mov al, byte [ebp - 0xa0]
add esp, 0xc
mov byte [esi + 0x680004], al
inc esi
cmp esi, 0x10
jl 0x4b7a31
movzx eax, byte [ebp + 0x1c]
movzx esi, byte [ebp + 0x18]
add esi, eax
movzx eax, byte [ebp + 0x20]
add esi, eax
lea eax, [ebp - 0x54]
push eax
call fcn.005811f0
xor ecx, ecx
cmp ecx, eax
lea eax, [ebp - 0x78]
push eax
sbb ebx, ebx
neg ebx
call fcn.005811f0
xor ecx, ecx
cmp ecx, eax
lea eax, [ebp - 0x9c]
push eax
sbb edi, edi
neg edi
call fcn.005811f0
xor ecx, ecx
add esp, 0xc
cmp ecx, eax
sbb eax, eax
neg eax
lea edx, [edi + eax]
mov eax, dword [ebp - 0xa4]
add edx, ebx
movzx eax, al
cmp esi, edx
cmovbe ecx, eax
cmp dword [ebp - 0xac], 0
mov al, cl
jne 0x4b7afb
cmp byte [ebp + 0x20], 0
je 0x4b7afb
cmp edi, 1
jne 0x4b7ae5
cmp ebx, edi
je 0x4b7afb
mov al, cl
cmp esi, 3
je 0x4b7afb
cmp esi, edx
jb 0x4b7afb
mov ecx, dword [ebp - 0xb0]
mov byte [ecx], 1
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d0a85
leave
ret 0x24