Function at 0x100894d
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xec8
mov eax, dword [0x10140d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0xec0], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x67c]
mov dword [ebp - 0xea4], eax
mov dword [ebp - 0xec4], esi
mov dword [ebp - 0xea8], edi
call fcn.010103d7
xor ebx, ebx
mov dword [ebp - 0xea0], ebx
cmp dword [ebp - 0xea4], ebx
je 0x1008e5a
cmp edi, ebx
je 0x1008e5a
cmp esi, ebx
jne 0x10089b9
mov esi, 0x1002a44
push esi
push dword [ebp - 0xea4]
push 0x10029b0
push dword [0x10143ec]
call fcn.0100f2af
add esp, 0x10
push ebx
push ebx
push ebx
lea eax, [ebp - 0xebc]
push eax
push ebx
push ebx
call fcn.0100711f
test eax, eax
je 0x1008e5a
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
push 0x102
stosw word es:[edi], ax
lea eax, [ebp - 0x12c]
push ebx
push eax
call sub.msvcrt.dll_memset
push 0x208
lea eax, [ebp - 0x334]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
mov esi, 0x900
push esi
push ebx
push ebx
push 0x100170c
push 0x104
lea eax, [ebp - 0x334]
push eax
call fcn.01011b30
test eax, eax
jge 0x1008a4c
mov dword [ebp - 0xea0], ebx
jmp 0x1008e52
push dword [ebp - 0xea8]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 1
push 0x10016fc
push 0x1001784
call edi
push dword [ebp - 0xea8]
mov dword [ebp - 0xe9c], eax
push 1
push 0x10016ec
push 0x1001784
call edi
mov dword [ebp - 0xec8], eax
cmp dword [ebp - 0xe9c], ebx
je 0x1008ab1
cmp eax, ebx
je 0x1008aa9
push dword [ebp - 0xea8]
push ebx
push 0x10016cc
push 0x1001784
call edi
test eax, eax
jne 0x1008ab1
mov dword [ebp - 0xe9c], ebx
jmp 0x1008abb
mov dword [ebp - 0xe9c], 1
mov edi, dword [ebp - 0xe9c]
cmp edi, ebx
jne 0x1008b01
push ebx
push 0x81
lea eax, [ebp - 0x12c]
push eax
push 0x11
lea eax, [ebp - 0x28]
push eax
call fcn.01007db7
test eax, eax
jne 0x1008af9
push 0x1002958
push dword [0x10143ec]
call fcn.0100f2af
mov edi, dword [ebp - 0xec8]
pop ecx
pop ecx
cmp edi, ebx
je 0x1008bd5
push 1
push 0x81
lea eax, [ebp - 0x12c]
push eax
push 0x11
lea eax, [ebp - 0x28]
push eax
call fcn.01007db7
test eax, eax
jne 0x1008b35
push 0x1002908
push dword [0x10143ec]
call fcn.0100f2af
pop ecx
pop ecx
jmp 0x1008bd5
cmp dword [ebp - 0xe9c], ebx
jne 0x1008bd5
push dword [ebp - 0xea8]
lea ecx, [ebp - 0xe98]
call fcn.0100f4f8
lea eax, [ebp - 0xc84]
push eax
lea eax, [ebp - 0xc8e]
push eax
push 0x10028fc
push esi
push ebx
push ebx
mov edi, 0x105
lea eax, [ebp - 0x540]
push edi
push eax
call fcn.01011c3f
add esp, 0x20
test eax, eax
jl 0x1008a41
lea eax, [ebp - 0x540]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push ebx
push ebx
xor ecx, ecx
push 0x10016c0
mov word [ebp + eax*2 - 0x542], cx
push edi
lea eax, [ebp - 0x540]
push eax
call fcn.01011bb9
test eax, eax
jl 0x1008a41
lea eax, [ebp - 0x540]
push eax
push 0x10028f8
push 0x10016cc
push 0x1001784
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp word [ebp - 0x28], bx
jne 0x1008c35
push esi
push ebx
push ebx
push 0x10021d4
push 0x11
lea eax, [ebp - 0x28]
push eax
call fcn.01011b30
test eax, eax
jl 0x1008a41
push esi
push ebx
push ebx
push 0x10028cc
push 0x81
lea eax, [ebp - 0x12c]
push eax
call fcn.01011b30
test eax, eax
jl 0x1008a41
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x1002860
push dword [0x10143ec]
call fcn.0100f2af
add esp, 0x10
push 0xfd0
call sub.cmutil.dll_CmMalloc
mov edi, eax
cmp dword [ebp - 0xec0], ebx
je 0x1008d9d
cmp edi, ebx
jne 0x1008c68
push 0x1002808
push dword [0x10143ec]
call fcn.0100f2af
pop ecx
pop ecx
jmp 0x1008e52
push 0xfd0
push ebx
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
push ebx
lea eax, [ebp - 0x28]
push ebx
push eax
mov dword [ebp - 0xeb0], eax
mov dword [ebp - 0xeb4], eax
push 0x11
lea eax, [edi + 0x764]
push eax
mov dword [edi], 0xfd0
mov dword [edi + 0xda8], 4
mov dword [ebp - 0xeb8], 0x1001358
mov dword [ebp - 0xeac], ebx
call fcn.01011b30
lea ecx, [ebp - 0xeb8]
call fcn.01005e75
push esi
push ebx
lea eax, [ebp - 0x12c]
push ebx
push eax
mov dword [ebp - 0xeb0], eax
mov dword [ebp - 0xeb4], eax
push 0x81
lea eax, [edi + 0x786]
push eax
mov dword [ebp - 0xeb8], 0x1001358
mov dword [ebp - 0xeac], ebx
call fcn.01011b30
lea ecx, [ebp - 0xeb8]
call fcn.01005e75
push esi
push ebx
lea eax, [ebp - 0x334]
push ebx
push eax
mov dword [ebp - 0xeb0], eax
mov dword [ebp - 0xeb4], eax
push 0x104
lea eax, [edi + 0xdc4]
push eax
mov dword [ebp - 0xeb8], 0x1001358
mov dword [ebp - 0xeac], ebx
call fcn.01011b30
lea ecx, [ebp - 0xeb8]
call fcn.01005e75
mov esi, dword [edi]
push esi
push edi
call fcn.0100fc7d
mov dword [ebp - 0xe9c], eax
cmp eax, ebx
je 0x1008d92
mov eax, dword [ebp - 0xec0]
mov ecx, dword [eax]
push esi
lea edx, [ebp - 0xe9c]
push edx
push dword [ebp - 0xea4]
push dword [ebp - 0xec4]
push eax
call dword [ecx + 0x10]
push dword [ebp - 0xe9c]
mov esi, eax
and esi, 0xffff
call sub.cmutil.dll_CmFree
jmp 0x1008e28
mov esi, dword [ebp - 0xebc]
jmp 0x1008e28
cmp edi, ebx
je 0x1008c51
push 0xfd0
push ebx
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
push 0x11
lea eax, [edi + 0x764]
push eax
mov dword [edi], 0xfd0
mov dword [edi + 0xda8], 4
call fcn.01011b30
push esi
push ebx
push ebx
lea eax, [ebp - 0x12c]
push eax
push 0x81
lea eax, [edi + 0x786]
push eax
call fcn.01011b30
push esi
push ebx
push ebx
lea eax, [ebp - 0x334]
push eax
push 0x104
lea eax, [edi + 0xdc4]
push eax
call fcn.01011b30
push ebx
push ebx
push dword [edi]
push edi
push dword [ebp - 0xea4]
push dword [ebp - 0xec4]
call dword [ebp - 0xebc]
mov esi, eax
push edi
call sub.cmutil.dll_CmFree
cmp esi, ebx
jne 0x1008e3e
mov dword [ebp - 0xea0], 1
jmp 0x1008e52
push esi
push 0x1002778
push dword [0x10143ec]
call fcn.0100f2af
add esp, 0xc
mov eax, dword [ebp - 0xea0]
jmp 0x1008e5c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100e410
leave
ret 0x10