Function at 0x4a1170
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x572e19
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.Dlg_Top
push str.Personality
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x2c], bl
je 0x4a1294
push 1
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.004a83c0
mov esi, eax
push 0x58e1b8
lea ecx, [esp + 0x154]
push ecx
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0x150], 1
mov dword [esp + 0x30], 1
call fcn.00402100
push esi
push eax
lea eax, [esp + 0x3c]
mov edi, 3
push eax
mov dword [esp + 0x15c], 2
mov dword [esp + 0x3c], edi
call fcn.004065f0
add esp, 0x24
lea esi, [ebp + 0x20]
mov dword [esp + 0x138], edi
mov edi, dword [eax]
mov ebx, 7
mov ecx, esi
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 0x4a1299
mov byte [esp + 0x17], 1
test bl, 4
mov dword [esp + 0x138], 2
je 0x4a12d0
mov eax, dword [esp + 0x1c]
and ebx, 0xfffffffb
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 0x4a12d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, 2
mov dword [esp + 0x138], 1
je 0x4a1307
mov eax, dword [esp + 0x20]
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 0x4a1307
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 0x4a133a
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 0x4a133a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x17], 0
je 0x4a1376
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 0x4a136f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4a17c7
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
push eax
push 0x100
lea edx, [esp + 0x34]
push edx
push 0x57e9e8
push str.Dlg_Left
push str.Personality
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x2c], 0
je 0x4a1432
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], 4
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], 5
mov dword [esp + 0x3c], ebx
call fcn.004065f0
add esp, 0x24
mov edi, dword [eax]
lea esi, [ebp + 0x28]
or ebx, 0x20
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 0x4a1437
mov byte [esp + 0x17], 1
test bl, 0x20
mov dword [esp + 0x138], 5
je 0x4a146e
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 0x4a146e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, 0x10
mov dword [esp + 0x138], 4
je 0x4a14a5
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 0x4a14a5
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 0x4a14d8
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 0x4a14d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x17], 0
jne 0x4a1341
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
push eax
push 0x100
lea edx, [esp + 0x34]
push edx
push 0x57e9e8
push str.Dlg_Right
push str.Personality
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x2c], 0
je 0x4a15a5
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], 7
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], 8
mov dword [esp + 0x3c], ebx
call fcn.004065f0
add esp, 0x24
mov edi, dword [eax]
lea esi, [ebp + 0x30]
or ebx, 0x100
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 0x4a15aa
mov byte [esp + 0x17], 1
test ebx, 0x100
mov dword [esp + 0x138], 8
je 0x4a15e7
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 0x4a15e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
mov dword [esp + 0x138], 7
jns 0x4a1620
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 0x4a1620
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 0x4a1653
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 0x4a1653
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x17], 0
jne 0x4a1341
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
push eax
push 0x100
lea edx, [esp + 0x34]
push edx
push 0x57e9e8
push str.Dlg_Bottom
push str.Personality
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x2c], 0
je 0x4a1723
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], 0xa
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], 0xb
mov dword [esp + 0x3c], ebx
call fcn.004065f0
add esp, 0x24
mov edi, dword [eax]
lea esi, [ebp + 0x38]
or ebx, 0x800
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 0x4a1728
mov byte [esp + 0x17], 1
test ebx, 0x800
je 0x4a173f
lea ecx, [esp + 0x24]
and ebx, 0xfffff7ff
call fcn.004015d0
test ebx, 0x400
je 0x4a1756
lea ecx, [esp + 0x20]
and ebx, 0xfffffbff
call fcn.004015d0
test ebx, 0x200
je 0x4a1767
lea ecx, [esp + 0x1c]
call fcn.004015d0
cmp byte [esp + 0x17], 0
je 0x4a177e
lea ecx, [esp + 0x144]
call fcn.004015d0
xor eax, eax
jmp 0x4a17c7
lea ecx, [ebp + 0x20]
call fcn.0049f270
lea ecx, [ebp + 0x28]
mov dword [ebp + 0x104], eax
call fcn.004941c0
lea ecx, [ebp + 0x30]
mov dword [ebp + 0x108], eax
call fcn.004941c0
lea ecx, [ebp + 0x38]
mov dword [ebp + 0x10c], eax
call fcn.0049f270
lea ecx, [esp + 0x144]
mov dword [ebp + 0x110], 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