Function at 0x1000a2de
Capabilities:
Read .ini file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c0
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
jne 0x1000a4e0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x1000a652
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
and byte [ebp + 0xb], al
push ebx
push ebx
push 0x18b
push dword [esi + 0x228]
call edi
cmp eax, ebx
jle 0x1000a33b
mov dword [ebp + 0xc], eax
push ebx
push ebx
push 0x182
push dword [esi + 0x228]
call edi
dec dword [ebp + 0xc]
jne 0x1000a327
lea eax, [esi + 0x120]
push 0x10021240
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp + 0xc], eax
je 0x1000a652
push eax
mov ebx, 0x88
push 1
lea eax, [ebp - 0x13c]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
test eax, eax
je 0x1000a3ab
mov byte [ebp + 0xb], 1
lea eax, [ebp - 0x136]
push eax
push 0
push 0x180
push dword [esi + 0x228]
call edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x13c]
push 1
push ebx
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
test eax, eax
jne 0x1000a37b
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_fclose]
cmp byte [ebp + 0xb], 0
pop ecx
jne 0x1000a3c2
xor ebx, ebx
jmp 0x1000a652
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x1000a459
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi + 0x2e8]
push dword [eax + 0x3f4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 4]
sub dword [ebp - 0x10], 0x18
mov dword [ebp - 0xc], eax
lea eax, [esi + 0x1c]
push eax
lea eax, [ebp - 0x30]
push 0x10
push eax
push 0x10021bf0
push str.height
push str.search
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
cmp eax, 0x64
pop ecx
jge 0x1000a425
push 0x64
pop eax
mov ecx, 0x258
cmp eax, ecx
jle 0x1000a430
mov eax, ecx
mov ecx, dword [ebp - 4]
push 0x254
add ecx, eax
mov eax, dword [esi + 4]
mov dword [ebp - 4], ecx
sub ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
push ecx
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push eax
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi + 0x2e8]
and byte [esi + 0x2ec], 0
lea ebx, [esi + 0x2ec]
push dword [eax + 0x3f4]
call dword [sym.imp.USER32.dll_SetFocus]
push 0x10021bd8
push 0
push 0x180
mov byte [ebx], 1
push dword [esi + 0x228]
call edi
lea eax, [esi + 0x1c]
mov ebx, str.true
push eax
lea eax, [ebp - 0x20]
push 0x10
push eax
push ebx
push str.localie
push str.search
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
jne 0x1000a4c7
push 0x10021b94
jmp 0x1000a4cc
push 0x10021bac
push 0
push 0x180
push dword [esi + 0x228]
call edi
jmp 0x1000a6f1
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
cmp eax, 1
pop ecx
jb 0x1000a65c
push 0x80
lea eax, [ebp - 0x1c0]
push dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
lea eax, [ebp - 0x1c0]
push eax
call dword [sym.imp.MSVCRT.dll__strlwr]
and byte [ebp - 0xb4], 0
and byte [ebp + 0xb], 0
push 0x20
xor eax, eax
pop ecx
lea edi, [ebp - 0xb3]
rep stosd dword es:[edi], eax
lea eax, [esi + 0x120]
push 0x10021240
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 0x18
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x1000a645
push eax
mov ebx, 0x88
push 1
lea eax, [ebp - 0x13c]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
test eax, eax
je 0x1000a633
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x81
lea eax, [ebp - 0xb4]
push 0
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x136]
push eax
lea eax, [ebp - 0xb4]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.MSVCRT.dll__strlwr]
lea eax, [ebp - 0x1c0]
push eax
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
lea ecx, [ebp - 0xb4]
add esp, 0x20
cmp eax, ecx
jne 0x1000a615
cmp byte [ebp + 0xb], 0
jne 0x1000a5fb
push 0
push 0
push 0x18b
push dword [esi + 0x228]
call edi
test eax, eax
jle 0x1000a5fb
mov dword [ebp + 8], eax
push 0
push 0
push 0x182
push dword [esi + 0x228]
call edi
dec dword [ebp + 8]
jne 0x1000a5e5
lea eax, [ebp - 0x136]
push eax
push 0
push 0x180
push dword [esi + 0x228]
call edi
mov byte [ebp + 0xb], 1
push dword [ebp + 0xc]
lea eax, [ebp - 0x13c]
push 1
push ebx
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
test eax, eax
jne 0x1000a573
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_fclose]
cmp byte [ebp + 0xb], 0
pop ecx
jne 0x1000a663
xor ebx, ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1000a65c
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
jmp 0x1000a6f4
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x1000a6ea
and byte [esi + 0x2ec], al
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi + 0x2e8]
push dword [eax + 0x3f4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 4]
sub dword [ebp - 0x10], 0x18
mov dword [ebp - 0xc], eax
lea eax, [esi + 0x1c]
push eax
lea eax, [ebp - 0x20]
push 0x10
push eax
push 0x10021bf0
push str.height
push str.search
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
mov ecx, dword [ebp - 4]
mov dword [esp], 0x654
add ecx, eax
mov eax, dword [esi + 4]
mov dword [ebp - 4], ecx
sub ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
push ecx
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push eax
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov byte [esi + 0x2ec], 1
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8