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

Disassembly:
push 0xffffffffffffffff
push 0x440282
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push ebp
push esi
xor esi, esi
push edi
mov ebp, ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], vtable.CFont.0
mov ebx, dword [esp + 0x128]
push 0x48
push 0x5a
push ebx
mov dword [esp + 0x12c], esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
mov dword [esp + 0x70], eax
mov edi, str.Arial
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
lea edx, [esp + 0x8c]
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0x84], 0
shr ecx, 2
mov byte [esp + 0x85], 0
mov byte [esp + 0x86], 0
mov byte [esp + 0x87], 0
mov byte [esp + 0x88], 4
mov byte [esp + 0x89], 0
mov byte [esp + 0x8a], 0
mov byte [esp + 0x8b], 0x20
push 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.GDI32.dll_SetBkMode]
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
lea ecx, [esp + 0x30]
call fcn.00438d27
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
neg eax
sbb eax, eax
and eax, edx
push eax
push ebx
call esi
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x60]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0x58]
push ecx
push 4
push str.9999
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x28], edx
lea edi, [ecx + eax]
mov eax, dword [esp + 0x68]
sub eax, ecx
mov ecx, dword [esp + 0x6c]
sub ecx, edx
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x70], ecx
sub eax, edi
sub ecx, edx
push 1
push ebx
mov dword [ebp + 0x64], edi
mov dword [esp + 0x6c], edx
mov dword [ebp + 0x68], edx
mov dword [ebp + 0x74], eax
mov dword [ebp + 0x78], ecx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov edi, dword [sym.imp.GDI32.dll_GetStockObject]
push 7
call edi
push eax
push ebx
call esi
push 4
mov dword [esp + 0x20], eax
call edi
push eax
push ebx
call esi
mov ecx, dword [ebp + 0x70]
mov edx, dword [ebp + 0x6c]
mov edi, eax
mov eax, dword [ebp + 0x68]
push ecx
mov ecx, dword [ebp + 0x64]
push edx
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_Rectangle]
push edi
push ebx
call esi
mov edx, dword [esp + 0x1c]
push edx
push ebx
call esi
push 6
push ebx
call dword [sym.imp.GDI32.dll_SetTextAlign]
push 0x707070
push 1
push 0
lea ecx, [esp + 0x48]
call fcn.00438d94
push 0x404040
push 1
push 0
lea ecx, [esp + 0x40]
mov byte [esp + 0x12c], 1
call fcn.00438d94
xor edi, edi
mov byte [esp + 0x120], 2
mov dword [esp + 0x18], edi
mov ecx, dword [ebp + 0x74]
mov eax, 0x66666667
imul ecx, edi
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [ebp + 0x64]
add edx, eax
mov eax, edi
and eax, 1
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], eax
jne 0x40aeed
lea ecx, [edi + edi*4]
lea edx, [esp + 0xb4]
push ecx
push 0x4530f4
push edx
call fcn.0041f5b7
add esp, 0xc
cmp edi, 0x14
jne 0x40aea7
mov edi, 0x4530f0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0xb4]
push ecx
mov ecx, dword [ebp + 0x70]
push eax
push ecx
push edx
push ebx
call dword [sym.imp.GDI32.dll_TextOutA]
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x3c]
neg eax
sbb eax, eax
and eax, edx
push eax
push ebx
call esi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
jmp 0x40af03
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x34]
neg eax
sbb eax, eax
and eax, edx
push eax
push ebx
call esi
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x68]
mov ecx, dword [esp + 0x14]
push 0
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [ebp + 0x70]
mov eax, dword [esp + 0x24]
sub edx, eax
mov eax, dword [esp + 0x14]
add edx, 2
push edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
call esi
inc edi
cmp edi, 0x15
mov dword [esp + 0x18], edi
jl 0x40ae23
mov edx, dword [ebp + 0x40]
lea eax, [esp + 0xb4]
push edx
push 0x4530f4
push eax
call fcn.0041f5b7
lea edi, [esp + 0xc0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
fld qword [0x443d40]
not ecx
dec ecx
add ecx, 0xfffffffe
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
call fcn.00420530
call fcn.0041fa80
mov ecx, eax
mov eax, dword [ebp + 0x40]
cdq
idiv ecx
mov dword [esp + 0x30], ecx
inc eax
push eax
mov dword [esp + 0x20], eax
call fcn.004094f0
mov ecx, dword [esp + 0x20]
mov edi, eax
mov eax, ecx
add esp, 0x10
cdq
idiv edi
mov dword [esp + 0x1c], edi
mov edx, eax
imul edx, edi
cmp edx, ecx
jge 0x40afb9
inc eax
mov ecx, eax
imul ecx, edi
imul ecx, dword [esp + 0x24]
mov dword [ebp + 0x44], ecx
lea ecx, [eax + eax]
mov eax, ecx
mov dword [esp + 0x14], ecx
cdq
sub eax, edx
mov edx, dword [ebp + 0x4c]
sar eax, 1
mov dword [esp + 0x10], eax
lea eax, [edx + ecx - 1]
cdq
idiv ecx
imul eax, ecx
mov ecx, dword [esp + 0x10]
cdq
lea ecx, [ecx + ecx*4]
idiv ecx
imul eax, dword [esp + 0x10]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x14]
imul eax, edi
mov dword [ebp + 0x50], edx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fild dword [ebp + 0x44]
fmul qword [0x443d48]
fdivp st(1)
fcom qword [0x443e68]
fst qword [esp + 0x50]
fnstsw ax
test ah, 1
je 0x40b043
fild dword [esp + 0x1c]
fdiv st(1)
call fcn.0041fa80
fstp st(0)
fld qword [0x443e68]
mov edi, eax
fst qword [esp + 0x50]
mov eax, dword [esp + 0x14]
imul eax, edi
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul qword [0x443e60]
fdiv st(1)
call fcn.0041fa80
mov dword [ebp + 0x44], eax
mov eax, dword [esp + 0x14]
test eax, eax
fstp st(0)
mov dword [esp + 0x18], 0
jle 0x40b24b
fild dword [esp + 0x14]
mov eax, dword [esp + 0x10]
neg edi
fstp qword [esp + 0xac]
mov dword [esp + 0x48], edi
mov dword [esp + 0x10], eax
fild dword [ebp + 0x78]
fimul dword [esp + 0x18]
fdiv qword [esp + 0xac]
fiadd dword [ebp + 0x68]
call fcn.0041fa80
mov ecx, dword [esp + 0x18]
mov edi, eax
mov eax, ecx
mov dword [esp + 0x4c], edi
and eax, 1
mov dword [esp + 0x24], eax
jne 0x40b1e1
cmp ecx, dword [esp + 0x14]
jge 0x40b1e1
push 2
push ebx
call dword [sym.imp.GDI32.dll_SetTextAlign]
fild dword [esp + 0x10]
fmul qword [0x4439d0]
fstp qword [esp + 0x1c]
fld qword [esp + 0x50]
fcomp qword [0x443e68]
fnstsw ax
test ah, 0x40
je 0x40b10b
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
push edx
lea eax, [esp + 0xbc]
push str._.0f
push eax
jmp 0x40b126
fld qword [esp + 0x1c]
fdiv qword [esp + 0x50]
sub esp, 8
lea ecx, [esp + 0xbc]
fstp qword [esp]
push str._.1f
push ecx
call fcn.0041f5b7
mov eax, dword [esp + 0x38]
or ecx, 0xffffffff
cdq
sub eax, edx
mov edx, edi
sar eax, 1
sub edx, eax
lea edi, [esp + 0xc4]
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0xb4]
push ecx
mov ecx, dword [ebp + 0x64]
push eax
sub ecx, 5
push edx
push ecx
push ebx
mov dword [esp + 0x30], edx
call dword [sym.imp.GDI32.dll_TextOutA]
push 0
push ebx
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov ecx, dword [ebp + 0x50]
mov eax, ecx
imul eax, dword [esp + 0x18]
cdq
idiv dword [esp + 0x14]
lea edx, [esp + 0xb4]
sub ecx, eax
push ecx
push 0x4530f4
push edx
call fcn.0041f5b7
lea edi, [esp + 0xc0]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov edx, dword [ebp + 0x6c]
lea eax, [esp + 0xb4]
not ecx
dec ecx
add edx, 5
push ecx
mov ecx, dword [esp + 0x20]
push eax
push ecx
push edx
push ebx
call dword [sym.imp.GDI32.dll_TextOutA]
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x3c]
neg eax
sbb eax, eax
and eax, edx
push eax
push ebx
call esi
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x1c], eax
jmp 0x40b1f7
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x34]
neg eax
sbb eax, eax
and eax, edx
push eax
push ebx
call esi
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x64]
mov ecx, dword [esp + 0x24]
push 0
push edi
lea edx, [ecx + eax - 2]
push edx
push ebx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [ebp + 0x6c]
push edi
sub eax, dword [esp + 0x28]
add eax, 3
push eax
push ebx
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
call esi
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
add edi, edx
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edi
jl 0x40b091
push 0
push ebx
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov edi, str.MB_sec
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [ebp + 0x68]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, dword [ebp + 0x64]
push ecx
lea ecx, [esp + 0xb8]
push ecx
mov ecx, dword [esp + 0x30]
sub edx, ecx
push edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_TextOutA]
push 2
push ebx
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov edi, 0x453c2c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [ebp + 0x68]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, dword [ebp + 0x6c]
push ecx
lea ecx, [esp + 0xb8]
push ecx
mov ecx, dword [esp + 0x30]
sub edx, ecx
push edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_TextOutA]
mov ecx, dword [esp + 0x44]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov al, byte [ebp + 0x60]
test al, al
je 0x40b385
mov eax, dword [ebp + 0x5c]
xor esi, esi
mov ecx, dword [eax + 0x199]
test ecx, ecx
jle 0x40b34b
mov edx, dword [eax + esi*4 + 0x19d]
mov ecx, ebp
push edx
push esi
call fcn.0040b460
mov eax, dword [ebp + 0x5c]
inc esi
cmp esi, dword [eax + 0x199]
jl 0x40b32f
mov eax, dword [ebp + 0x5c]
xor esi, esi
mov ecx, dword [eax + 0x4d1]
test ecx, ecx
jle 0x40b385
mov ecx, dword [eax + esi*8 + 0x4d9]
mov edx, dword [eax + esi*8 + 0x4d5]
mov eax, dword [eax + esi*4 + 0x1dd5]
push ecx
push edx
push eax
mov ecx, ebp
call fcn.0040b5c0
mov eax, dword [ebp + 0x5c]
inc esi
cmp esi, dword [eax + 0x4d1]
jl 0x40b35a
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x34], esi
lea ecx, [esp + 0x34]
mov byte [esp + 0x120], 3
call fcn.00438d7e
mov dword [esp + 0x3c], esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x120], 4
call fcn.00438d7e
mov dword [esp + 0x2c], esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x120], 5
call fcn.00438d7e
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x114
ret 4