Function at 0x10017185
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x1001b9b4
call fcn.1001a990
sub esp, 0x27c
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
mov ebx, ecx
je 0x10017608
mov eax, dword [edi + 0xc]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x144], 0x50
push ecx
push eax
push 0x41d
mov dword [ebp - 0x140], 0x10
push dword [ebx + 0xb70]
call esi
mov eax, dword [ebx + 4]
cmp dword [ebp - 0x124], eax
jne 0x10017608
push 0
push 0
push 0x418
push eax
call esi
push dword [ebx + 4]
mov dword [ebp - 0x20], eax
call dword [sym.imp.USER32.dll_SetFocus]
lea esi, [edi + 0x18]
lea edi, [ebp - 0x70]
mov dword [ebp - 0x30], esi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebx + 0xb70]
call dword [sym.imp.USER32.dll_ClientToScreen]
push 0xb
xor esi, esi
pop ecx
xor eax, eax
lea edi, [ebp - 0x5c]
mov dword [ebp - 0x60], esi
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_CreatePopupMenu]
and byte [ebp - 0x288], 0
push 0x3f
mov dword [ebp - 0x18], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x287]
rep stosd dword es:[edi], eax
cmp dword [ebp - 0x20], esi
mov dword [ebp - 0x58], esi
stosw word es:[edi], ax
mov dword [ebp + 0xc], esi
mov dword [ebp - 0x10], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x60], 0x30
mov dword [ebp - 0x5c], 0x1b
stosb byte es:[edi], al
jle 0x100174e5
lea eax, [ebp - 0xb8]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push dword [ebp - 0x10]
push 0x417
push dword [ebx + 4]
call edi
test byte [ebp - 0xaf], 1
je 0x100172ab
mov dword [ebp - 0x58], 0x800
jmp 0x100174d6
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x10]
push 0x41d
push dword [ebx + 4]
call edi
test eax, eax
je 0x100172ce
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x68]
cmp eax, dword [ecx]
jle 0x100174d6
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0xf0]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x288]
push 2
mov dword [ebp - 0xdc], eax
pop edi
lea eax, [ebp - 0xf4]
mov dword [ebp - 0xf4], 0x20
push eax
mov dword [ebp - 0xf0], edi
push dword [ebp - 0xb4]
mov dword [ebp - 0xd8], 0x100
push 0x441
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x288]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jbe 0x100174d6
mov eax, dword [ebx + 0x344]
add eax, 0x142
cmp dword [ebp - 0xb4], eax
lea eax, [ebx + 0x201]
je 0x10017353
lea eax, [ebp - 0x288]
and dword [ebp - 0x4c], 0
cmp dword [ebp - 0xb4], 0x141
mov dword [ebp - 0x3c], eax
jne 0x100174b8
lea eax, [ebx + 0x7ce]
push eax
lea eax, [ebp - 0xd4]
push 0x1a
push eax
push 0x10021acc
push 0x10021ac8
push str.search
call esi
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
cmp eax, edi
pop ecx
mov dword [ebp - 0x14], eax
jl 0x100174b8
and dword [ebp - 0xa4], 0
push 0xb
pop ecx
xor eax, eax
lea edi, [ebp - 0xa0]
mov dword [ebp - 0x3c], 0x10022810
rep stosd dword es:[edi], eax
mov dword [ebp - 0x5c], 0x1f
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov dword [ebp - 0x24], eax
lea eax, [ebx + 0x7ce]
and dword [ebp - 0x9c], 0
push eax
lea eax, [ebp - 0xd4]
push 0x1a
push eax
push 0x10021acc
push str.current
push str.search
mov dword [ebp - 0xa4], 0x30
mov dword [ebp - 0xa0], 0x1b
call esi
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
pop ecx
mov dword [ebp - 0x1c], eax
push 1
pop edi
cmp dword [ebp - 0x14], edi
jl 0x100174b2
cmp edi, dword [ebp - 0x1c]
jne 0x10017439
mov dword [ebp - 0x98], 8
jmp 0x10017440
and dword [ebp - 0x98], 0
push edi
lea eax, [ebp - 0xd4]
push str.text_d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebx + 0x7ce]
push eax
lea eax, [ebp - 0x188]
push 0x41
push eax
lea eax, [ebp - 0xd4]
push 0x10022238
push eax
push str.search
call esi
lea eax, [ebp - 0x188]
and dword [ebp - 0x90], 0
mov dword [ebp - 0x80], eax
lea eax, [edi + 0x1388]
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0xa4]
push eax
push 1
push edi
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_InsertMenuItemA]
inc edi
cmp edi, dword [ebp - 0x14]
jle 0x10017428
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x60]
push eax
push 1
push dword [ebp + 0xc]
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_InsertMenuItemA]
inc dword [ebp + 0xc]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x20]
jl 0x1001727c
lea eax, [ebx + 0x9d6]
push eax
push 0
push 0x1002280c
push str.iescroll
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 1
mov dword [ebp - 0x1c], eax
pop ecx
cmp eax, ecx
mov dword [ebp - 0x14], ecx
jl 0x100175b3
mov eax, dword [0x10021024]
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.10017d29
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push str.text_d
push eax
call fcn.1000c21f
and byte [ebp - 0xa4], 0
add esp, 0xc
xor eax, eax
lea edi, [ebp - 0xa3]
push 0xc
pop ecx
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebx + 0x9d6]
push eax
lea eax, [ebp - 0xa4]
push 0x32
push eax
push 0x100227f4
push dword [ebp - 0x10]
push str.iescroll
call esi
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x3c], eax
lea eax, [edi + 0x7d0]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x60]
push eax
mov eax, dword [ebp + 0xc]
push 1
lea eax, [edi + eax - 1]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_InsertMenuItemA]
inc dword [ebp + 0xc]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.100018ba
inc edi
cmp edi, dword [ebp - 0x1c]
mov dword [ebp - 0x14], edi
jle 0x1001750f
mov edi, dword [ebp - 0x18]
xor ecx, ecx
cmp edi, ecx
je 0x1001760e
mov eax, dword [ebx + 4]
push ecx
push eax
push ecx
push dword [ebp - 0x28]
and byte [ebx + 0x200], cl
push dword [ebp - 0x2c]
push ecx
push edi
call dword [sym.imp.USER32.dll_TrackPopupMenu]
test eax, eax
jne 0x100175ea
push edi
mov byte [ebx + 0x200], 1
call dword [sym.imp.USER32.dll_DestroyMenu]
jmp 0x1001760e
mov esi, dword [sym.imp.USER32.dll_DestroyMenu]
push edi
call esi
push edi
call esi
mov eax, dword [ebp + 0x10]
mov byte [ebx + 0x200], 1
mov dword [eax], 1
jmp 0x1001760e
mov eax, dword [ebp + 0x10]
and dword [eax], 0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc