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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d4398
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
push ebp
push esi
mov esi, ecx
push edi
push esi
lea ecx, [esp + 0x20]
call fcn.004928bb
cmp dword [esi + 0x60], 0
mov dword [esp + 0x13c], 0
je 0x46b674
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x60]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x60]
mov dword [esi + 0x68], eax
lea eax, [esp + 0xb0]
push eax
push 5
mov dword [esi + 0x6c], ecx
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x64], edx
mov edx, dword [esp + 0x74]
push 0x4e3238
push ecx
mov dword [esi + 0x70], edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [esp + 0xb4]
mov ebp, dword [esp + 0x60]
mov edi, dword [esp + 0x68]
lea ebx, [eax + eax*2]
mov eax, dword [esp + 0x6c]
sub eax, ebx
sub eax, dword [esp + 0x64]
sub edi, ebp
cdq
sub eax, edx
mov ecx, eax
lea eax, [ebp + 1]
mov ebp, dword [esi + 0x68]
mov dword [esi + 0x74], eax
add eax, edi
mov dword [esi + 0x80], eax
mov eax, ebx
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
sar ecx, 1
lea eax, [ebx + ebp]
mov dword [esi + 0x78], eax
add eax, ecx
mov dword [esi + 0x8c], edi
mov dword [esi + 0x84], eax
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x64]
lea edi, [esi + 0x78]
cdq
sub eax, edx
sar eax, 1
add eax, ebp
add ebx, eax
mov dword [esi + 0x7c], ebx
add ebx, ecx
mov dword [esi + 0x90], ecx
push 0x11
lea ecx, [esp + 0x20]
mov dword [esi + 0x88], ebx
call fcn.00492b8b
mov edx, dword [esp + 0x20]
push 1
push edx
mov dword [esp + 0xb4], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x60]
push 0
push eax
call fcn.0043d570
mov ecx, dword [esi + 0x60]
mov ebx, eax
push 8
push ecx
mov dword [esp + 0xb8], ebx
call fcn.0043d570
mov edx, dword [esi + 0x60]
push 1
mov dword [esp + 0x98], eax
push edx
call fcn.0043d570
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x60]
push 2
push eax
call fcn.0043d570
add esp, 0x20
mov dword [esp + 0x34], eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], vtable.CBrush.0
push 0xffffff
mov byte [esp + 0x140], 1
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x54]
call fcn.00492aef
push 0
push 1
push 0
lea ecx, [esp + 0x94]
call fcn.00492c83
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x20]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push ecx
push edx
mov byte [esp + 0x144], 2
call ebp
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x3c]
push eax
push 1
push 0
lea ecx, [esp + 0x7c]
call fcn.00492c83
mov ecx, dword [esp + 0x34]
push ecx
push 1
push 0
lea ecx, [esp + 0x84]
mov byte [esp + 0x148], 3
call fcn.00492c83
mov edx, dword [esp + 0x20]
push 6
push edx
mov byte [esp + 0x144], 4
call dword [sym.imp.GDI32.dll_SetTextAlign]
fld qword [0x4e3230]
mov dword [esp + 0x38], 0x2710
mov dword [esp + 0x30], 0
call fcn.004b0c40
fst qword [esp + 0x58]
call fcn.004b0540
mov dword [esp + 0x3c], eax
jmp 0x46af27
mov ebx, dword [esp + 0xa8]
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call ebp
mov edx, dword [esi + 0x60]
cmp dword [edx + 0x4a0], 0
mov dword [esp + 0x10], eax
je 0x46b1a0
mov eax, dword [esp + 0x84]
movzx edx, ah
movzx ecx, al
shr eax, 0x10
movzx eax, al
mov dword [esp + 0x34], eax
movzx eax, bl
sub eax, ecx
mov dword [esp + 0x94], ecx
movzx ecx, bh
shr ebx, 0x10
sub ecx, edx
mov dword [esp + 0x18], edx
movzx edx, bl
sub edx, dword [esp + 0x34]
xor ebx, ebx
cmp dword [esi + 0x90], ebx
jle 0x46b0ca
imul eax, dword [esp + 0x30]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x30]
imul ecx, eax
imul edx, eax
mov dword [esp + 0xa0], ecx
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x90]
mov ecx, dword [esi + 0x90]
cdq
idiv ecx
add eax, dword [esp + 0x94]
mov dword [esp + 0x10], eax
jns 0x46afd6
mov dword [esp + 0x10], 0
jmp 0x46afe5
cmp eax, 0xff
jle 0x46afe5
mov dword [esp + 0x10], 0xff
mov eax, dword [esp + 0xa0]
cdq
idiv ecx
add eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
jns 0x46b003
mov dword [esp + 0x14], 0
jmp 0x46b012
cmp eax, 0xff
jle 0x46b012
mov dword [esp + 0x14], 0xff
mov eax, dword [esp + 0x40]
cdq
idiv ecx
add eax, dword [esp + 0x34]
jns 0x46b023
xor eax, eax
jmp 0x46b02f
cmp eax, 0xff
jle 0x46b02f
mov eax, 0xff
movzx edx, byte [esp + 0x10]
xor ecx, ecx
mov ch, al
mov cl, byte [esp + 0x14]
shl ecx, 8
or ecx, edx
push ecx
push 1
push 0
lea ecx, [esp + 0x54]
call fcn.00492c83
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x20]
push eax
push ecx
mov byte [esp + 0x144], 5
call ebp
mov edx, dword [edi]
add edx, ebx
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x74]
push edx
push eax
lea ecx, [esp + 0xc8]
push ecx
lea ecx, [esp + 0x28]
call fcn.00492531
mov edx, dword [edi]
mov eax, dword [esi + 0x80]
add edx, ebx
push edx
push eax
lea ecx, [esp + 0x24]
call fcn.004921d9
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
push ecx
push edx
call ebp
lea ecx, [esp + 0x48]
mov byte [esp + 0x13c], 4
mov dword [esp + 0x48], vtable.CPen.0
call fcn.00402cb0
add ebx, 1
cmp ebx, dword [esi + 0x90]
jl 0x46afaf
push 0
push 2
push 0
lea ecx, [esp + 0xa4]
call fcn.00492c83
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x20]
push eax
push ecx
mov byte [esp + 0x144], 6
call ebp
mov edx, dword [edi]
mov ebx, eax
mov eax, dword [esi + 0x74]
sub edx, 1
push edx
sub eax, 1
push eax
lea ecx, [esp + 0xc0]
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], ebx
call fcn.00492531
mov edx, dword [edi]
mov eax, dword [esi + 0x80]
sub edx, 1
push edx
add eax, 1
push eax
lea ecx, [esp + 0x24]
call fcn.004921d9
mov ecx, dword [edi + 0xc]
mov edx, dword [esi + 0x80]
add ecx, 1
push ecx
add edx, 1
push edx
lea ecx, [esp + 0x24]
call fcn.004921d9
mov eax, dword [edi + 0xc]
mov ecx, dword [esi + 0x74]
add eax, 1
sub ecx, 1
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.004921d9
mov edx, dword [edi]
mov eax, dword [esi + 0x74]
sub edx, 1
push edx
sub eax, 1
push eax
lea ecx, [esp + 0x24]
call fcn.004921d9
mov ecx, dword [esp + 0x20]
push ebx
push ecx
call ebp
lea ecx, [esp + 0x98]
mov byte [esp + 0x13c], 4
mov dword [esp + 0x98], vtable.CPen.0
call fcn.00402cb0
jmp 0x46b1bd
mov edx, dword [edi + 0xc]
mov eax, dword [esi + 0x80]
mov ecx, dword [edi]
push edx
mov edx, dword [esi + 0x74]
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_Rectangle]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
push ecx
push edx
call ebp
mov ecx, 1
mov dword [esp + 0x14], ecx
jmp 0x46b1e4
mov ecx, dword [esp + 0x14]
mov ebx, dword [esi + 0x8c]
imul ebx, ecx
mov eax, 0x88888889
imul ebx
add edx, ebx
sar edx, 3
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
add ebx, dword [esi + 0x74]
cmp ecx, 1
jle 0x46b20d
cmp ecx, 0xb
jl 0x46b212
cmp ecx, 0xd
jne 0x46b26e
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call ebp
mov edx, dword [esp + 0x14]
add edx, 1
push edx
lea eax, [esp + 0xcc]
push 0x4de4d8
push eax
call fcn.004b09b2
lea eax, [esp + 0xd4]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x46b245
sub eax, edx
mov edx, dword [edi + 0xc]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0xcc]
push ecx
add edx, 4
push edx
push ebx
push eax
call dword [sym.imp.GDI32.dll_TextOutA]
jmp 0x46b27a
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x20]
push ecx
push edx
call ebp
mov eax, dword [edi]
mov ecx, dword [esp + 0x20]
push 0
push eax
push ebx
push ecx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [edi + 0xc]
mov eax, dword [esp + 0x20]
push edx
push ebx
push eax
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
push ecx
push edx
call ebp
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, 0xf
mov dword [esp + 0x14], eax
jl 0x46b1e0
cmp dword [esp + 0x3c], 0
mov dword [esp + 0x18], 0
jl 0x46b3f1
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call ebp
fild dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 1
fst qword [esp + 0xa0]
fld qword [0x4da238]
fxch st(1)
call fcn.004b3ef0
fstp qword [esp + 0x40]
fild dword [esp + 0x14]
mov edx, dword [esi + 0x90]
mov dword [esp + 0x34], edx
fmul qword [esp + 0x40]
call fcn.004b0c40
fimul dword [esp + 0x34]
fdiv qword [esp + 0x58]
call fcn.004b0540
mov ebx, eax
cmp ebx, dword [esp + 0x34]
jge 0x46b35d
mov eax, dword [edi + 0xc]
mov ecx, dword [esi + 0x74]
mov edx, dword [esp + 0x20]
push 0
sub eax, ebx
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [edi + 0xc]
mov ecx, dword [esi + 0x80]
mov edx, dword [esp + 0x20]
sub eax, ebx
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_LineTo]
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, 0xa
mov dword [esp + 0x14], eax
jl 0x46b302
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call ebp
fild dword [esi + 0x90]
fmul qword [esp + 0xa0]
fdiv qword [esp + 0x58]
call fcn.004b0540
mov edx, dword [esp + 0x74]
mov ebx, eax
mov eax, dword [esp + 0x20]
push edx
push eax
call ebp
mov ecx, dword [edi + 0xc]
mov edx, dword [esi + 0x74]
push 0
sub ecx, ebx
push ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
push edx
push eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [edi + 0xc]
mov edx, dword [esi + 0x80]
mov eax, dword [esp + 0x20]
sub ecx, ebx
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
push ecx
push edx
call ebp
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
jle 0x46b2ce
mov eax, dword [esp + 0x30]
add eax, 1
add edi, 4
cmp eax, 2
mov dword [esp + 0x30], eax
jl 0x46af20
cmp byte [esi + 0x5c], 0
je 0x46b5e7
mov eax, dword [esi + 0x60]
push 5
push eax
call fcn.0043d570
add esp, 8
push eax
push 1
push 0
lea ecx, [esp + 0x4c]
call fcn.00492c83
mov ecx, dword [esi + 0x60]
push 6
push ecx
mov byte [esp + 0x144], 7
call fcn.0043d570
add esp, 8
push eax
push 1
push 0
lea ecx, [esp + 0x54]
call fcn.00492c83
mov eax, dword [esi + 0x58]
mov edx, dword [esi + 0x54]
sub edx, eax
mov edi, 0x400
nop
mov ecx, dword [edx + eax]
cmp ecx, dword [esp + 0x38]
jle 0x46b46d
mov dword [esp + 0x38], ecx
mov ecx, dword [eax]
cmp ecx, dword [esp + 0x38]
jle 0x46b479
mov dword [esp + 0x38], ecx
add eax, 4
sub edi, 1
jne 0x46b460
mov ebx, 0x100
mov dword [esp + 0x30], edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esi + 0x8c]
imul ecx, dword [esp + 0x30]
mov eax, 0x44567d77
imul ecx
sar edx, 8
mov edi, edx
shr edi, 0x1f
add edi, edx
mov edx, dword [esi + 0x54]
mov eax, dword [ebx + edx]
add edi, dword [esi + 0x74]
test eax, eax
mov dword [esp + 0x18], eax
jle 0x46b5a6
fild dword [esp + 0x38]
call fcn.004b0c40
fstp qword [esp + 0x58]
fild dword [esp + 0x18]
call fcn.004b0c40
fdiv qword [esp + 0x58]
fimul dword [esi + 0x90]
call fcn.004b0540
mov ebx, dword [esi + 0x84]
mov ecx, dword [esp + 0x20]
sub ebx, eax
mov eax, dword [esp + 0x44]
push eax
push ecx
sub ebx, 1
call ebp
mov edx, dword [esp + 0x20]
push 0
push ebx
push edi
push edx
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [esi + 0x84]
mov ecx, dword [esp + 0x20]
sub eax, 1
push eax
push edi
push ecx
call dword [sym.imp.GDI32.dll_LineTo]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
push edx
push eax
call ebp
mov ecx, dword [esi + 0x58]
mov edx, dword [esp + 0x14]
mov eax, dword [edx + ecx]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
call fcn.004b0c40
fdiv qword [esp + 0x58]
fimul dword [esi + 0x90]
call fcn.004b0540
mov ecx, dword [esp + 0x4c]
mov ebx, dword [esi + 0x88]
mov edx, dword [esp + 0x20]
push ecx
sub ebx, eax
push edx
sub ebx, 1
call ebp
push 0
push ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
push edi
push eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [esi + 0x88]
mov edx, dword [esp + 0x20]
sub ecx, 1
push ecx
push edi
push edx
call dword [sym.imp.GDI32.dll_LineTo]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call ebp
mov ebx, dword [esp + 0x14]
add dword [esp + 0x30], 1
add ebx, 4
cmp ebx, 0x1000
mov dword [esp + 0x14], ebx
jl 0x46b48e
mov esi, vtable.CPen.0
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], esi
call fcn.00402cb0
lea ecx, [esp + 0x40]
mov byte [esp + 0x13c], 4
mov dword [esp + 0x40], esi
call fcn.00402cb0
jmp 0x46b5ec
mov esi, vtable.CPen.0
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x20]
push edx
push eax
call ebp
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
push ecx
push edx
call ebp
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call ebp
lea ecx, [esp + 0x78]
mov byte [esp + 0x13c], 3
mov dword [esp + 0x78], esi
call fcn.00402cb0
lea ecx, [esp + 0x70]
mov byte [esp + 0x13c], 2
mov dword [esp + 0x70], esi
call fcn.00402cb0
lea ecx, [esp + 0x88]
mov byte [esp + 0x13c], 1
mov dword [esp + 0x88], esi
call fcn.00402cb0
lea ecx, [esp + 0x50]
mov byte [esp + 0x13c], 0
mov dword [esp + 0x50], vtable.CBrush.0
call fcn.00402cb0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x13c], 0xffffffff
call fcn.0049290f
mov ecx, dword [esp + 0x134]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret