Function at 0x474b70
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4fd1af
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x800
mov eax, dword [0x531d28]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x820]
mov dword [esp + 0x80c], eax
lea eax, [esp + 0x14]
push edi
xor ebx, ebx
push eax
mov esi, ecx
mov dword [esp + 0x20], ebx
call fcn.00479d80
add esp, 8
mov dword [esi + 0x7c], ebx
mov ecx, dword [0x50f778]
mov edx, dword [0x50f77c]
mov al, byte [0x50f780]
push edi
push 0x3e8
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x42c]
push ecx
push 0x502a56
mov dword [esp + 0x50], edx
push str.ScrollBar
lea edx, [esp + 0x50]
push edx
mov dword [esp + 0x830], ebx
mov byte [esp + 0x5c], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x424]
test al, al
je 0x474c77
push 1
lea eax, [esp + 0x428]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.00479e30
push eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0x830], 1
mov dword [esp + 0x30], 1
call fcn.004092f0
add esp, 0x18
mov ebp, dword [eax]
lea edi, [esi + 0x70]
mov ebx, 3
mov ecx, edi
mov dword [esp + 0x818], 2
mov dword [esp + 0x18], ebx
call fcn.004ed255
push 0
push ebp
mov ecx, edi
call fcn.004631c0
test eax, eax
mov byte [esp + 0x13], 0
jne 0x474c7c
mov byte [esp + 0x13], 1
or ebp, 0xffffffff
test bl, 2
mov dword [esp + 0x818], 1
je 0x474cb3
mov eax, dword [esp + 0x34]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [esp + 0x18], ebx
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x474cb3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, 1
mov dword [esp + 0x818], 0
je 0x474ce0
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x474ce0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, byte [esp + 0x13]
test al, al
je 0x474d11
mov eax, dword [esp + 0x14]
mov dword [esp + 0x818], ebp
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x474d0a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x474de3
mov ebx, dword [sym.imp.GDI32.dll_GetObjectA]
lea edi, [esi + 0x70]
test edi, edi
je 0x474d25
mov eax, dword [edi + 4]
test eax, eax
jne 0x474d29
xor ecx, ecx
jmp 0x474d51
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x2c], ecx
push 0x18
mov dword [esp + 0x34], ecx
push eax
mov dword [esp + 0x3c], ecx
call ebx
mov ecx, dword [esp + 0x24]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
test edi, edi
mov dword [esi + 0x78], eax
je 0x474d6d
mov edi, dword [edi + 4]
test edi, edi
jne 0x474d71
xor edx, edx
jmp 0x474d99
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x2c], ecx
push 0x18
mov dword [esp + 0x34], ecx
push edi
mov dword [esp + 0x3c], ecx
call ebx
mov edx, dword [esp + 0x20]
mov ecx, dword [esi + 0x78]
mov eax, 0x2aaaaaab
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x818], ebp
jne 0x474cf3
add eax, 0xfffffff0
mov dword [esi + 0x60], ecx
mov dword [esi + 0x7c], 1
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x474dde
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0x810]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x800]
pop ebx
call fcn.004d40be
add esp, 0x80c
ret 8