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

Disassembly:
push 0xffffffffffffffff
push 0x4994e4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push ebp
push esi
mov ebp, ecx
push edi
push ebp
lea ecx, [esp + 0x1c]
call fcn.0047693c
mov ecx, dword [ebp + 0x1c]
lea eax, [esp + 0x8c]
xor esi, esi
push eax
push ecx
mov dword [esp + 0x14c], esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], vtable.CFont.0
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
sbb eax, eax
push 0x48
and eax, edi
push 0x5a
push eax
mov byte [esp + 0x150], 1
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
mov dword [esp + 0x9c], eax
mov edi, 0x4ba2ac
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0xa0], esi
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa8], esi
mov dword [esp + 0xac], esi
lea edx, [esp + 0xb8]
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0xb0], 0
shr ecx, 2
mov byte [esp + 0xb1], 0
mov byte [esp + 0xb2], 0
mov byte [esp + 0xb3], 0
mov byte [esp + 0xb4], 4
mov byte [esp + 0xb5], 0
mov byte [esp + 0xb6], 0
mov byte [esp + 0xb7], 0x20
push 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x20]
neg eax
sbb eax, eax
and eax, esi
push eax
call dword [sym.imp.GDI32.dll_SetBkMode]
lea ecx, [esp + 0x9c]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
lea ecx, [esp + 0x3c]
call fcn.00476be4
mov esi, dword [esp + 0x3c]
lea eax, [esp + 0x38]
neg eax
sbb eax, eax
lea ecx, [esp + 0x18]
and eax, esi
mov ebx, dword [esp + 0x1c]
push eax
neg ecx
sbb ecx, ecx
and ecx, ebx
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push ecx
call ebx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x18]
lea edx, [esp + 0x7c]
neg eax
sbb eax, eax
push edx
and eax, ecx
push 7
push str.1000000
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x80]
mov edi, dword [esp + 0x98]
lea edx, [edx + ecx + 0xa]
mov ecx, dword [esp + 0x90]
sub edi, eax
mov dword [esp + 0x2c], eax
lea esi, [ecx + eax + 2]
mov ecx, dword [esp + 0x94]
lea eax, [edi - 2]
mov dword [ebp + 0x54], esi
mov dword [ebp + 0x5c], eax
sub eax, esi
mov dword [ebp + 0x64], eax
mov eax, dword [ebp + 0x78]
mov dword [ebp + 0x58], ecx
xor esi, esi
sub ecx, edx
cmp eax, esi
mov dword [ebp + 0x50], edx
mov dword [ebp + 0x60], ecx
jne 0x421594
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
sbb eax, eax
and eax, edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esp + 0x1c]
mov dword [ebp + 0x78], eax
lea eax, [esp + 0x18]
mov ecx, dword [ebp + 0x60]
neg eax
sbb eax, eax
and eax, edx
mov edx, dword [ebp + 0x64]
push edx
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edx, dword [ebp + 0x78]
push eax
push edx
mov dword [ebp + 0x7c], eax
call ebx
cmp dword [ebp + 0x78], esi
jne 0x421594
mov dword [esp + 0x38], vtable.CGdiObject.0
mov byte [esp + 0x144], 2
jmp 0x421df5
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
sbb eax, eax
push 1
and eax, edi
push eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [ebp + 0x64]
cmp ecx, esi
jle 0x4216a2
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x14]
cdq
idiv ecx
mov ecx, eax
test ecx, ecx
jge 0x4215cb
xor ecx, ecx
jmp 0x4215d8
cmp ecx, 0xff
jle 0x4215d8
mov ecx, 0xff
test eax, eax
mov dword [esp + 0x10], eax
jge 0x4215ea
mov dword [esp + 0x10], 0
jmp 0x4215f9
cmp eax, 0xff
jle 0x4215f9
mov dword [esp + 0x10], 0xff
test eax, eax
jge 0x421601
xor eax, eax
jmp 0x42160d
cmp eax, 0xff
jle 0x42160d
mov eax, 0xff
xor edx, edx
and ecx, 0xff
mov dh, al
mov dl, byte [esp + 0x10]
shl edx, 8
or edx, ecx
lea ecx, [esp + 0x50]
push edx
push 1
push 0
call fcn.00476c51
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x50]
neg eax
sbb eax, eax
and eax, edx
push eax
mov eax, dword [ebp + 0x78]
push eax
call ebx
mov ecx, dword [ebp + 0x78]
push 0
push esi
push 0
push ecx
mov edi, eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [ebp + 0x60]
mov eax, dword [ebp + 0x78]
push esi
push edx
push eax
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [ebp + 0x78]
push edi
push ecx
call ebx
mov dword [esp + 0x50], vtable.CGdiObject.0
lea ecx, [esp + 0x50]
mov byte [esp + 0x144], 3
call fcn.00476c3b
mov ecx, dword [esp + 0x14]
inc esi
add ecx, 0x40
mov byte [esp + 0x144], 1
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 0x64]
cmp esi, ecx
jl 0x4215ba
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
sbb eax, eax
push 0
and eax, esi
push eax
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov edi, str.KB_sec
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
lea edi, [esp + 0xd8]
neg edx
sbb edx, edx
xor eax, eax
and edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 0x54]
mov edi, dword [esp + 0x2c]
not ecx
dec ecx
sub eax, edi
push ecx
lea ecx, [esp + 0xdc]
push ecx
mov ecx, dword [ebp + 0x50]
dec eax
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_TextOutA]
mov esi, dword [sym.imp.GDI32.dll_GetStockObject]
push 7
call esi
mov edx, dword [ebp + 0x78]
push eax
push edx
call ebx
mov edi, eax
push 4
mov dword [esp + 0x44], edi
call esi
push eax
mov eax, dword [ebp + 0x78]
push eax
call ebx
mov ecx, dword [ebp + 0x64]
mov edx, dword [ebp + 0x60]
push ecx
mov esi, eax
mov eax, dword [ebp + 0x78]
push edx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_Rectangle]
mov ecx, dword [ebp + 0x78]
push esi
push ecx
call ebx
mov edx, dword [ebp + 0x78]
push edi
push edx
call ebx
lea eax, [esp + 0x18]
neg eax
mov esi, dword [esp + 0x1c]
push 6
sbb eax, eax
and eax, esi
mov esi, dword [sym.imp.GDI32.dll_SetTextAlign]
push eax
call esi
push 0x707070
xor edi, edi
push 1
push edi
lea ecx, [esp + 0x64]
call fcn.00476c51
push 0x404040
push 1
push edi
lea ecx, [esp + 0x74]
mov byte [esp + 0x150], 4
call fcn.00476c51
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], vtable.CPen.0
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
sbb eax, eax
push 2
and eax, edx
mov byte [esp + 0x148], 6
push eax
call esi
mov eax, dword [ebp + 0x48]
cmp dword [eax + 0x180a8], edi
je 0x4219df
fldlg2
fld qword [0x4a1468]
fyl2x
fst qword [esp + 0x48]
call fcn.004461e8
cmp eax, edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], edi
jl 0x4219df
jmp 0x42180e
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
fild dword [esp + 0x10]
mov dword [esp + 0x14], 1
fstp qword [esp + 0x84]
fld qword [0x49f460]
fld qword [esp + 0x84]
call fcn.00446620
fstp qword [esp + 0x40]
fild dword [esp + 0x14]
mov edi, dword [ebp + 0x64]
mov dword [esp + 0x34], edi
fmul qword [esp + 0x40]
fldlg2
fxch st(1)
fyl2x
fimul dword [esp + 0x34]
fdiv qword [esp + 0x48]
call fcn.004461e8
mov esi, eax
cmp esi, edi
jge 0x4218a5
mov edx, dword [esp + 0x6c]
mov ecx, dword [ebp + 0x78]
lea eax, [esp + 0x68]
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call ebx
mov edx, dword [ebp + 0x64]
mov edi, eax
mov eax, dword [ebp + 0x78]
sub edx, esi
push 0
push edx
push 0
push eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [ebp + 0x64]
mov edx, dword [ebp + 0x60]
mov eax, dword [ebp + 0x78]
sub ecx, esi
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [ebp + 0x78]
push edi
push ecx
call ebx
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0xa
mov dword [esp + 0x14], eax
jl 0x421837
fild dword [ebp + 0x64]
fmul qword [esp + 0x84]
fdiv qword [esp + 0x48]
call fcn.004461e8
mov edx, dword [esp + 0x44]
mov ebx, eax
mov eax, dword [esp + 0x40]
push edx
push eax
lea ecx, [esp + 0xe0]
push str._.0f
push ecx
call fcn.00445f52
mov eax, dword [esp + 0x2c]
lea esi, [esp + 0x28]
add esp, 0x10
lea edi, [esp + 0xd8]
neg esi
sbb esi, esi
or ecx, 0xffffffff
and esi, eax
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0xd8]
not ecx
dec ecx
push ecx
mov ecx, dword [ebp + 0x5c]
push edx
cdq
sub eax, edx
mov edx, dword [ebp + 0x50]
sar eax, 1
sub ecx, eax
sub edx, 5
sub ecx, ebx
push ecx
push edx
push esi
call dword [sym.imp.GDI32.dll_TextOutA]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
mov edx, dword [ebp + 0x50]
mov esi, dword [sym.imp.GDI32.dll_SetPixel]
neg eax
sbb eax, eax
push 0
and eax, ecx
mov ecx, dword [ebp + 0x5c]
sub ecx, ebx
sub edx, 3
push ecx
push edx
push eax
call esi
mov edx, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x5c]
lea eax, [esp + 0x18]
push 0
neg eax
sbb eax, eax
sub ecx, ebx
and eax, edx
mov edx, dword [ebp + 0x50]
sub edx, 4
push ecx
push edx
push eax
call esi
mov edi, dword [esp + 0x5c]
lea eax, [esp + 0x58]
neg eax
sbb eax, eax
and eax, edi
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
mov eax, dword [ebp + 0x78]
push eax
call edi
mov esi, eax
mov ecx, dword [ebp + 0x64]
mov edx, dword [ebp + 0x78]
sub ecx, ebx
push 0
push ecx
push 0
push edx
mov dword [esp + 0x50], esi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [ebp + 0x64]
mov ecx, dword [ebp + 0x60]
mov edx, dword [ebp + 0x78]
sub eax, ebx
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_LineTo]
mov eax, dword [ebp + 0x78]
push esi
push eax
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jle 0x421808
mov esi, dword [sym.imp.GDI32.dll_SetTextAlign]
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
sbb eax, eax
push 6
and eax, edi
push eax
call esi
mov ecx, dword [ebp + 0x60]
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ebx, ebx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
js 0x421ade
xor esi, esi
mov eax, esi
mov ecx, 0x3c
cdq
idiv ecx
mov eax, ebx
push edx
cdq
sub eax, edx
lea edx, [esp + 0xdc]
sar eax, 1
push eax
push str._d:_02d
push edx
call fcn.00445f52
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x28]
add esp, 0x10
lea edi, [esp + 0xd8]
neg edx
sbb edx, edx
or ecx, 0xffffffff
and edx, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0xd8]
push ecx
mov ecx, dword [ebp + 0x5c]
push eax
mov eax, dword [ebp + 0x58]
add ecx, 3
sub eax, esi
push ecx
push eax
push edx
call dword [sym.imp.GDI32.dll_TextOutA]
mov edx, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x5c]
lea eax, [esp + 0x18]
mov edi, dword [sym.imp.GDI32.dll_SetPixel]
neg eax
sbb eax, eax
add ecx, 2
and eax, edx
mov edx, dword [ebp + 0x58]
push 0
sub edx, esi
push ecx
push edx
push eax
call edi
mov edx, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x5c]
lea eax, [esp + 0x18]
push 0
neg eax
sbb eax, eax
add ecx, 3
and eax, edx
mov edx, dword [ebp + 0x58]
sub edx, esi
push ecx
push edx
push eax
call edi
mov ecx, dword [ebp + 0x60]
mov eax, 0x88888889
imul ecx
add edx, ecx
inc ebx
sar edx, 4
mov eax, edx
add esi, 0x1e
shr eax, 0x1f
add edx, eax
cmp ebx, edx
jle 0x421a12
mov eax, dword [ebp + 0x44]
mov ecx, dword [eax + 0x108]
mov edx, dword [eax + 0x104]
push ecx
push edx
call fcn.00421210
add esp, 8
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 2
mov eax, dword [ebp + 0x48]
xor ebx, ebx
mov edi, dword [eax + 0x5c]
mov eax, dword [ebp + 0x60]
test eax, eax
mov dword [esp + 0x2c], edi
jle 0x421c4e
fldlg2
fld qword [0x4a1468]
fyl2x
fstp qword [esp + 0x48]
jmp 0x421b2e
mov edi, dword [esp + 0x2c]
mov esi, dword [ebp + 0x48]
mov ecx, 0xa
mov eax, dword [esi + edi*8 + 0xa0]
mov edx, dword [esi + edi*8 + 0xa4]
call fcn.00446c20
test eax, eax
mov dword [esp + 0x14], eax
jge 0x421b59
mov dword [esp + 0x14], 0
mov eax, dword [esi + edi*8 + 0xc0a8]
mov edx, dword [esi + edi*8 + 0xc0ac]
mov ecx, 0xa
call fcn.00446c20
test eax, eax
mov dword [esp + 0x10], eax
jge 0x421b81
mov dword [esp + 0x10], 0
fild dword [ebp + 0x64]
fldlg2
fild dword [esp + 0x14]
fyl2x
fdiv qword [esp + 0x48]
fmul st(1)
call fcn.004461e8
fldlg2
mov esi, eax
fild dword [esp + 0x10]
fyl2x
fdiv qword [esp + 0x48]
fmul st(1)
call fcn.004461e8
mov edi, eax
mov eax, dword [esp + 0x14]
test eax, eax
mov eax, dword [esp + 0x10]
fstp st(0)
je 0x421c0b
test eax, eax
je 0x421bfc
mov ecx, dword [esp + 0x30]
cmp esi, edi
push ecx
push 0
jge 0x421be1
push esi
push ebx
mov ecx, ebp
call fcn.004212a0
mov edx, dword [ebp + 0x44]
mov eax, dword [edx + 0x108]
push eax
push esi
jmp 0x421c1b
push edi
push ebx
mov ecx, ebp
call fcn.004212a0
cmp esi, edi
je 0x421c24
mov edx, dword [ebp + 0x44]
mov eax, dword [edx + 0x104]
push eax
push edi
push esi
jmp 0x421c1c
mov ecx, dword [ebp + 0x44]
mov edx, dword [ecx + 0x104]
push edx
push 0
push esi
jmp 0x421c1c
test eax, eax
je 0x421c24
mov eax, dword [ebp + 0x44]
mov ecx, dword [eax + 0x108]
push ecx
push 0
push edi
push ebx
mov ecx, ebp
call fcn.004212a0
mov edx, dword [esp + 0x2c]
add edx, 0xfff
and edx, 0x80000fff
jns 0x421c3e
dec edx
or edx, 0xfffff000
inc edx
mov eax, dword [ebp + 0x60]
inc ebx
cmp ebx, eax
mov dword [esp + 0x2c], edx
jl 0x421b2a
mov eax, dword [esp + 0x40]
mov ecx, dword [ebp + 0x78]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x34]
dec eax
mov dword [esp + 0x34], eax
jne 0x421b03
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x70]
lea eax, [esp + 0x18]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
neg eax
sbb eax, eax
push edx
and eax, ecx
push eax
call edi
mov edx, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x78]
lea eax, [esp + 0x18]
push 0xcc0020
neg eax
sbb eax, eax
push 0
and eax, edx
mov edx, dword [ebp + 0x64]
push 0
push ecx
mov ecx, dword [ebp + 0x60]
push edx
mov edx, dword [ebp + 0x54]
push ecx
mov ecx, dword [ebp + 0x50]
push edx
push ecx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
push 0
push 2
push 0
lea ecx, [esp + 0x6c]
call fcn.00476c51
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x60]
neg eax
mov esi, dword [esp + 0x1c]
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0x18]
neg ecx
sbb ecx, ecx
push eax
and ecx, esi
push ecx
call edi
mov edx, dword [esp + 0x1c]
mov ebx, eax
lea eax, [esp + 0x18]
mov ecx, dword [ebp + 0x50]
neg eax
sbb eax, eax
push 0
and eax, edx
mov edx, dword [ebp + 0x54]
dec edx
dec ecx
push edx
push ecx
push eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
mov ecx, dword [ebp + 0x58]
mov esi, dword [sym.imp.GDI32.dll_LineTo]
neg eax
sbb eax, eax
and eax, edx
mov edx, dword [ebp + 0x54]
dec edx
inc ecx
push edx
push ecx
push eax
call esi
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
sbb eax, eax
mov ecx, dword [ebp + 0x58]
and eax, edx
mov edx, dword [ebp + 0x5c]
inc edx
inc ecx
push edx
push ecx
push eax
call esi
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
mov ecx, dword [ebp + 0x50]
neg eax
sbb eax, eax
and eax, edx
mov edx, dword [ebp + 0x5c]
inc edx
dec ecx
push edx
push ecx
push eax
call esi
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
mov ecx, dword [ebp + 0x50]
neg eax
sbb eax, eax
and eax, edx
mov edx, dword [ebp + 0x54]
dec edx
dec ecx
push edx
push ecx
push eax
call esi
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
sbb eax, eax
push ebx
and eax, esi
push eax
call edi
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x60], esi
lea ecx, [esp + 0x60]
mov byte [esp + 0x144], 7
call fcn.00476c3b
mov dword [esp + 0x74], esi
lea ecx, [esp + 0x74]
mov byte [esp + 0x144], 8
call fcn.00476c3b
mov dword [esp + 0x68], esi
lea ecx, [esp + 0x68]
mov byte [esp + 0x144], 9
call fcn.00476c3b
mov dword [esp + 0x58], esi
lea ecx, [esp + 0x58]
mov byte [esp + 0x144], 0xa
call fcn.00476c3b
mov dword [esp + 0x38], esi
mov byte [esp + 0x144], 0xb
lea ecx, [esp + 0x38]
call fcn.00476c3b
lea ecx, [esp + 0x18]
mov dword [esp + 0x144], 0xffffffff
call fcn.004769ae
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x138
ret