Function at 0x4088e7
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x445670
call sub.MSVCRT.dll__EH_prolog
mov eax, 0x2ae0
call fcn.0042d380
mov al, byte [ebp + 0xf]
push ebx
xor ebx, ebx
push esi
push edi
mov byte [ebp - 0x30], al
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
lea eax, [ebp - 0x30]
mov dword [ebp - 4], ebx
push eax
push dword [ebp + 0xc]
call fcn.0041f4db
pop ecx
test eax, eax
pop ecx
je 0x408a8b
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
call fcn.0041f66e
mov al, byte [ebp + 0xf]
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x1c], al
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
push dword [ebp + 8]
call fcn.0041f707
mov edi, dword [ebp - 0x18]
add esp, 0x10
cmp edi, dword [ebp - 0x14]
je 0x4089ca
xor esi, esi
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
je 0x4089ab
mov ecx, dword [ebp - 0x28]
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jae 0x4089ab
mov eax, dword [eax + esi*4]
mov ecx, dword [edi]
cmp eax, ecx
je 0x40899e
cmp eax, ebx
je 0x408995
cmp ecx, ebx
je 0x408995
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
jmp 0x408997
xor eax, eax
cmp eax, ebx
jne 0x40899e
inc esi
jmp 0x408960
push edi
lea ecx, [ebp - 0x1c]
call fcn.00408d06
mov edi, eax
jmp 0x408959
push dword [ebp + 8]
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push ebx
push ebx
push eax
call esi
push dword [ebp + 0xc]
mov eax, dword [edi]
push ebx
push ebx
push eax
call esi
add edi, 4
jmp 0x408959
mov al, byte [ebp + 0xf]
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x44], al
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 2
push eax
push dword [ebp + 0xc]
call fcn.0041f707
pop ecx
xor esi, esi
pop ecx
mov eax, dword [ebp - 0x40]
cmp eax, ebx
je 0x408a2f
mov ecx, dword [ebp - 0x3c]
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jae 0x408a2f
lea eax, [eax + esi*4]
lea ecx, [ebp - 0x1c]
push eax
call fcn.00408cf5
push dword [ebp + 8]
mov eax, dword [ebp - 0x40]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push ebx
push ebx
push dword [eax + esi*4]
call edi
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x40]
push ebx
push ebx
push dword [eax + esi*4]
call edi
inc esi
jmp 0x4089ed
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x44]
push eax
call fcn.00408dc7
cmp dword [ebp - 0x18], ebx
je 0x408a6b
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
test eax, 0xfffffffc
je 0x408a6b
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call fcn.0041f82a
pop ecx
pop ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x18]
call fcn.00408dc7
jmp 0x408a74
push dword [ebp + 8]
call fcn.0041f9d3
pop ecx
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.00408cc1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00408cc1
push dword [ebp - 0x28]
lea ecx, [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.00408dc7
mov ecx, 0x513
xor eax, eax
lea edi, [ebp - 0x2aea]
push dword [ebp + 0xc]
mov word [ebp - 0x2aec], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x2aec]
push 0xa28
push eax
push 0x45d0f4
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x408c37
lea eax, [ebp - 0x2aec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x408c37
mov ecx, 0x513
xor eax, eax
lea edi, [ebp - 0x169a]
mov word [ebp - 0x169c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x24a]
mov word [ebp - 0x24c], bx
rep stosd dword es:[edi], eax
lea esi, [ebp - 0x2aec]
mov dword [ebp - 0x34], ebx
stosw word es:[edi], ax
cmp esi, ebx
je 0x408c37
cmp word [esi], bx
je 0x408c37
push esi
push 0x457e70
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
je 0x408c0f
push 4
lea eax, [ebp - 0x169c]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x169c]
push dword [ebp + 0xc]
push 0xa28
push eax
push 0x45d0f4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x408c0f
lea eax, [ebp - 0x169c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x408c0f
lea edi, [ebp - 0x169c]
mov dword [ebp - 0x20], ebx
cmp edi, ebx
je 0x408c0f
cmp word [edi], bx
je 0x408c0f
push 0x208
lea eax, [ebp - 0x24c]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x24c]
push dword [ebp + 0xc]
push 0x104
push eax
push 0x45d0f4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x408bea
push dword [ebp + 8]
lea eax, [ebp - 0x24c]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x20]
push edi
lea eax, [ecx + eax + 1]
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp dword [ebp - 0x20], 0xa26
lea edi, [edi + eax*2 + 2]
jl 0x408b9a
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x34]
push esi
lea edi, [ecx + eax + 1]
mov dword [ebp - 0x34], edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp edi, 0xa26
lea esi, [esi + eax*2 + 2]
jl 0x408b23
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00408cc1
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8