Function at 0x59d3a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
push esi
push edi
mov esi, ecx
push 4
push 0x6405c8
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x28], esi
mov byte [ebp - 1], 1
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
call fcn.00405440
lea eax, [esi + 0x14]
mov esi, dword [ebp + 8]
add esi, 4
mov edi, 0x10
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], esi
cmp dword [esi + 0x14], edi
jb 0x59d3f3
mov ecx, dword [esi]
jmp 0x59d3f5
mov ecx, esi
mov edx, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x59d400
lea edx, [ebp - 0x48]
cmp dword [eax + 0x14], edi
jb 0x59d407
mov eax, dword [eax]
push ecx
push 0xffffffffffffffff
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 0xffffffff
setne bl
cmp dword [ebp - 0x34], edi
jb 0x59d429
mov eax, dword [ebp - 0x48]
push eax
call fcn.0052d217
add esp, 4
test bl, bl
je 0x59d5f1
push 4
push str.Left
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x20], 0
call fcn.00405440
cmp dword [esi + 0x14], edi
jb 0x59d45b
mov ecx, dword [esi]
jmp 0x59d45d
mov ecx, esi
mov edx, dword [ebp - 0x20]
cmp dword [ebp - 0xc], edi
jae 0x59d468
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x14], edi
jb 0x59d472
mov eax, dword [eax]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push ecx
push 0
push edx
push eax
call ebx
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0xc], edi
jb 0x59d493
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0052d217
add esp, 4
push 5
push str.Right
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x20], 0
call fcn.00405440
cmp dword [esi + 0x14], edi
jb 0x59d4bd
mov ecx, dword [esi]
jmp 0x59d4bf
mov ecx, esi
mov edx, dword [ebp - 0x20]
cmp dword [ebp - 0xc], edi
jae 0x59d4ca
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x14], edi
jb 0x59d4d4
mov eax, dword [eax]
push ecx
push 0
push edx
push eax
call ebx
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0xc], edi
jb 0x59d4ef
mov edx, dword [ebp - 0x20]
push edx
call fcn.0052d217
add esp, 4
push 3
push 0x6405e0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x20], 0
call fcn.00405440
cmp dword [esi + 0x14], edi
jb 0x59d519
mov ecx, dword [esi]
jmp 0x59d51b
mov ecx, esi
mov edx, dword [ebp - 0x20]
cmp dword [ebp - 0xc], edi
jae 0x59d526
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x14], edi
jb 0x59d530
mov eax, dword [eax]
push ecx
push 0
push edx
push eax
call ebx
mov ebx, 0x10
mov edi, eax
cmp dword [ebp - 0xc], ebx
jb 0x59d54f
mov eax, dword [ebp - 0x20]
push eax
call fcn.0052d217
add esp, 4
push 6
push str.Bottom
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x20], 0
call fcn.00405440
cmp dword [esi + 0x14], ebx
jb 0x59d577
mov esi, dword [esi]
mov ecx, dword [ebp - 0x20]
cmp dword [ebp - 0xc], ebx
jae 0x59d582
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x14], ebx
jb 0x59d58c
mov eax, dword [eax]
push esi
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
cmp dword [ebp - 0xc], ebx
jb 0x59d5aa
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0052d217
add esp, 4
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x3c]
sub eax, ecx
sub esi, edi
cmp eax, 0xffffffff
jne 0x59d5d5
mov edx, dword [ebp - 0x28]
push 1
push esi
push eax
mov eax, dword [edx + 8]
push edi
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, dword [ebp - 0x2c]
mov edi, ebx
jmp 0x59d5f5
push 4
push esi
push eax
push edi
push ecx
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 8]
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, dword [ebp - 0x2c]
mov edi, ebx
jmp 0x59d5f5
mov byte [ebp - 1], 0
push 7
mov ebx, 0xf
push str.Caption
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
call fcn.00405440
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0x48]
push ecx
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0x28]
push edx
lea edx, [ebp - 0x20]
lea ecx, [ebx + 0x14]
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x20], 0
call fcn.005ad980
cmp dword [ebp - 0xc], edi
jb 0x59d653
mov eax, dword [ebp - 0x20]
push eax
call fcn.0052d217
add esp, 4
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x20], 0
cmp dword [ebp - 0x34], edi
jb 0x59d676
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0052d217
add esp, 4
push 6
push str.Enable
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x20], 0
call fcn.00405440
cmp dword [esi + 0x14], edi
jb 0x59d69e
mov esi, dword [esi]
mov ecx, dword [ebp - 0x20]
cmp dword [ebp - 0xc], edi
jae 0x59d6a9
lea ecx, [ebp - 0x20]
cmp dword [ebx + 0x28], edi
jb 0x59d6b3
mov eax, dword [ebx + 0x14]
jmp 0x59d6b6
lea eax, [ebx + 0x14]
push esi
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
setne al
movzx edx, al
mov eax, ebx
mov ecx, dword [eax + 8]
push edx
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
jb 0x59d6ea
mov edx, dword [ebp - 0x20]
push edx
call fcn.0052d217
add esp, 4
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 4