Function at 0x1001ef50
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006f0e1
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x100871e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
call fcn.10014640
mov dword [ebp - 0x10], 0x100
mov ecx, dword [ebp - 0x10]
shl ecx, 1
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp + 8]
mov dword [ebp - 0x9c], edx
mov eax, dword [ebp - 0x9c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100064a0
mov byte [ebp - 4], 1
push 0x1007ca04
push 0x1007ca20
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x98], edx
mov eax, dword [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x98]
push eax
call dword [ebp - 0x74]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x10], 2
jae 0x1001f027
cmp dword [ebp - 0x40], 0
je 0x1001f036
mov ecx, dword [ebp - 0x10]
sub ecx, 2
cmp dword [ebp - 0x40], ecx
jne 0x1001f0ba
mov edx, dword [ebp - 0x10]
shl edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x10]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x18]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1001f0b8
mov eax, dword [ebp - 0x64]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 0x1d], 0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10
mov dword [ebp - 0x7c], ecx
mov ecx, dword [ebp - 0x7c]
call fcn.10003fb0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
sub edx, 0x10
mov dword [ebp - 0xa4], edx
mov ecx, dword [ebp - 0xa4]
call fcn.10003fb0
mov al, byte [ebp - 0x1d]
jmp 0x1001f424
jmp 0x1001f10d
cmp dword [ebp - 0x10], 2
jbe 0x1001f10b
cmp dword [ebp - 0x40], 0
jne 0x1001f10b
mov byte [ebp - 0x1f], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
sub eax, 0x10
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
call fcn.10003fb0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
sub ecx, 0x10
mov dword [ebp - 0xac], ecx
mov ecx, dword [ebp - 0xac]
call fcn.10003fb0
mov al, byte [ebp - 0x1f]
jmp 0x1001f424
jmp 0x1001f11a
cmp dword [ebp - 0x10], 0x8000
jb 0x1001efd9
cmp dword [ebp - 0x10], 0x8000
jb 0x1001f168
mov byte [ebp - 0x21], 0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x1c]
sub edx, 0x10
mov dword [ebp - 0x8c], edx
mov ecx, dword [ebp - 0x8c]
call fcn.10003fb0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
sub eax, 0x10
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0xb4]
call fcn.10003fb0
mov al, byte [ebp - 0x21]
jmp 0x1001f424
mov byte [ebp - 0x11], 1
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x28], ecx
mov edx, 2
imul edx, edx, 0
mov eax, dword [ebp - 0x28]
movzx ecx, word [eax + edx]
test ecx, ecx
je 0x1001f3d1
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
add eax, 2
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x2c]
mov dx, word [ecx]
mov word [ebp - 0x52], dx
add dword [ebp - 0x2c], 2
cmp word [ebp - 0x52], 0
jne 0x1001f19b
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x94]
sar eax, 1
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 0xbc]
lea edx, [ecx + ecx + 2]
push edx
call fcn.100429a1
add esp, 4
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0xc0], edx
mov eax, dword [ebp - 0x58]
mov cx, word [eax]
mov word [ebp - 0x2e], cx
mov edx, dword [ebp - 0x3c]
mov ax, word [ebp - 0x2e]
mov word [edx], ax
mov ecx, dword [ebp - 0x58]
add ecx, 2
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x3c]
add edx, 2
mov dword [ebp - 0x3c], edx
cmp word [ebp - 0x2e], 0
jne 0x1001f1ec
push 0x3d
mov eax, dword [ebp - 0x38]
push eax
call fcn.1004412e
add esp, 8
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x48], 0
cmp dword [ebp - 0x44], 0
je 0x1001f24e
xor edx, edx
mov eax, dword [ebp - 0x44]
mov word [eax], dx
mov ecx, dword [ebp - 0x44]
add ecx, 2
mov dword [ebp - 0x48], ecx
movzx edx, byte [ebp - 0x11]
test edx, edx
je 0x1001f33e
push ecx
mov eax, esp
mov dword [ebp - 0xe4], esp
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10
mov dword [ebp - 0xb8], ecx
mov edx, dword [ebp - 0xb8]
push edx
call fcn.10007f90
add esp, 4
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa0]
add eax, 0x10
mov ecx, dword [ebp - 0x5c]
mov dword [ecx], eax
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0xcc], edx
mov byte [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0xdc], esp
mov eax, dword [ebp - 0x48]
push eax
call fcn.100064a0
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0xb0]
mov dword [ebp - 0xd4], ecx
mov byte [ebp - 4], 3
push ecx
mov ecx, esp
mov dword [ebp - 0xc4], esp
mov edx, dword [ebp - 0x60]
push edx
call fcn.100064a0
mov dword [ebp - 0xc8], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x50]
call fcn.1001f440
mov byte [ebp - 0x1e], al
movzx eax, byte [ebp - 0x1e]
test eax, eax
jne 0x1001f338
mov byte [ebp - 0x22], 0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10
mov dword [ebp - 0xa8], ecx
mov ecx, dword [ebp - 0xa8]
call fcn.10003fb0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
sub edx, 0x10
mov dword [ebp - 0x68], edx
mov ecx, dword [ebp - 0x68]
call fcn.10003fb0
mov al, byte [ebp - 0x22]
jmp 0x1001f424
mov byte [ebp - 0x11], 0
jmp 0x1001f384
push ecx
mov ecx, esp
mov dword [ebp - 0xd0], esp
mov eax, dword [ebp - 0x48]
push eax
call fcn.100064a0
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0xd8], ecx
mov byte [ebp - 4], 4
push ecx
mov ecx, esp
mov dword [ebp - 0xe0], esp
mov edx, dword [ebp - 0x60]
push edx
call fcn.100064a0
mov dword [ebp - 0xe8], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x50]
call fcn.1001f7c0
mov eax, dword [ebp - 0x38]
push eax
call fcn.10042a33
add esp, 4
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
add edx, 2
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x34]
mov cx, word [eax]
mov word [ebp - 0x4a], cx
add dword [ebp - 0x34], 2
cmp word [ebp - 0x4a], 0
jne 0x1001f39f
mov edx, dword [ebp - 0x34]
sub edx, dword [ebp - 0x78]
sar edx, 1
mov dword [ebp - 0x80], edx
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x28]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 0x28], edx
jmp 0x1001f172
mov eax, dword [ebp - 0x18]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 0x20], 1
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10
mov dword [ebp - 0x88], ecx
mov ecx, dword [ebp - 0x88]
call fcn.10003fb0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
sub edx, 0x10
mov dword [ebp - 0x90], edx
mov ecx, dword [ebp - 0x90]
call fcn.10003fb0
mov al, byte [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4