Function at 0x10012740
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1006cdeb
mov eax, dword fs:[0]
push eax
sub esp, 0x940
mov eax, dword [0x1007d1f8]
xor eax, esp
mov dword [esp + 0x938], eax
push ebx
push esi
push edi
mov eax, dword [0x1007d1f8]
xor eax, esp
push eax
lea eax, [esp + 0x950]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push 0x7ff
lea eax, [esp + 0x149]
push 0
push eax
mov esi, ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], 0
mov byte [esp + 0x150], 0
call fcn.10041500
push 0x103
lea ecx, [esp + 0x4d]
push 0
push ecx
mov byte [esp + 0x54], 0
call fcn.10041500
add esp, 0x18
cmp dword [esi + 0x18], 0x10
jb 0x100127d1
mov esi, dword [esi + 4]
jmp 0x100127d4
add esi, 4
push esi
push 0x800
lea edx, [esp + 0x14c]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
xor eax, eax
lea ebx, [ebx]
cmp byte [esp + eax + 0x144], 0
jne 0x10012804
cmp byte [esp + eax + 0x145], 0
je 0x1001280e
add eax, 1
cmp eax, 0x800
jl 0x100127f0
test eax, eax
jne 0x10012819
xor eax, eax
jmp 0x10012988
mov esi, dword [edi + 8]
add eax, 1
cmp dword [edi + 4], esi
mov dword [esp + 0x10], eax
jbe 0x1001282d
call fcn.10041d26
mov ebx, dword [edi + 4]
cmp ebx, dword [edi + 8]
jbe 0x1001283a
call fcn.10041d26
cmp ebx, esi
je 0x100128a8
mov edi, dword [edi + 8]
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
cmp esi, edi
lea edx, [ebx + ecx*4]
mov dword [esp + 0x1c], edx
je 0x10012884
sub ebx, esi
mov edi, edi
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebx + esi]
call fcn.10003960
add esi, 0x1c
cmp esi, edi
jne 0x10012870
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x1c]
push ecx
push esi
push eax
push edx
call fcn.100074f0
mov eax, dword [esp + 0x2c]
add esp, 0x10
mov dword [esi + 8], eax
mov edi, esi
xor ebx, ebx
xor esi, esi
cmp dword [esp + 0x10], ebx
jle 0x10012965
jmp 0x100128c0
mov ecx, dword [esp + 0x14]
mov al, byte [esp + esi + 0x144]
mov byte [esp + ecx + 0x3c], al
add ecx, 1
test al, al
mov dword [esp + 0x14], ecx
jne 0x10012958
mov byte [esp + 0x24], al
lea eax, [esp + 0x3c]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100128f5
sub eax, edx
push eax
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x28]
call fcn.10003ca0
lea edx, [esp + 0x20]
push edx
mov ecx, edi
mov dword [esp + 0x95c], ebx
call fcn.1000cdb0
mov dword [esp + 0x958], 0xffffffff
cmp dword [esp + 0x38], 0x10
jb 0x10012941
mov eax, dword [esp + 0x24]
push eax
call fcn.10040f62
add esp, 4
push 0x104
lea ecx, [esp + 0x40]
push ebx
push ecx
call fcn.10041500
add esp, 0xc
mov dword [esp + 0x14], ebx
add esi, 1
cmp esi, dword [esp + 0x10]
jl 0x100128c0
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x10012812
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, dword [esp + 0x950]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x938]
xor ecx, esp
call fcn.10040be4
mov esp, ebp
pop ebp
ret 4