Function at 0x1001ec00
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x238
mov ecx, dword [esp + 0x240]
mov eax, dword [esp + 0x23c]
push ebx
push ecx
mov ebx, dword [eax]
lea edx, [esp + 0x13c]
push 0x104
push edx
push 0x1004ccfc
push 0
push 0x10043534
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x1001ec47
pop ebx
add esp, 0x238
ret
lea eax, [esp + 0x138]
push ebp
mov dword [esp + 0x14], eax
mov al, byte [esp + 0x13c]
push esi
xor esi, esi
test al, al
push edi
mov dword [esp + 0x18], esi
je 0x1001ee16
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x28]
lea edx, [esp + 0x28]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x1c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x40]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x28]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x250]
push ecx
push 0x104
push edx
push 0x1004cd00
push eax
push 0x1004353c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor esi, esi
xor ebp, ebp
cmp ebx, esi
mov dword [esp + 0x20], esi
jle 0x1001edf1
dec ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0x28]
mov ebx, 1
push ecx
push ebx
call fcn.1000a800
mov edx, dword [eax + esi + 0x80]
mov edi, dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 4
push edx
call edi
add esp, 8
test eax, eax
jne 0x1001edcc
lea eax, [esp + 0x40]
push 0x10043544
push eax
call edi
add esp, 8
test eax, eax
je 0x1001ed4d
push ebx
call fcn.1000a800
mov ecx, dword [eax + esi + 0x8c]
lea edx, [esp + 0x44]
push ecx
push edx
call fcn.100206c0
add esp, 0xc
test eax, eax
jne 0x1001ed5e
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x1001ed5e
inc ebp
add esi, 0xc0
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], ebx
jmp 0x1001edd7
mov ebx, dword [esp + 0x24]
cmp ebp, ebx
jge 0x1001edb8
sub ebx, ebp
push 1
lea edi, [esi + 0xc0]
call fcn.1000a800
add esp, 4
add eax, edi
push eax
push 1
call fcn.1000a800
add esp, 4
add eax, esi
push eax
call fcn.10006e60
push 2
call fcn.1000a800
add esp, 0xc
add eax, edi
push eax
push 2
call fcn.1000a800
add esp, 4
add eax, esi
push eax
call fcn.10006e60
add esp, 8
dec ebx
mov esi, edi
jne 0x1001ed68
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
dec ecx
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], eax
jmp 0x1001edd7
inc ebp
add esi, 0xc0
mov dword [esp + 0x10], esi
cmp ebp, dword [esp + 0x14]
jl 0x1001ece5
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1001eded
inc dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 1]
mov dword [esp + 0x1c], eax
cmp byte [eax], 0
jne 0x1001ec6a
mov esi, dword [esp + 0x18]
mov al, byte [esp + 0x144]
lea edx, [esp + 0x144]
test al, al
je 0x1001ee41
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
dec esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [edx + ecx + 1]
lea edx, [edx + ecx + 1]
test al, al
jne 0x1001ee28
xor eax, eax
mov dword [esp + 0x10], 0
test esi, esi
sete al
test ebx, ebx
mov dword [esp + 0x1c], eax
jle 0x1001ef6b
mov ecx, dword [esp + 0x14]
xor ebx, ebx
lea ebp, [ecx - 1]
mov dword [esp + 0x18], ebp
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x28]
push 1
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x44]
rep stosd dword es:[edi], eax
call fcn.1000a800
mov edi, dword [eax + ebx + 0x80]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x28]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x40]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x28]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x250]
push ecx
push 0x104
push edx
push 0x1004cd04
push eax
push 0x10043548
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x1001ef4a
mov eax, dword [esp + 0x10]
cmp eax, ebp
jge 0x1001ef3a
mov esi, ebx
sub ebp, eax
push 1
lea edi, [esi + 0xc0]
call fcn.1000a800
add esp, 4
add eax, edi
push eax
push 1
call fcn.1000a800
add esp, 4
add eax, esi
push eax
call fcn.10006e60
push 2
call fcn.1000a800
add esp, 0xc
add eax, edi
push eax
push 2
call fcn.1000a800
add esp, 4
add eax, esi
push eax
call fcn.10006e60
add esp, 8
dec ebp
mov esi, edi
jne 0x1001eeea
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
dec ecx
dec ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebp
jmp 0x1001ef59
mov ecx, dword [esp + 0x10]
inc ecx
add ebx, 0xc0
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp eax, ecx
jl 0x1001ee69
mov ebx, ecx
mov edx, dword [esp + 0x24c]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov dword [edx], ebx
pop ebp
pop ebx
add esp, 0x238
ret