Function at 0x46c9c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 8], 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 - 0xa8], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0x24]
push 0x21
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0x34]
push eax
push 0
push str.config1
push str.Profile
movups xmmword [ebp - 0x34], xmm0
mov byte [ebp - 0x14], 0
movups xmmword [ebp - 0x24], xmm0
mov byte [ebp - 0x38], 0
movups xmmword [ebp - 0x58], xmm0
mov byte [ebp - 0x5c], 0
movups xmmword [ebp - 0x48], xmm0
mov byte [ebp - 0x80], 0
movups xmmword [ebp - 0x7c], xmm0
movups xmmword [ebp - 0x6c], xmm0
movups xmmword [ebp - 0xa0], xmm0
movups xmmword [ebp - 0x90], xmm0
call esi
push edi
push 0x21
lea eax, [ebp - 0x58]
push eax
push 0
push str.config2
push str.Profile
call esi
push edi
push 0x21
lea eax, [ebp - 0x7c]
push eax
push 0
push str.config3
push str.Profile
call esi
push edi
push 0x21
lea eax, [ebp - 0xa0]
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 - 0xac], eax
lea eax, [ebp - 0xa0]
push ebx
push eax
call fcn.004baac1
add esp, 8
test eax, eax
je 0x46cac1
mov edx, 1
jmp 0x46caf9
push dword [ebp - 0xa8]
lea eax, [ebp - 0x58]
push eax
call fcn.004baac1
add esp, 8
test eax, eax
je 0x46caf7
push dword [ebp - 0xa4]
lea eax, [ebp - 0x7c]
push eax
call fcn.004baac1
xor edx, edx
add esp, 8
test eax, eax
mov ecx, 1
cmovne edx, ecx
jmp 0x46caf9
xor edx, edx
xor dl, 1
lea ecx, [ebp - 0x34]
mov dword [ebp - 0xa4], edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46cb08
sub ecx, esi
cmp ecx, 0x20
jne 0x46cc3d
test dl, dl
je 0x46cb82
xor eax, eax
mov dword [ebp - 0xe], 0
mov word [ebp - 0xc], ax
xor esi, esi
mov dword [ebp - 0xa8], eax
nop dword [eax]
nop word [eax + eax]
movsx eax, byte [ebp + esi*2 - 0x34]
mov word [ebp - 0x10], ax
movsx eax, byte [ebp + esi*2 - 0x33]
mov word [ebp - 0xe], ax
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x10]
push 0x4f59c4
push eax
call fcn.004673c0
mov al, byte [ebp - 0xa8]
add esp, 0xc
mov byte [esi + 0x5152f0], al
inc esi
cmp esi, 0x10
jl 0x46cb40
mov edx, dword [ebp - 0xa4]
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 - 0x58]
lea esi, [ecx + 1]
setne al
add ebx, eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46cba5
sub ecx, esi
xor eax, eax
cmp eax, ecx
lea ecx, [ebp - 0x7c]
lea esi, [ecx + 1]
sbb edi, edi
neg edi
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46cbc0
sub ecx, esi
xor eax, eax
cmp eax, ecx
lea ecx, [ebp - 0xa0]
lea eax, [ecx + 1]
sbb esi, esi
mov dword [ebp - 0xa4], eax
neg esi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46cbe0
sub ecx, dword [ebp - 0xa4]
xor eax, eax
cmp eax, ecx
sbb eax, eax
xor ecx, ecx
neg eax
add eax, esi
add eax, edi
mov dword [ebp - 0xa4], eax
movzx eax, dl
mov edx, dword [ebp - 0xa4]
cmp ebx, edx
cmovbe ecx, eax
cmp dword [ebp - 0xac], 0
mov al, cl
jne 0x46cc3f
cmp byte [ebp + 0x20], 0
je 0x46cc3f
cmp esi, 1
jne 0x46cc29
cmp edi, esi
je 0x46cc3f
mov al, cl
cmp ebx, 3
je 0x46cc3f
cmp ebx, edx
jb 0x46cc3f
mov ecx, dword [ebp - 0xb0]
mov byte [ecx], 1
xor al, al
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a474b
mov esp, ebp
pop ebp
ret 0x24