Function at 0x10012480
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10033a6f
mov eax, dword fs:[0]
push eax
mov eax, 0x20a0
call fcn.10016910
mov eax, dword [0x10046070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x208c], edi
mov dword [ebp - 0x2090], edi
push 0x2000
lea eax, [ebp - 0x2010]
mov dword [ebp - 0x20a4], edi
push 0
push eax
mov dword [ebp - 0x20a0], 0
call fcn.100187a0
add esp, 0xc
mov eax, 0x10047d78
cmp dword [0x10047d8c], 8
cmovae eax, dword [0x10047d78]
cmp dword [esi + 0x14], 8
jb 0x10012502
mov esi, dword [esi]
push eax
push 0x1000
lea eax, [ebp - 0x2010]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
xor esi, esi
mov dword [ebp - 0x209c], esi
mov dword [ebp - 0x2098], esi
mov dword [ebp - 0x2094], esi
mov dword [ebp - 4], 1
test eax, eax
je 0x100125ea
lea edi, [ebp - 0x2010]
cmp word [ebp - 0x2010], si
je 0x100125e4
nop dword [eax]
mov ecx, edi
mov dword [ebp - 0x2018], 0
xor eax, eax
mov dword [ebp - 0x2014], 7
mov word [ebp - 0x2028], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10012572
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x2028]
call fcn.10007660
lea eax, [ebp - 0x2028]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x209c]
call fcn.10013620
lea ecx, [ebp - 0x2028]
mov byte [ebp - 4], 1
call fcn.100075f0
mov eax, edi
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100125c0
sub eax, edx
sar eax, 1
lea edi, [edi + eax*2]
add edi, 2
cmp word [edi], cx
jne 0x10012550
mov esi, dword [ebp - 0x209c]
mov edi, dword [ebp - 0x208c]
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.100091d0
mov dword [edi], eax
mov dword [ebp - 0x20a0], 1
cmp esi, dword [ebp - 0x2098]
je 0x1001278d
nop dword [eax]
nop dword [eax + eax]
xor eax, eax
mov dword [ebp - 0x2018], 0
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x2028]
mov dword [ebp - 0x2014], 7
mov word [ebp - 0x2028], ax
call fcn.10007ce0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2028]
cmp dword [ebp - 0x2014], 8
mov edx, dword [ebp - 0x2018]
cmovae ecx, dword [ebp - 0x2028]
push 1
push 0x10041720
push 0
call fcn.100099f0
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
je 0x10012769
push edi
push 0
lea eax, [ebp - 0x2058]
push eax
lea ecx, [ebp - 0x2028]
call fcn.100070c0
push 0xffffffffffffffff
lea eax, [edi + 1]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x2040]
push eax
lea ecx, [ebp - 0x2028]
call fcn.100070c0
lea edx, [ebp - 0x2040]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2088]
call fcn.10011060
mov edi, eax
lea edx, [ebp - 0x2058]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2070]
call fcn.10011060
push eax
lea eax, [ebp - 0x20ac]
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x208c]
push eax
call fcn.10013db0
mov eax, dword [ebp - 0x20ac]
add eax, 0x28
mov dword [ebp - 0x2090], eax
cmp eax, edi
je 0x1001273d
mov ecx, eax
call fcn.100075f0
movups xmm0, xmmword [edi]
mov eax, dword [ebp - 0x2090]
movups xmmword [eax], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [eax + 0x10], xmm0
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ecx, [ebp - 0x2070]
call fcn.100075f0
lea ecx, [ebp - 0x2088]
call fcn.100075f0
lea ecx, [ebp - 0x2040]
call fcn.100075f0
lea ecx, [ebp - 0x2058]
call fcn.100075f0
lea ecx, [ebp - 0x2028]
mov byte [ebp - 4], 1
call fcn.100075f0
add esi, 0x18
cmp esi, dword [ebp - 0x2098]
jne 0x10012620
mov edi, dword [ebp - 0x208c]
lea ecx, [ebp - 0x209c]
call fcn.10007550
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001578e
mov esp, ebp
pop ebp
ret