Function at 0x4515c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x4e106c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0x24]
push 0x21
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0x30]
push eax
push 0
push str.config1
push str.Profile
movups xmmword [ebp - 0x30], xmm0
mov byte [ebp - 0x10], 0
movups xmmword [ebp - 0x20], xmm0
mov byte [ebp - 0x34], 0
movups xmmword [ebp - 0x54], xmm0
mov byte [ebp - 0x58], 0
movups xmmword [ebp - 0x44], xmm0
mov byte [ebp - 0x7c], 0
movups xmmword [ebp - 0x78], xmm0
movups xmmword [ebp - 0x68], xmm0
movups xmmword [ebp - 0x9c], xmm0
movups xmmword [ebp - 0x8c], xmm0
call esi
push edi
push 0x21
lea eax, [ebp - 0x54]
push eax
push 0
push str.config2
push str.Profile
call esi
push edi
push 0x21
lea eax, [ebp - 0x78]
push eax
push 0
push str.config3
push str.Profile
call esi
push edi
push 0x21
lea eax, [ebp - 0x9c]
push eax
push 0
push str.config4
push str.Profile
call esi
push edi
push 0
push str.config5
push str.Profile
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0x9c]
push ebx
push eax
call fcn.0046b248
add esp, 8
test eax, eax
je 0x4516c1
mov edx, 1
jmp 0x4516f9
push dword [ebp - 0xa4]
lea eax, [ebp - 0x54]
push eax
call fcn.0046b248
add esp, 8
test eax, eax
je 0x4516f7
push dword [ebp - 0xa0]
lea eax, [ebp - 0x78]
push eax
call fcn.0046b248
xor edx, edx
add esp, 8
test eax, eax
mov ecx, 1
cmovne edx, ecx
jmp 0x4516f9
xor edx, edx
xor dl, 1
lea ecx, [ebp - 0x30]
mov dword [ebp - 0xa0], edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x451708
sub ecx, esi
cmp ecx, 0x20
jne 0x45183d
test dl, dl
je 0x451782
xor eax, eax
mov dword [ebp - 0xa], 0
mov word [ebp - 8], ax
xor esi, esi
mov dword [ebp - 0xa4], eax
nop dword [eax]
nop word [eax + eax]
movsx eax, byte [ebp + esi*2 - 0x30]
mov word [ebp - 0xc], ax
movsx eax, byte [ebp + esi*2 - 0x2f]
mov word [ebp - 0xa], ax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xc]
push 0x4d1244
push eax
call fcn.0040c696
mov al, byte [ebp - 0xa4]
add esp, 0xc
mov byte [esi + 0x4e5d70], al
inc esi
cmp esi, 0x10
jl 0x451740
mov edx, dword [ebp - 0xa0]
xor ecx, ecx
cmp byte [ebp + 0x18], cl
setne cl
xor eax, eax
cmp byte [ebp + 0x1c], al
setne al
lea ebx, [eax + ecx]
xor eax, eax
cmp byte [ebp + 0x20], al
lea ecx, [ebp - 0x54]
lea esi, [ecx + 1]
setne al
add ebx, eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4517a5
sub ecx, esi
xor eax, eax
cmp eax, ecx
lea ecx, [ebp - 0x78]
lea esi, [ecx + 1]
sbb edi, edi
neg edi
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4517c0
sub ecx, esi
xor eax, eax
cmp eax, ecx
lea ecx, [ebp - 0x9c]
lea eax, [ecx + 1]
sbb esi, esi
mov dword [ebp - 0xa0], eax
neg esi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4517e0
sub ecx, dword [ebp - 0xa0]
xor eax, eax
cmp eax, ecx
sbb eax, eax
xor ecx, ecx
neg eax
add eax, esi
add eax, edi
mov dword [ebp - 0xa0], eax
movzx eax, dl
mov edx, dword [ebp - 0xa0]
cmp ebx, edx
cmovbe ecx, eax
cmp dword [ebp - 0xa8], 0
mov al, cl
jne 0x45183f
cmp byte [ebp + 0x20], 0
je 0x45183f
cmp esi, 1
jne 0x451829
cmp edi, esi
je 0x45183f
mov al, cl
cmp ebx, 3
je 0x45183f
cmp ebx, edx
jb 0x45183f
mov ecx, dword [ebp - 0xac]
mov byte [ecx], 1
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00455912
mov esp, ebp
pop ebp
ret 0x24