Function at 0x504650
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52e038
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x559024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
lea edi, [esi + 0x3c]
push edi
mov ecx, 0x53b7a8
mov dword [ebp - 4], ebx
call fcn.00466b30
push str.ToolBtn_BtnText
lea eax, [esi + 0x4c]
call fcn.004fcf00
mov eax, dword [edi + 0x10]
cmp eax, ebx
jne 0x5046af
mov eax, 0x538640
mov dword [ebp - 0x10], ebx
cmp dword [edi + 8], ebx
jle 0x5046dd
cmp eax, ebx
je 0x5046dd
cmp word [eax], bx
je 0x5046dd
mov ecx, dword [edi + 4]
cmp ecx, ebx
jne 0x5046cc
mov ecx, 0x538640
push ecx
push ebx
push str.PosiX
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0x10]
cmp ecx, ebx
jne 0x5046e9
mov ecx, 0x538640
mov dword [ebp - 0x14], ebx
cmp dword [edi + 8], ebx
jle 0x504717
cmp ecx, ebx
je 0x504717
cmp word [ecx], bx
je 0x504717
mov eax, dword [edi + 4]
cmp eax, ebx
jne 0x504706
mov eax, 0x538640
push eax
push ebx
push str.PosiY
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x14], eax
mov ecx, dword [edi + 0x10]
cmp ecx, ebx
jne 0x504723
mov ecx, 0x538640
mov dword [ebp - 0x18], ebx
cmp dword [edi + 8], ebx
jle 0x504751
cmp ecx, ebx
je 0x504751
cmp word [ecx], bx
je 0x504751
mov eax, dword [edi + 4]
cmp eax, ebx
jne 0x504740
mov eax, 0x538640
push eax
push ebx
push str.Width
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x18], eax
mov ecx, dword [edi + 0x10]
cmp ecx, ebx
jne 0x50475d
mov ecx, 0x538640
mov dword [ebp - 0x1c], ebx
cmp dword [edi + 8], ebx
jle 0x50478b
cmp ecx, ebx
je 0x50478b
cmp word [ecx], bx
je 0x50478b
mov eax, dword [edi + 4]
cmp eax, ebx
jne 0x50477a
mov eax, 0x538640
push eax
push ebx
push str.Height
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x1c], eax
push 0x2af8
lea eax, [ebp - 0x40]
push eax
mov ecx, 0x55a400
call fcn.00467b90
mov ebx, 1
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x5047b7
mov dword [ebp - 0x34], 0x538640
mov edi, dword [edi + 0x10]
mov ecx, edi
test edi, edi
jne 0x5047c5
mov ecx, 0x538640
xor edi, edi
cmp dword [esi + 0x44], edi
jle 0x5047f2
test ecx, ecx
je 0x5047f2
cmp word [ecx], di
je 0x5047f2
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x5047e1
mov eax, 0x538640
push eax
push 0
push str.FontPoint
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
cmp byte [ebp + 0xc], 0
je 0x504a0b
push 0x80f7
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, 0x55a400
call fcn.00467b90
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004fce50
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x50482e
push eax
call fcn.005134a7
add esp, 4
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x50483a
mov eax, 0x538640
push eax
lea eax, [esi + 0x124]
mov byte [esi + 0x248], bl
call fcn.004fcf00
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
push 0
push 0
mov dword [esi + 0x110], eax
mov eax, dword [ebp - 0x34]
push edi
mov dword [esi + 0x114], ecx
mov dword [esi + 0x10c], edx
mov edx, dword [ebp - 0x1c]
push eax
lea ecx, [esi + 0xfc]
mov dword [esi + 0x11c], ebx
mov ebx, dword [ebp + 8]
push ecx
mov dword [esi + 0x118], edx
mov dword [esi + 0x120], 0x15
call fcn.0046a1f0
push 0x80f8
lea edx, [ebp - 0x4c]
push edx
mov ecx, 0x55a400
mov byte [esi + 0x130], 0
mov byte [esi + 0x138], 0
call fcn.00467b90
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.004fce50
mov ebx, 1
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x5048dd
push eax
call fcn.005134a7
add esp, 4
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x5048e9
mov eax, 0x538640
push eax
lea eax, [esi + 0x3d0]
mov byte [esi + 0x4f4], bl
call fcn.004fcf00
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
push 0
push 0
mov dword [esi + 0x3bc], ecx
mov ecx, dword [ebp - 0x34]
push edi
mov dword [esi + 0x3c0], edx
mov dword [esi + 0x3b8], eax
mov eax, dword [ebp - 0x1c]
push ecx
lea edx, [esi + 0x3a8]
mov dword [esi + 0x3c8], ebx
mov ebx, dword [ebp + 8]
push edx
mov dword [esi + 0x3c4], eax
mov dword [esi + 0x3cc], 0x15
call fcn.0046a1f0
push 0x80f2
lea eax, [ebp - 0x4c]
push eax
mov ecx, 0x55a400
mov byte [esi + 0x3dc], 0
mov byte [esi + 0x3e4], 0
call fcn.00467b90
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.004fce50
mov ebx, 1
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x50498c
push eax
call fcn.005134a7
add esp, 4
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x504998
mov eax, 0x538640
push eax
lea eax, [esi + 0x67c]
mov byte [esi + 0x7a0], bl
call fcn.004fcf00
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
push 0
push 0
mov dword [esi + 0x668], edx
mov edx, dword [ebp - 0x34]
push edi
mov dword [esi + 0x66c], eax
mov dword [esi + 0x664], ecx
mov ecx, dword [ebp - 0x1c]
push edx
lea eax, [esi + 0x654]
mov dword [esi + 0x674], ebx
mov ebx, dword [ebp + 8]
push eax
mov dword [esi + 0x670], ecx
mov dword [esi + 0x678], 0x15
call fcn.0046a1f0
xor al, al
mov byte [esi + 0x688], al
mov byte [esi + 0x690], al
mov ebx, 1
jmp 0x504a15
cmp byte [ebp + 0x10], 0
je 0x504ac4
push 0x80f1
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, 0x55a400
call fcn.00467b90
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.004fce50
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x504a47
push eax
call fcn.005134a7
add esp, 4
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x504a53
mov eax, 0x538640
push eax
lea eax, [esi + 0x928]
mov byte [esi + 0xa4c], bl
call fcn.004fcf00
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
push 0
push 0
mov dword [esi + 0x914], eax
mov eax, dword [ebp - 0x34]
push edi
mov dword [esi + 0x918], ecx
mov dword [esi + 0x910], edx
mov edx, dword [ebp - 0x1c]
push eax
lea ecx, [esi + 0x900]
mov dword [esi + 0x920], ebx
mov ebx, dword [ebp + 8]
push ecx
mov dword [esi + 0x91c], edx
mov dword [esi + 0x924], 0x15
call fcn.0046a1f0
xor al, al
mov byte [esi + 0x934], al
mov byte [esi + 0x93c], al
mov ebx, 1
push 0x80f4
lea edx, [ebp - 0x4c]
push edx
mov ecx, 0x55a400
call fcn.00467b90
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call fcn.004fce50
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x504af6
push eax
call fcn.005134a7
add esp, 4
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x504b02
mov eax, 0x538640
push eax
lea eax, [esi + 0xe80]
mov byte [esi + 0xfa4], bl
call fcn.004fcf00
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
push 0
push 0
mov dword [esi + 0xe6c], ecx
mov ecx, dword [ebp - 0x34]
push edi
mov dword [esi + 0xe70], edx
mov dword [esi + 0xe68], eax
mov eax, dword [ebp - 0x1c]
push ecx
lea edx, [esi + 0xe58]
mov dword [esi + 0xe78], ebx
mov ebx, dword [ebp + 8]
push edx
mov dword [esi + 0xe74], eax
mov dword [esi + 0xe7c], 0x15
call fcn.0046a1f0
push 0x80f5
lea eax, [ebp - 0x4c]
push eax
mov ecx, 0x55a400
mov byte [esi + 0xe8c], 0
mov byte [esi + 0xe94], 0
call fcn.00467b90
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.004fce50
mov ebx, 1
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x504ba5
push eax
call fcn.005134a7
add esp, 4
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x504bb1
mov eax, 0x538640
push eax
lea eax, [esi + 0x112c]
mov byte [esi + 0x1250], bl
call fcn.004fcf00
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
push 0
push 0
mov dword [esi + 0x1118], edx
mov edx, dword [ebp - 0x34]
push edi
mov dword [esi + 0x111c], eax
mov dword [esi + 0x1114], ecx
mov ecx, dword [ebp - 0x1c]
push edx
lea eax, [esi + 0x1104]
mov dword [esi + 0x1124], ebx
mov ebx, dword [ebp + 8]
push eax
mov dword [esi + 0x1120], ecx
mov dword [esi + 0x1128], 0x15
call fcn.0046a1f0
cmp byte [ebp + 0x14], 0
mov byte [esi + 0x1138], 0
mov byte [esi + 0x1140], 0
je 0x504d85
push 0x80f3
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, 0x55a400
call fcn.00467b90
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
call fcn.004fce50
mov ebx, 1
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x504c5e
push eax
call fcn.005134a7
add esp, 4
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x504c6a
mov eax, 0x538640
push eax
lea eax, [esi + 0x13d8]
mov byte [esi + 0x14fc], bl
call fcn.004fcf00
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
push 0
push 0
mov dword [esi + 0x13c4], eax
mov eax, dword [ebp - 0x34]
push edi
mov dword [esi + 0x13c8], ecx
mov dword [esi + 0x13c0], edx
mov edx, dword [ebp - 0x1c]
push eax
lea ecx, [esi + 0x13b0]
mov dword [esi + 0x13d0], ebx
mov ebx, dword [ebp + 8]
push ecx
mov dword [esi + 0x13cc], edx
mov dword [esi + 0x13d4], 0x15
call fcn.0046a1f0
push 0x80f3
lea edx, [ebp - 0x4c]
push edx
mov ecx, 0x55a400
mov byte [esi + 0x13e4], 0
mov byte [esi + 0x13ec], 0
call fcn.00467b90
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.004fce50
mov ebx, 1
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x504d0d
push eax
call fcn.005134a7
add esp, 4
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x504d19
mov eax, 0x538640
push eax
lea eax, [esi + 0x1684]
mov byte [esi + 0x17a8], bl
call fcn.004fcf00
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
push 0
push 0
mov dword [esi + 0x1670], ecx
mov ecx, dword [ebp - 0x34]
push edi
mov dword [esi + 0x1674], edx
mov dword [esi + 0x166c], eax
mov eax, dword [ebp - 0x1c]
push ecx
lea edx, [esi + 0x165c]
mov dword [esi + 0x167c], ebx
mov ebx, dword [ebp + 8]
push edx
mov dword [esi + 0x1678], eax
mov dword [esi + 0x1680], 0x15
call fcn.0046a1f0
xor al, al
mov byte [esi + 0x1690], al
mov byte [esi + 0x1698], al
cmp byte [ebp + 0x10], 0
je 0x504e49
push 0x80fd
lea eax, [ebp - 0x4c]
push eax
mov ecx, 0x55a400
call fcn.00467b90
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
call fcn.004fce50
mov ebx, 1
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x504dd1
push eax
call fcn.005134a7
add esp, 4
xor eax, eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x504ddd
mov eax, 0x538640
push eax
lea eax, [esi + 0x1930]
mov byte [esi + 0x1a54], bl
call fcn.004fcf00
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
push 0
push 0
mov dword [esi + 0x191c], edx
mov edx, dword [ebp - 0x34]
push edi
mov dword [esi + 0x1920], eax
mov dword [esi + 0x1918], ecx
mov ecx, dword [ebp - 0x1c]
push edx
lea eax, [esi + 0x1908]
mov dword [esi + 0x1928], ebx
mov ebx, dword [ebp + 8]
push eax
mov dword [esi + 0x1924], ecx
mov dword [esi + 0x192c], 0x15
call fcn.0046a1f0
xor al, al
mov byte [esi + 0x193c], al
mov byte [esi + 0x1944], al
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x40]
xor esi, esi
cmp eax, esi
je 0x504e68
push eax
call fcn.005134a7
add esp, 4
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
cmp eax, esi
je 0x504e7f
push eax
call fcn.005134a7
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10