Function at 0x10002f50
Capabilities:
Read .ini file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10040e5d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x70
mov eax, dword [0x100c2004]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x34], eax
xor eax, eax
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
lea edi, [ecx + 0x1c]
lea eax, [ecx + 4]
mov dword [ebp - 0x30], edi
mov esi, 0x100
mov dword [ebp - 0x44], eax
nop dword [eax]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], ecx
cmp esi, ecx
ja 0x10002ff8
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
cmovae eax, dword [ebp - 0x2c]
xor ecx, ecx
mov word [eax + esi*2], cx
jmp 0x1000304d
mov edi, dword [ebp - 0x18]
mov edx, esi
mov eax, edi
sub edx, ecx
sub eax, ecx
cmp edx, eax
ja 0x1000303c
cmp edi, 8
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov dword [ebp - 0x40], eax
lea edi, [eax + ecx*2]
test edx, edx
je 0x1000302e
xor eax, eax
mov ecx, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov ecx, dword [ebp - 0x3c]
lea eax, [ecx + edx]
mov ecx, dword [ebp - 0x40]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x1000304a
push ecx
push edx
push dword [ebp - 0x34]
lea ecx, [ebp - 0x2c]
push edx
call fcn.10004fe0
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x44]
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x1000305a
mov ecx, dword [eax]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov edx, edi
cmovae eax, dword [ebp - 0x2c]
cmp dword [edi + 0x14], 8
jb 0x1000306f
mov edx, dword [edi]
push ecx
push esi
push eax
push 0
push dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1000309b
mov edi, dword [ebp - 0x30]
add esi, 0x100
jmp 0x10002fd0
cmp eax, 2
je 0x100030e5
cmp eax, 3
je 0x100030e5
test eax, eax
jne 0x10003144
push ecx
push edi
lea ecx, [ebp - 0x2c]
call fcn.10005120
mov eax, dword [ebp - 0x38]
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
movups xmm0, xmmword [ebp - 0x2c]
mov dword [eax + 0x14], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [eax + 0x10], xmm0
mov byte [eax + 0x18], 1
jmp 0x10003124
mov esi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x18]
mov byte [esi + 0x18], 0
cmp ecx, 8
jb 0x10003122
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10003118
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000315b
push ecx
push edx
call fcn.1002dd79
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1002db4b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
push eax
lea ecx, [ebp - 0x80]
call fcn.10001290
push 0x100c015c
lea eax, [ebp - 0x80]
push eax
call fcn.1002f43a
call fcn.10033a4a
int3