Function at 0x4119a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x94
push ebx
push ebp
push esi
mov esi, dword [esp + 0xa4]
lea eax, [esp + 0x30]
push edi
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
push esi
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [esp + 0x4c], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [0x64b094]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov ebp, eax
push ecx
push ebp
call ebx
push 0
mov dword [esp + 0x58], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
lea edx, [esp + 0x34]
push eax
push edx
push ebp
call dword [sym.imp.USER32.dll_FillRect]
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
sub edi, ecx
mov eax, 0x92492493
imul edi
add edx, edi
mov esi, dword [esp + 0x40]
sar edx, 4
mov eax, edx
mov dword [esp + 0x30], 0x20
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x38]
sub esi, edx
mov eax, esi
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
mov eax, ecx
mov dword [esp + 0x2c], ecx
cdq
and edx, 3
add edx, eax
mov eax, ecx
sar edx, 2
sub eax, edx
mov dword [esp + 0x20], eax
mov eax, edi
cdq
idiv dword [esp + 0x24]
mov edi, eax
mov eax, esi
cdq
idiv ecx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x44], edi
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x1c], edx
imul eax, edi
test eax, eax
mov dword [esp + 0x50], eax
jle 0x411c3e
mov eax, dword [esp + 0x20]
neg eax
mov dword [esp + 0x20], eax
jmp 0x411aaa
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
add edx, eax
mov eax, dword [esp + 0x14]
add eax, ecx
push 5
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push ebp
call ebx
push 0
push 0
push 0
mov esi, eax
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
push ebp
call ebx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
push ebp
call dword [sym.imp.GDI32.dll_Rectangle]
push esi
push ebp
call ebx
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
push ebp
call ebx
xor eax, eax
mov ecx, 8
lea edi, [esp + 0x84]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov byte [esp + 0x7c], al
mov byte [esp + 0x7d], al
mov byte [esp + 0x7e], al
mov byte [esp + 0x7f], 2
mov byte [esp + 0x80], al
mov byte [esp + 0x81], al
mov byte [esp + 0x82], al
mov byte [esp + 0x83], al
rep stosd dword es:[edi], eax
mov edi, dword [0x4e5150]
or ecx, 0xffffffff
mov dword [esp + 0x68], edx
lea edx, [esp + 0x84]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x68]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov esi, eax
push esi
push ebp
call ebx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x30]
mov byte [esp + 0x5c], al
inc eax
push 1
push ebp
mov byte [esp + 0x65], 0
mov dword [esp + 0x38], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov dword [esp + 0x4c], eax
lea edi, [esp + 0x5c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea edx, [esp + 0x10]
push 1
dec ecx
push edx
lea eax, [esp + 0x64]
push ecx
push eax
push ebp
call dword [sym.imp.USER32.dll_DrawTextA]
mov ecx, dword [esp + 0x4c]
push ecx
push ebp
call dword [sym.imp.GDI32.dll_SetBkMode]
mov edx, dword [esp + 0x58]
push edx
push ebp
call ebx
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
add ecx, eax
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x28]
inc ecx
mov eax, ecx
cdq
idiv dword [esp + 0x44]
test edx, edx
jne 0x411c2e
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x14]
add edx, eax
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x50]
mov dword [esp + 0x28], ecx
cmp ecx, eax
jl 0x411aa6
mov ecx, dword [esp + 0x54]
push ecx
push ebp
call ebx
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0xa8]
push edx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret