Function at 0x470110
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x130
push ebx
push ebp
push esi
push edi
mov ebp, ecx
xor eax, eax
xor ebx, ebx
mov byte [esp + 0x38], bl
mov ecx, 0x40
lea edi, [esp + 0x39]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x38]
push 0x104
push eax
mov byte [ebp + 0x1cc0], 0
mov byte [ebp + 0x1cc1], 0
mov dword [ebp + 0x1cc4], ebx
call fcn.004ab591
lea edi, [esp + 0x40]
add esp, 8
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x470163
mov ecx, dword [str._ini.ini]
mov edx, dword [0x4bbc80]
mov al, byte [0x4bbc84]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov byte [edi + 8], al
xor ecx, ecx
mov dword [esp + 0x19], ecx
mov dword [esp + 0x1d], ecx
mov dword [esp + 0x21], ecx
mov dword [esp + 0x25], ecx
mov dword [esp + 0x29], ecx
mov dword [esp + 0x2d], ecx
inc ebx
push ebx
mov dword [esp + 0x35], ecx
lea edx, [esp + 0x1c]
mov word [esp + 0x39], cx
push str.msg_d
push edx
mov byte [esp + 0x24], 0
mov byte [esp + 0x43], cl
call dword [sym.imp.USER32.dll_wsprintfA]
movzx ecx, byte [ebp + 0x1cc0]
add esp, 0xc
add ecx, 0x6b
lea eax, [esp + 0x38]
push eax
push 0x40
shl ecx, 6
add ecx, ebp
push ecx
push 0x4bb448
lea edx, [esp + 0x28]
push edx
push str.MSGTICKER
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [ebp + 0x1cc0]
movzx esi, al
add esi, 0x6b
shl esi, 6
add esi, ebp
mov edi, 0x4bb448
mov ecx, 1
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x47021a
inc al
mov byte [ebp + 0x1cc0], al
cmp ebx, 8
jl 0x470184
mov al, byte [ebp + 0x1cc0]
test al, al
je 0x4703de
mov eax, dword [ebp + 0x1abc]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push eax
call dword [ecx + 0x44]
test eax, eax
jl 0x4703de
mov eax, dword [esp + 0x10]
push 1
push eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [0x652e00]
mov eax, dword [ecx + 8]
mov edx, dword [esp + 0x10]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x14], eax
mov al, byte [ebp + 0x1cc0]
xor ebx, ebx
test al, al
jbe 0x470301
xor edi, edi
lea esi, [ebp + 0x1ac0]
jmp 0x470290
mov eax, dword [esp + 0x10]
push 0x121212
push eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4702a5
mov edx, dword [esp + 0x10]
sub eax, ecx
push eax
push esi
lea ecx, [edi + 1]
push ecx
push 1
push edx
call dword [sym.imp.GDI32.dll_TextOutA]
mov eax, dword [esp + 0x10]
push 0xffffff
push eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4702d6
sub eax, ecx
mov ecx, dword [esp + 0x10]
push eax
push esi
push edi
push 0
push ecx
call dword [sym.imp.GDI32.dll_TextOutA]
movzx edx, byte [ebp + 0x1cc0]
inc ebx
add esi, 0x40
add edi, 0xc
cmp ebx, edx
jl 0x470290
mov eax, dword [esp + 0x10]
push 0x121212
push eax
call dword [sym.imp.GDI32.dll_SetTextColor]
lea edi, [ebp + 0x1ac0]
mov eax, edi
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x470320
mov edx, dword [esp + 0x10]
sub eax, esi
push eax
lea esi, [ebx + ebx*2]
mov ebx, dword [sym.imp.GDI32.dll_TextOutA]
push edi
shl esi, 2
lea ecx, [esi + 1]
push ecx
push 1
push edx
call ebx
mov eax, dword [esp + 0x10]
push 0xffffff
push eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, edi
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x470360
sub eax, ecx
mov ecx, dword [esp + 0x10]
push eax
push edi
push esi
push 0
push ecx
call ebx
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp + 0x1abc]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x68]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebp + 0x1cc8], 0
mov ecx, dword [0xec0e0c]
mov edx, dword [ecx]
mov esi, dword [edx + 0x362a0]
mov eax, 0x280
sub eax, esi
mov dword [ebp + 0x1cd0], eax
movzx eax, byte [ebp + 0x1cc1]
lea eax, [eax + eax*2]
shl eax, 2
mov dword [ebp + 0x1ccc], eax
add eax, 0xc
mov dword [ebp + 0x1cd4], eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret