Function at 0x1002833
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push edi
xor edi, edi
push 0x10
push 0x40
xor ebx, ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
call esi
cmp eax, edi
mov dword [ebp - 0x14], eax
je 0x100287a
push eax
call dword [sym.imp.KERNEL32.dll_LocalLock]
mov ebx, eax
test ebx, ebx
je 0x100287a
push 0x10
push 0x40
call esi
mov dword [ebx + edi*4], eax
inc edi
cmp edi, 4
jl 0x1002867
push 8
push 0x40
call esi
mov edi, 0x400
push edi
push 0x40
mov dword [ebp - 0xc], eax
call esi
push edi
push 0x40
mov dword [ebp - 8], eax
call esi
test ebx, ebx
mov dword [ebp - 0x18], eax
je 0x1002a22
cmp dword [ebp - 0xc], 0
je 0x1002a22
cmp dword [ebp - 8], 0
je 0x1002a22
test eax, eax
je 0x1002a22
movzx edi, word [ebp + 0x10]
push edi
mov esi, 0x10013a8
push esi
push 0x10013a0
push 0x10
push dword [ebx]
call fcn.01001730
mov eax, edi
and eax, 0x3ff
push eax
push esi
push 0x10013a0
push 0x10
push dword [ebx + 4]
call fcn.01001730
shr edi, 0xa
push edi
push esi
push 0x10013a0
push 0x10
push dword [ebx + 8]
call fcn.01001730
push esi
push 0x100139c
push 0x10
push dword [ebx + 0xc]
call fcn.01001730
mov eax, dword [0x100c290]
add esp, 0x4c
test eax, eax
je 0x1002920
push eax
jmp 0x1002923
push dword [ebp + 0x14]
push 0x1001398
push 8
push dword [ebp - 0xc]
call fcn.01001730
add esp, 0x10
xor esi, esi
push dword [ebp + 0x18]
mov edi, dword [ebp - 0x18]
push 0x400
push edi
push 0x100c2a8
push dword [ebp - 0xc]
push dword [ebx + esi*4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x1002963
inc esi
cmp esi, 4
jl 0x1002937
jmp 0x1002a2c
cmp byte [edi], 0
mov dword [ebp + 0x10], edi
je 0x1002a0b
mov esi, dword [ebp + 0x10]
mov al, byte [esi]
cmp al, 0x2c
jne 0x1002993
cmp dword [ebp - 0x10], 0
jne 0x1002993
push 0x1001394
push 4
push dword [ebp - 8]
call fcn.01001696
add dword [ebp - 4], 2
jmp 0x10029f6
cmp al, 0x5c
jne 0x10029c0
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp + 0x10], eax
mov al, byte [eax]
cmp al, 0x5c
jne 0x10029ba
push 0x1001280
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
inc dword [ebp - 4]
jmp 0x10029f6
cmp al, 0x6e
jne 0x10029f6
jmp 0x100297e
cmp al, 0x22
jne 0x10029d2
xor eax, eax
cmp dword [ebp - 0x10], 1
setne al
mov dword [ebp - 0x10], eax
jmp 0x10029f6
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov edx, dword [ebp - 8]
mov edi, dword [ebp - 4]
sub eax, esi
add edi, edx
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
add dword [ebp - 4], eax
rep movsb byte es:[edi], byte [esi]
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_CharNextA]
cmp byte [eax], 0
mov dword [ebp + 0x10], eax
jne 0x100296f
push dword [ebp + 0xc]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.01001677
mov dword [ebp - 0x1c], 1
jmp 0x1002a2c
mov dword [0x100c290], 0x228
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
xor edi, edi
cmp dword [ebp - 0x14], edi
je 0x1002a56
test ebx, ebx
je 0x1002a48
push dword [ebx + edi*4]
call esi
inc edi
cmp edi, 4
jl 0x1002a39
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push dword [ebp - 0x14]
call esi
push dword [ebp - 0xc]
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret 0x14