Function at 0x404ac0
Capabilities:
Check for peb beingdebugged flag
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4d032c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push ebp
push esi
mov esi, ecx
push edi
push esi
lea ecx, [esp + 0x24]
call fcn.004928bb
xor ebx, ebx
mov dword [esp + 0x130], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], vtable.CFont.0
mov eax, dword [esp + 0x24]
push 0x48
push 0x5a
push eax
mov byte [esp + 0x13c], 1
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [str.Arial]
mov dx, word [0x4d9fac]
mov edi, dword [sym.imp.GDI32.dll_SetBkMode]
neg eax
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov byte [esp + 0x9c], bl
mov byte [esp + 0x9d], bl
mov byte [esp + 0x9e], bl
mov byte [esp + 0x9f], bl
mov byte [esp + 0xa1], bl
mov byte [esp + 0xa2], bl
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x24]
mov ebx, 2
push ebx
push eax
mov byte [esp + 0xa8], 4
mov byte [esp + 0xab], 0x20
mov dword [esp + 0xac], ecx
mov word [esp + 0xb0], dx
call edi
lea ecx, [esp + 0x88]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
lea ecx, [esp + 0x40]
call fcn.00492aef
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x24]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x24]
mov ebp, 1
push ebp
push ecx
mov dword [esp + 0x54], eax
call edi
mov eax, dword [esi + 0x54]
mov edi, dword [esp + 0x138]
lea edx, [esp + 0x58]
push edx
push eax
push edi
call fcn.0045e420
mov edx, dword [esp + 0x30]
add esp, 0xc
lea ecx, [esp + 0x34]
push ecx
push 4
push str.1000
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
mov eax, 3
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov eax, dword [esi + 0x98]
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov ebp, dword [esp + eax*4 + 0x5c]
push edi
mov ecx, esi
call fcn.004045e0
mov edi, eax
mov eax, dword [esi + 0xb0]
cdq
idiv ebp
mov edx, dword [esi + 0x98]
push 0
push 0xefefef
mov ecx, eax
lea eax, [edx + ebp - 1]
cdq
idiv ebp
mov ebx, eax
mov eax, dword [esi + 0xb4]
cdq
idiv ebx
mov dword [esp + 0x20], eax
mov eax, edi
cdq
idiv ebp
mov ebx, edx
imul ebx, ecx
lea edx, [ebx + ecx]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x20]
imul eax, edx
mov dword [esp + 0x20], eax
add eax, edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x3c]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
sub ecx, dword [esp + 0x3c]
sub ecx, 3
mov dword [esi + edi*4 + 0xb8], ecx
mov eax, dword [esi + 0x98]
lea eax, [eax + ebp - 1]
cdq
idiv ebp
mov ecx, eax
mov eax, dword [esi + 0xb4]
cdq
idiv ecx
mov ecx, dword [esp + 0x40]
lea edx, [ecx + ecx + 6]
sub eax, edx
mov edx, dword [esi + edi*4 + 0xb8]
mov dword [esi + edi*4 + 0xe0], eax
mov eax, dword [esp + 0x3c]
lea eax, [ebx + eax + 4]
mov dword [esi + edi*4 + 0x108], eax
lea eax, [eax + edx - 2]
mov edx, dword [esp + 0x20]
mov dword [esi + edi*4 + 0x130], eax
lea eax, [edx + ecx + 2]
mov ecx, dword [esi + edi*4 + 0xe0]
add ecx, eax
mov dword [esi + edi*4 + 0x158], eax
mov eax, dword [esp + 0x1c]
push eax
mov dword [esi + edi*4 + 0x180], ecx
mov ecx, dword [esp + 0x1c]
push ecx
push edx
mov edx, dword [esp + 0x38]
push ebx
push edx
mov ecx, esi
call fcn.004049e0
mov eax, dword [esi + edi*4 + 0x180]
mov ecx, dword [esi + edi*4 + 0x130]
mov edx, dword [esi + edi*4 + 0x158]
push 0
push 0xffffff
push eax
mov eax, dword [esi + edi*4 + 0x108]
add ecx, 1
push ecx
mov ecx, dword [esp + 0x34]
sub edx, 1
push edx
sub eax, 1
push eax
push ecx
mov ecx, esi
call fcn.004049e0
mov edx, dword [esp + 0x24]
mov ebp, dword [sym.imp.GDI32.dll_SetTextAlign]
push 0
push edx
call ebp
lea eax, [esp + 0x58]
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x404da0
mov edx, dword [esi + edi*4 + 0x108]
sub eax, ecx
mov ecx, dword [esi + edi*4 + 0x158]
sub ecx, dword [esp + 0x38]
push eax
lea eax, [esp + 0x5c]
push eax
mov eax, dword [esp + 0x2c]
sub ecx, 1
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_TextOutA]
push 0x707070
push 1
push 2
lea ecx, [esp + 0x50]
call fcn.00492c83
mov eax, dword [esp + 0x48]
xor ebx, ebx
cmp eax, ebx
mov byte [esp + 0x130], 2
je 0x404e09
mov ecx, dword [esp + 0x24]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x18], eax
jmp 0x404e0d
mov dword [esp + 0x18], ebx
mov edx, dword [esp + 0x138]
mov eax, dword [esi + edx*4 + 0x70]
push eax
mov ecx, esi
call fcn.004047f0
mov ecx, dword [esp + 0x24]
push 2
push ecx
mov dword [esp + 0x18], eax
call ebp
cmp dword [esp + 0x10], ebx
jl 0x404f6a
jmp 0x404e40
mov eax, dword [esi + edi*4 + 0xe0]
imul eax, ebx
cdq
idiv dword [esp + 0x10]
mov ebp, dword [esi + edi*4 + 0x180]
mov edx, ebx
sub ebp, eax
sub ebp, 1
and edx, 0x80000001
jns 0x404e6a
dec edx
or edx, 0xfffffffe
inc edx
jne 0x404f57
test ebx, ebx
je 0x404f28
mov eax, dword [esp + 0x138]
cmp eax, 7
jne 0x404ebd
mov eax, dword [esi + 0x8c]
imul eax, ebx
cdq
idiv dword [esp + 0x10]
sub esp, 8
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
lea eax, [esp + 0xcc]
fdiv qword [0x4da238]
fstp qword [esp]
push str._.0f
push eax
call fcn.004b09b2
add esp, 0x10
jmp 0x404edf
mov eax, dword [esi + eax*4 + 0x70]
imul eax, ebx
cdq
idiv dword [esp + 0x10]
lea ecx, [esp + 0xc4]
push eax
push 0x4da260
push ecx
call fcn.004b09b2
add esp, 0xc
lea eax, [esp + 0xc4]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404ef0
sub eax, edx
push eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0xc8]
push edx
cdq
sub eax, edx
mov edx, dword [esi + edi*4 + 0x108]
sar eax, 1
mov ecx, ebp
sub ecx, eax
mov eax, dword [esp + 0x2c]
push ecx
sub edx, 3
push edx
push eax
call dword [sym.imp.GDI32.dll_TextOutA]
mov ecx, dword [esi + edi*4 + 0x108]
push ebp
sub ecx, 1
push ecx
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x2c]
call fcn.00492531
mov eax, dword [esi + edi*4 + 0x130]
push ebp
sub eax, 2
push eax
lea ecx, [esp + 0x28]
call fcn.004921d9
add ebx, 1
cmp ebx, dword [esp + 0x10]
jle 0x404e40
mov ebp, dword [sym.imp.GDI32.dll_SetTextAlign]
mov ecx, dword [esp + 0x24]
push 6
push ecx
call ebp
mov ecx, dword [esi + 0x64]
xor ebp, ebp
test ecx, ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ecx
jl 0x4050a6
jmp 0x404f90
mov eax, dword [esi + edi*4 + 0xb8]
imul eax, ebp
cdq
idiv ecx
mov ebx, eax
add ebx, dword [esi + edi*4 + 0x108]
mov eax, 0x66666667
imul ebp
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*4]
mov eax, ebp
sub eax, edx
jne 0x405090
mov eax, 0x66666667
imul ebp
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
add ecx, ecx
mov edx, ebp
sub edx, ecx
jne 0x40505b
fld qword [0x4da238]
sub esp, 8
fcomp qword [esi + 0x58]
fnstsw ax
fild dword [esp + 0x18]
test ah, 5
fmul qword [esi + 0x58]
fidiv dword [esp + 0x1c]
fstp qword [esp]
push str._.0f
jp 0x40500f
lea eax, [esp + 0xd0]
push eax
jmp 0x405017
lea ecx, [esp + 0xd0]
push ecx
call fcn.004b09b2
lea eax, [esp + 0xd4]
add esp, 0x10
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405030
mov ecx, dword [esp + 0x24]
sub eax, edx
push eax
mov eax, dword [esi + edi*4 + 0x180]
lea edx, [esp + 0xc8]
push edx
add eax, 1
push eax
push ebx
push ecx
call dword [sym.imp.GDI32.dll_TextOutA]
test ebp, ebp
jle 0x405090
cmp ebp, dword [esi + 0x64]
jge 0x405090
mov edx, dword [esi + edi*4 + 0x158]
push edx
push ebx
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x2c]
call fcn.00492531
mov ecx, dword [esi + edi*4 + 0x180]
add ecx, 2
push ecx
push ebx
lea ecx, [esp + 0x28]
call fcn.004921d9
mov ecx, dword [esi + 0x64]
add ebp, 1
cmp ebp, ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ecx
jle 0x404f90
cmp dword [esi + 0x6c], 0
je 0x40519f
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push edx
push eax
call ebx
push 0x505050
push 1
push 0
lea ecx, [esp + 0x24]
call fcn.00492c83
mov eax, dword [esp + 0x1c]
test eax, eax
mov byte [esp + 0x130], 3
je 0x4050f0
mov ecx, dword [esp + 0x24]
push eax
push ecx
call ebx
mov ebp, eax
jmp 0x4050f2
xor ebp, ebp
mov edx, dword [esi + 0x6c]
mov eax, dword [edx + 0x10]
imul dword [esi + edi*4 + 0xb8]
mov ecx, eax
mov eax, dword [esi + 0x60]
mov ebx, edx
cdq
push edx
push eax
push ebx
push ecx
call fcn.004b0d50
mov edx, dword [esi + edi*4 + 0x158]
mov ebx, eax
add ebx, dword [esi + edi*4 + 0x108]
push edx
push ebx
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x2c]
call fcn.00492531
mov ecx, dword [esi + edi*4 + 0x180]
push ecx
push ebx
lea ecx, [esp + 0x28]
call fcn.004921d9
test ebp, ebp
je 0x405152
mov edx, dword [esp + 0x24]
push ebp
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebp, dword [esp + 0x138]
mov edi, ebp
imul edi, edi, 0x1770
xor ebx, ebx
add edi, 0x24
mov eax, dword [esi + 0x6c]
cmp dword [edi + eax], 0
je 0x405178
push ebx
push ebp
mov ecx, esi
call fcn.004052d0
add ebx, 1
add edi, 4
cmp ebx, 0x5dc
jl 0x405166
lea ecx, [esp + 0x18]
mov byte [esp + 0x130], 2
mov dword [esp + 0x18], vtable.CPen.0
call fcn.00402cb0
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x24]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [esp + 0x44]
mov byte [esp + 0x130], 1
mov dword [esp + 0x44], vtable.CPen.0
call fcn.00402cb0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x130], 0
mov dword [esp + 0x3c], vtable.CFont.0
call fcn.00402cb0
lea ecx, [esp + 0x20]
mov dword [esp + 0x130], 0xffffffff
call fcn.0049290f
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret 4