Function at 0x4a5800
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x57349a
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x5d72e0]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d72e0]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov esi, dword [esp + 0x140]
xor ebx, ebx
mov ebp, ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x18], ebx
push 0xff
lea eax, [esp + 0x31]
push ebx
push eax
mov dword [esp + 0x144], ebx
mov byte [esp + 0x38], bl
call fcn.00530d30
mov eax, dword [esi]
add esp, 0xc
push eax
push 0x100
lea ecx, [esp + 0x34]
push ecx
push 0x57e9e8
push str.DialogBmp
push str.Personality
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x2c], bl
je 0x4a5976
push 1
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.004a83c0
mov esi, eax
push 0x58e1b8
lea ecx, [esp + 0x154]
push ecx
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x150], 1
call fcn.00402100
push esi
push eax
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0x15c], 2
call fcn.004065f0
add esp, 0x24
mov edi, dword [eax]
lea esi, [ebp + 0x44]
mov ecx, esi
mov byte [esp + 0x138], 3
call fcn.0051816f
push ebx
push edi
mov ecx, esi
call fcn.004a3260
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x138], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a5926
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x138], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a594e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x138], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a5976
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
push eax
push 0x100
lea edx, [esp + 0x34]
push edx
push 0x57e9e8
push 0x5900a0
push str.Personality
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x2c], 0
je 0x4a5a36
push 1
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.004a83c0
mov esi, eax
push 0x58e1b8
lea edx, [esp + 0x154]
push edx
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x150], 4
mov dword [esp + 0x30], 1
call fcn.00402100
push esi
push eax
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x15c], 5
mov dword [esp + 0x3c], 3
call fcn.004065f0
add esp, 0x24
mov edi, dword [eax]
lea esi, [ebp + 0x1c]
mov ebx, 7
mov ecx, esi
mov dword [esp + 0x138], 6
mov dword [esp + 0x18], ebx
call fcn.0051816f
push 0
push edi
mov ecx, esi
call fcn.004a3260
test eax, eax
mov byte [esp + 0x17], 0
jne 0x4a5a3b
mov byte [esp + 0x17], 1
test bl, 4
mov dword [esp + 0x138], 5
je 0x4a5a72
mov eax, dword [esp + 0x20]
and ebx, 0xfffffffb
add eax, 0xfffffff0
mov dword [esp + 0x18], ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a5a72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, 2
mov dword [esp + 0x138], 4
je 0x4a5aa9
mov eax, dword [esp + 0x1c]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [esp + 0x18], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a5aa9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, 1
mov dword [esp + 0x138], 0
je 0x4a5adc
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
and ebx, 0xfffffffe
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a5adc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x17], 0
je 0x4a5b18
mov eax, dword [esp + 0x144]
add eax, 0xfffffff0
mov dword [esp + 0x138], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a5b11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4a5f69
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
push eax
push 0x100
lea edx, [esp + 0x34]
push edx
push 0x57e9e8
push str.Left
push str.Personality
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x2c], 0
je 0x4a5bd4
push 1
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.004a83c0
mov esi, eax
push 0x58e1b8
lea edx, [esp + 0x154]
push edx
lea eax, [esp + 0x34]
or ebx, 8
push eax
mov byte [esp + 0x150], 7
mov dword [esp + 0x30], ebx
call fcn.00402100
push esi
push eax
lea ecx, [esp + 0x44]
or ebx, 0x10
push ecx
mov dword [esp + 0x15c], 8
mov dword [esp + 0x3c], ebx
call fcn.004065f0
add esp, 0x24
mov edi, dword [eax]
lea esi, [ebp + 0x24]
or ebx, 0x20
mov ecx, esi
mov dword [esp + 0x138], 9
mov dword [esp + 0x18], ebx
call fcn.0051816f
push 0
push edi
mov ecx, esi
call fcn.004a3260
test eax, eax
mov byte [esp + 0x17], 0
jne 0x4a5bd9
mov byte [esp + 0x17], 1
test bl, 0x20
mov dword [esp + 0x138], 8
je 0x4a5c10
mov eax, dword [esp + 0x24]
and ebx, 0xffffffdf
add eax, 0xfffffff0
mov dword [esp + 0x18], ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a5c10
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, 0x10
mov dword [esp + 0x138], 7
je 0x4a5c47
mov eax, dword [esp + 0x20]
and ebx, 0xffffffef
add eax, 0xfffffff0
mov dword [esp + 0x18], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a5c47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, 8
mov dword [esp + 0x138], 0
je 0x4a5c7a
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
and ebx, 0xfffffff7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a5c7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x17], 0
jne 0x4a5ae3
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
push eax
push 0x100
lea edx, [esp + 0x34]
push edx
push 0x57e9e8
push str.Right
push str.Personality
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x2c], 0
je 0x4a5d47
push 1
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.004a83c0
mov esi, eax
push 0x58e1b8
lea edx, [esp + 0x154]
push edx
lea eax, [esp + 0x34]
or ebx, 0x40
push eax
mov byte [esp + 0x150], 0xa
mov dword [esp + 0x30], ebx
call fcn.00402100
push esi
push eax
lea ecx, [esp + 0x44]
or ebx, 0x80
push ecx
mov dword [esp + 0x15c], 0xb
mov dword [esp + 0x3c], ebx
call fcn.004065f0
add esp, 0x24
mov edi, dword [eax]
lea esi, [ebp + 0x2c]
or ebx, 0x100
mov ecx, esi
mov dword [esp + 0x138], 0xc
mov dword [esp + 0x18], ebx
call fcn.0051816f
push 0
push edi
mov ecx, esi
call fcn.004a3260
test eax, eax
mov byte [esp + 0x17], 0
jne 0x4a5d4c
mov byte [esp + 0x17], 1
test ebx, 0x100
mov dword [esp + 0x138], 0xb
je 0x4a5d89
mov eax, dword [esp + 0x24]
and ebx, 0xfffffeff
add eax, 0xfffffff0
mov dword [esp + 0x18], ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a5d89
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
mov dword [esp + 0x138], 0xa
jns 0x4a5dc2
mov eax, dword [esp + 0x20]
and ebx, 0xffffff7f
add eax, 0xfffffff0
mov dword [esp + 0x18], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a5dc2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, 0x40
mov dword [esp + 0x138], 0
je 0x4a5df5
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
and ebx, 0xffffffbf
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a5df5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x17], 0
jne 0x4a5ae3
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
push eax
push 0x100
lea edx, [esp + 0x34]
push edx
push 0x57e9e8
push str.Bottom
push str.Personality
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x2c], 0
je 0x4a5ec5
push 1
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.004a83c0
mov esi, eax
push 0x58e1b8
lea edx, [esp + 0x154]
push edx
lea eax, [esp + 0x34]
or ebx, 0x200
push eax
mov byte [esp + 0x150], 0xd
mov dword [esp + 0x30], ebx
call fcn.00402100
push esi
push eax
lea ecx, [esp + 0x44]
or ebx, 0x400
push ecx
mov dword [esp + 0x15c], 0xe
mov dword [esp + 0x3c], ebx
call fcn.004065f0
add esp, 0x24
mov edi, dword [eax]
lea esi, [ebp + 0x34]
or ebx, 0x800
mov ecx, esi
mov dword [esp + 0x138], 0xf
mov dword [esp + 0x18], ebx
call fcn.0051816f
push 0
push edi
mov ecx, esi
call fcn.004a3260
test eax, eax
mov byte [esp + 0x17], 0
jne 0x4a5eca
mov byte [esp + 0x17], 1
test ebx, 0x800
je 0x4a5ee1
lea ecx, [esp + 0x24]
and ebx, 0xfffff7ff
call fcn.004015d0
test ebx, 0x400
je 0x4a5ef8
lea ecx, [esp + 0x20]
and ebx, 0xfffffbff
call fcn.004015d0
test ebx, 0x200
je 0x4a5f09
lea ecx, [esp + 0x1c]
call fcn.004015d0
cmp byte [esp + 0x17], 0
je 0x4a5f20
lea ecx, [esp + 0x144]
call fcn.004015d0
xor eax, eax
jmp 0x4a5f69
lea ecx, [ebp + 0x1c]
call fcn.0049f270
lea ecx, [ebp + 0x24]
mov dword [ebp + 0x100], eax
call fcn.004941c0
lea ecx, [ebp + 0x2c]
mov dword [ebp + 0x104], eax
call fcn.004941c0
lea ecx, [ebp + 0x34]
mov dword [ebp + 0x108], eax
call fcn.0049f270
lea ecx, [esp + 0x144]
mov dword [ebp + 0x10c], eax
call fcn.004015d0
mov eax, 1
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.0053042b
add esp, 0x128
ret 8