Function at 0x1009db9
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x10140d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x228], ecx
test edx, edx
je 0x100a02e
xor esi, esi
cmp si, word [edx]
je 0x100a02e
test eax, eax
je 0x100a02e
xor edx, edx
cmp dx, word [eax]
je 0x100a02e
test ecx, ecx
je 0x100a02e
xor eax, eax
cmp ax, word [ecx]
je 0x100a02e
and dword [ebp - 0x22c], eax
and dword [ebp - 0x214], eax
push ebx
push edi
push 0x208
mov ebx, 0x104
call sub.cmutil.dll_CmMalloc
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, 0x10017d4
mov dword [ebp - 0x21c], eax
xor eax, eax
cmp dword [ebp - 0x21c], eax
je 0x100a00e
push dword [ebp - 0x224]
push ebx
push dword [ebp - 0x21c]
push edi
push eax
push eax
call esi
lea ecx, [ebx - 2]
cmp eax, ecx
jne 0x1009e99
add ebx, ebx
cmp ebx, 0x100000
ja 0x100a00e
lea eax, [ebx + ebx]
push eax
push dword [ebp - 0x21c]
call sub.cmutil.dll_CmRealloc
test eax, eax
je 0x100a00e
jmp 0x1009e45
test eax, eax
je 0x100a00e
mov ebx, dword [ebp - 0x21c]
push 0x208
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x220], 0x104
call sub.cmutil.dll_CmMalloc
mov dword [ebp - 0x214], eax
test ebx, ebx
je 0x1009ff3
mov ecx, dword [ebp - 0x218]
xor eax, eax
cmp ax, word [ecx]
je 0x1009ff3
xor ebx, ebx
cmp dword [ebp - 0x214], 0
je 0x100a00e
push dword [ebp - 0x224]
push dword [ebp - 0x220]
push dword [ebp - 0x214]
push edi
push 0
push dword [ebp - 0x218]
call esi
mov ecx, dword [ebp - 0x220]
lea edx, [ecx - 2]
cmp eax, edx
jne 0x1009f4b
lea eax, [ecx + ecx]
mov dword [ebp - 0x220], eax
cmp eax, 0x100000
ja 0x100a00e
add eax, eax
push eax
push dword [ebp - 0x214]
call sub.cmutil.dll_CmRealloc
test eax, eax
je 0x100a00e
mov dword [ebp - 0x214], eax
jmp 0x1009f56
test eax, eax
je 0x100a00e
xor ebx, ebx
inc ebx
test ebx, ebx
je 0x1009ee2
mov ebx, dword [ebp - 0x214]
test ebx, ebx
je 0x1009fd4
xor eax, eax
cmp ax, word [ebx]
je 0x1009fd4
push dword [ebp - 0x228]
lea eax, [ebp - 0x210]
push 0x104
push eax
push edi
push ebx
push dword [ebp - 0x218]
call esi
test eax, eax
jne 0x1009fc5
push dword [ebp - 0x224]
lea eax, [ebp - 0x210]
push 0x104
push eax
push edi
push ebx
push dword [ebp - 0x218]
call esi
test eax, eax
je 0x1009fc5
push dword [ebp - 0x228]
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [ebx + eax*2 + 2]
test ebx, ebx
jne 0x1009f64
mov ebx, dword [ebp - 0x218]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebx + eax*2 + 2]
mov dword [ebp - 0x218], eax
test eax, eax
jne 0x1009ecf
push dword [ebp - 0x228]
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov dword [ebp - 0x22c], 1
push dword [ebp - 0x21c]
call sub.cmutil.dll_CmFree
push dword [ebp - 0x214]
call sub.cmutil.dll_CmFree
mov eax, dword [ebp - 0x22c]
pop edi
pop ebx
jmp 0x100a030
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0100e410
leave
ret 0xc