Function at 0x40f590
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x11c
push ebx
push esi
mov esi, dword [esp + 0x12c]
push edi
push ebp
push esi
call fcn.0040f540
lea eax, [esp + 0x14]
mov ecx, dword [esp + 0x134]
add esp, 4
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x18]
push 0x50
sub eax, dword [esp + 0x14]
push 0x438c30
push str.20_140_260_330
mov dword [0x430e2c], eax
mov eax, dword [esp + 0x28]
push str.LOCL
sub eax, dword [esp + 0x24]
mov dword [0x430e30], eax
call fcn.00402ec0
add esp, 0x10
push 0x430488
push 0x430484
push 0x430480
push 0x43047c
push str._d__d__d__d
push 0x438c30
call fcn.00420e00
add esp, 0x18
push 0x50
push 0x438c30
push str.20_140_260_330
push str.LOCR
call fcn.00402ec0
add esp, 0x10
push 0x4304a0
push 0x43049c
push 0x430498
push 0x430494
push str._d__d__d__d
push 0x438c30
call fcn.00420e00
add esp, 0x18
push 0x438470
push 0
push str.SORTLBX
push 0x42fa20
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 0x130]
mov dword [0x42f824], eax
mov dword [0x43659c], 0x409250
push ecx
call fcn.0040e2d0
add esp, 4
push 0
push 3
mov ebp, 0x437350
call fcn.0040dfc0
add esp, 8
mov ebx, 0x430508
mov eax, dword [ebx]
test eax, eax
jne 0x40f6b6
lea edi, [esp + 0x2c]
xor eax, eax
mov ecx, 0x40
rep stosd dword es:[edi], eax
jmp 0x40f6c8
lea ecx, [esp + 0x2c]
push 0x100
push ecx
push eax
push esi
call dword [sym.imp.USER32.dll_LoadStringA]
push 0
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x134]
push esi
push eax
mov edx, dword [ebp + 0x14]
push ecx
mov eax, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
push eax
mov edx, dword [ebp + 8]
push ecx
mov eax, dword [ebx + 0xc]
push edx
or eax, 0x40000000
lea ecx, [esp + 0x4c]
push eax
push ecx
mov edx, dword [ebx - 4]
push edx
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ecx, dword [0x430e28]
mov dword [ebp], eax
cmp ebx, 0x430508
je 0x40f71e
cmp ebx, 0x430530
jne 0x40f7a1
mov eax, dword [ebp]
test eax, eax
je 0x40f7a1
cmp ecx, 0xa
jge 0x40f7a1
push 5
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
push 0xa
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClassNameA]
lea eax, [esp + 0x20]
push str.Edit
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
push 2
test eax, eax
push edi
jne 0x40f762
call dword [sym.imp.USER32.dll_GetWindow]
jmp 0x40f76a
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
mov ecx, dword [0x430e28]
push 0xfffffffffffffffc
push edi
mov dword [ecx*4 + 0x436790], edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, dword [0x430e28]
push 0x40f4a0
push 0xfffffffffffffffc
push edi
mov dword [ecx*4 + 0x436760], eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
inc dword [0x430e28]
mov eax, dword [ebp]
test eax, eax
je 0x40f7e1
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp + 4], eax
mov eax, dword [0x43659c]
push eax
mov ecx, dword [ebp]
push 0xfffffffffffffffc
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongA]
test byte [ebx + 0xe], 1
mov eax, dword [0x4304f8]
je 0x40f7e1
mov ecx, dword [ebp]
inc eax
mov dword [0x4304f8], eax
mov dword [eax*4 + 0x4365dc], ecx
add ebp, 0x18
add ebx, 0x28
cmp ebx, 0x430d00
jb 0x40f6a1
push 0x42f7b0
mov eax, dword [0x437488]
push eax
mov edi, dword [sym.imp.USER32.dll_SetWindowTextA]
call edi
push 0x42f798
mov ecx, dword [0x437560]
push ecx
call edi
cmp dword [0x42f84c], 0
je 0x40f84f
lea eax, [esp + 0x2c]
push 0x100
push eax
push 0x38c
push esi
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [esp + 0x2c]
mov ecx, dword [0x437428]
push eax
push ecx
call edi
lea ecx, [esp + 0x2c]
mov edx, dword [0x437440]
push ecx
push edx
call edi
mov eax, dword [esp + 0x130]
push eax
call fcn.00414260
add esp, 4
cmp dword [0x4304f8], 0
jle 0x40f874
mov eax, dword [0x437650]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x11c
ret