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

Disassembly:
push 0xffffffffffffffff
push 0x5aeec0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
push esi
mov esi, ecx
lea ecx, [esp + 0x48]
push edi
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x18]
xor ebx, ebx
mov dword [esp + 0x44], vtable.CFont.0
mov dword [esp + 0x48], ebx
lea edx, [esi + 0x8c]
mov dword [esp + 0x64], ebx
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
lea ecx, [esp + 0x48]
call fcn.0057997c
mov edi, dword [esp + 0x6c]
lea ecx, [esp + 0x44]
push ecx
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x28]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x80]
cmp eax, ebx
jne 0x4e6a16
mov ecx, dword [edi + 4]
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x70]
push 1
push eax
push ecx
mov byte [esp + 0x7c], 0x41
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov edx, dword [esp + 0x3c]
mov dword [esi + 0x80], edx
mov eax, dword [esp + 0x58]
cdq
idiv dword [esi + 0x80]
mov ebx, eax
mov eax, dword [esi + 0x104]
inc ebx
cmp eax, 0xffffffff
mov dword [esp + 0x30], ebx
je 0x4e6a3b
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x30]
mov eax, dword [esi + 0x108]
cmp eax, 0xffffffff
je 0x4e6a4e
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x2c]
mov eax, dword [edi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextColor]
mov ecx, dword [edi + 8]
mov dword [esp + 0x1c], eax
push ecx
call dword [sym.imp.GDI32.dll_GetBkColor]
mov edx, dword [esi + 0xcc]
mov dword [esp + 0x20], eax
mov dword [esp + 0x6c], edx
mov ecx, dword [esi + 0xcc]
mov eax, dword [esi + 0x20]
add ecx, ebx
cmp eax, ecx
jl 0x4e6a85
mov eax, ecx
cmp edx, eax
jge 0x4e6e34
lea ebx, [esi + 0x18]
push edx
mov ecx, ebx
call fcn.0043cde0
mov edx, dword [eax]
lea ecx, [esi + 0x54]
push edx
mov dword [esp + 0x14], eax
xor ebp, ebp
call fcn.004d1650
mov ecx, ebx
mov dword [esp + 0x18], eax
call fcn.004e6330
test al, al
je 0x4e6b00
mov ebx, dword [esp + 0x6c]
mov eax, dword [esi + 0x34]
cmp ebx, eax
jl 0x4e6b00
cmp ebx, dword [esi + 0x38]
jg 0x4e6b00
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x4e6b00
mov ecx, dword [esi + 0x80]
push 0x800000
mov eax, ecx
push ecx
cdq
and edx, 3
add eax, edx
mov edx, dword [esi + 0xcc]
sub ebx, edx
imul ebx, ecx
sar eax, 2
push eax
push ebx
push 4
mov ecx, edi
call fcn.005891d8
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0xc]
dec edx
test edx, edx
jle 0x4e6e20
mov eax, dword [esp + 0x18]
lea ecx, [esi + 0x54]
push eax
call fcn.004d1690
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
mov ebx, dword [ecx + 0xc]
sub ebx, ebp
dec ebx
test eax, eax
je 0x4e6b3f
mov edx, eax
mov eax, dword [edx]
mov edx, dword [ecx]
sub eax, edx
sub eax, ebp
cmp ebx, eax
jb 0x4e6b3f
mov ebx, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4e6b91
test byte [eax + 0xc], 1
je 0x4e6b67
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
jne 0x4e6b5b
mov eax, dword [esi + 0x104]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x30]
mov eax, dword [esp + 0x18]
test byte [eax + 0xc], 2
je 0x4e6b85
mov eax, dword [eax + 8]
cmp eax, 0xffffffff
jne 0x4e6b7b
mov eax, dword [esi + 0x108]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x2c]
jmp 0x4e6b91
mov ecx, dword [esp + 0x20]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x2c]
lea ecx, [esi + 0x18]
call fcn.004e6330
test al, al
je 0x4e6db3
mov eax, dword [esi + 0x34]
mov ecx, dword [esp + 0x6c]
cmp ecx, eax
jl 0x4e6db3
mov edx, dword [esi + 0x38]
cmp ecx, edx
jg 0x4e6db3
cmp ecx, eax
jne 0x4e6bc6
mov eax, dword [esi + 0x2c]
sub eax, ebp
jmp 0x4e6bc8
xor eax, eax
cmp ecx, edx
jne 0x4e6bd3
mov ecx, dword [esi + 0x30]
sub ecx, ebp
jmp 0x4e6bdb
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 0xc]
dec ecx
test ecx, ecx
mov dword [esp + 0x14], ecx
jl 0x4e6d8f
xor ecx, ecx
test eax, eax
setl cl
dec ecx
and eax, ecx
cmp eax, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
jl 0x4e6c01
mov dword [esp + 0x28], ebx
mov edx, dword [edi + 8]
push edx
call dword [sym.imp.GDI32.dll_GetBkColor]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x34], eax
push dword [esp + 0x34]
mov eax, dword [esi + 0x80]
mov edx, dword [ecx + 8]
push eax
mov eax, dword [esp + 0x30]
mov ecx, dword [edx + ebp*4]
add eax, ebp
mov edx, dword [edx + eax*4]
mov eax, dword [esp + 0x74]
sub edx, ecx
push edx
mov edx, dword [esi + 0xcc]
sub eax, edx
mov edx, dword [esi + 0xc8]
imul eax, dword [esi + 0x80]
sub ecx, edx
push eax
add ecx, 4
push ecx
mov ecx, edi
call fcn.005891d8
cmp ebx, dword [esp + 0x24]
jle 0x4e6e06
mov edx, dword [edi]
push 0xffffff
mov ecx, edi
call dword [edx + 0x30]
mov eax, dword [edi]
push 0x800000
mov ecx, edi
call dword [eax + 0x2c]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
mov ecx, ebx
sub eax, edx
sub ecx, edx
cmp ecx, eax
mov dword [esp + 0x28], ecx
jl 0x4e6c93
mov dword [esp + 0x28], eax
mov ecx, dword [edi + 8]
push ecx
call dword [sym.imp.GDI32.dll_GetBkColor]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esi + 0x80]
mov ecx, dword [edx + 8]
mov edx, dword [esp + 0x28]
add edx, ebp
push eax
mov eax, dword [esp + 0x30]
mov ecx, dword [ecx + edx*4]
mov edx, dword [esp + 0x2c]
add edx, eax
mov eax, dword [esp + 0x18]
add edx, ebp
mov eax, dword [eax + 8]
mov edx, dword [eax + edx*4]
mov eax, dword [esp + 0x74]
sub edx, ecx
push edx
mov edx, dword [esi + 0xcc]
sub eax, edx
mov edx, dword [esi + 0xc8]
imul eax, dword [esi + 0x80]
sub ecx, edx
push eax
add ecx, 4
push ecx
mov ecx, edi
call fcn.005891d8
cmp ebx, dword [esp + 0x14]
jl 0x4e6e06
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4e6d4d
test byte [eax + 0xc], 1
je 0x4e6d27
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
jne 0x4e6d1b
mov eax, dword [esi + 0x104]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x30]
mov eax, dword [esp + 0x18]
test byte [eax + 0xc], 2
je 0x4e6d3f
mov eax, dword [eax + 8]
cmp eax, 0xffffffff
jne 0x4e6d3b
mov eax, dword [esi + 0x108]
mov edx, dword [edi]
jmp 0x4e6d5f
mov ecx, dword [esp + 0x20]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x2c]
jmp 0x4e6d65
mov eax, dword [esp + 0x1c]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x30]
mov edx, dword [edi]
mov eax, dword [esp + 0x20]
push eax
mov ecx, edi
call dword [edx + 0x2c]
mov ecx, dword [edi + 8]
push ecx
call dword [sym.imp.GDI32.dll_GetBkColor]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add ecx, ebp
mov dword [esp + 0x34], eax
mov edx, dword [edx + 8]
mov eax, dword [esi + 0x80]
push dword [esp + 0x34]
mov ecx, dword [edx + ecx*4]
jmp 0x4e6dd5
mov ecx, dword [edi + 8]
push ecx
call dword [sym.imp.GDI32.dll_GetBkColor]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x80]
push dword [esp + 0x34]
mov edx, dword [edx + 8]
mov ecx, dword [edx + ebp*4]
jmp 0x4e6dd5
mov ecx, dword [edi + 8]
push ecx
call dword [sym.imp.GDI32.dll_GetBkColor]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x80]
push dword [esp + 0x34]
mov edx, dword [edx + 8]
mov ecx, dword [edx + ebp*4]
push eax
lea eax, [ebx + ebp]
mov edx, dword [edx + eax*4]
mov eax, dword [esp + 0x74]
sub edx, ecx
push edx
mov edx, dword [esi + 0xcc]
sub eax, edx
imul eax, dword [esi + 0x80]
push eax
mov eax, dword [esi + 0xc8]
sub ecx, eax
add ecx, 4
push ecx
mov ecx, edi
call fcn.005891d8
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
add ebp, ebx
mov dword [esp + 0x18], ecx
mov eax, dword [edx + 0xc]
dec eax
cmp ebp, eax
jl 0x4e6b10
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x30]
inc eax
mov dword [esp + 0x6c], eax
mov edx, eax
jmp 0x4e6a74
mov eax, dword [esp + 0x1c]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x30]
mov eax, dword [esp + 0x20]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x2c]
push 1
mov ecx, edi
call fcn.00578faf
mov ecx, dword [esi + 0xcc]
mov dword [esp + 0x38], eax
mov dword [esp + 0x6c], ecx
mov edx, dword [esi + 0xcc]
mov eax, dword [esi + 0x20]
lea ecx, [edx + ebx]
cmp eax, ecx
jl 0x4e6e75
mov eax, ecx
cmp dword [esp + 0x6c], eax
jge 0x4e71ed
mov eax, dword [esp + 0x6c]
lea ecx, [esi + 0x18]
push eax
call fcn.0043cde0
mov ecx, dword [esi + 8]
mov ebx, eax
mov dword [esp + 0x34], ecx
lea ecx, [esi + 0x54]
mov edx, dword [ebx]
mov dword [esp + 0x10], 0
push edx
call fcn.004d1650
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0xc]
dec eax
test eax, eax
jle 0x4e7151
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
lea eax, [ecx + edx*2]
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esi + 0x54]
mov dword [esp + 0x28], eax
call fcn.004d1690
mov ebp, dword [ebx + 0xc]
mov ecx, dword [esp + 0x10]
sub ebp, ecx
mov dword [esp + 0x2c], eax
dec ebp
test eax, eax
mov dword [esp + 0x18], ebp
je 0x4e6f02
mov ecx, dword [ebx]
mov edx, eax
mov eax, dword [edx]
mov edx, dword [esp + 0x10]
sub eax, ecx
sub eax, edx
cmp ebp, eax
jb 0x4e6f02
mov ebp, eax
mov dword [esp + 0x18], ebp
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4e6f58
test byte [eax + 0xc], 1
je 0x4e6f2a
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
jne 0x4e6f1e
mov eax, dword [esi + 0x104]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x30]
mov eax, dword [esp + 0x14]
test byte [eax + 0xc], 2
je 0x4e6f46
mov eax, dword [eax + 8]
cmp eax, 0xffffffff
jne 0x4e6f3e
mov eax, dword [esi + 0x108]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x2c]
mov eax, dword [esp + 0x14]
push edi
lea ecx, [esp + 0x48]
push eax
push ecx
mov ecx, esi
call fcn.004e7330
lea ecx, [esi + 0x18]
call fcn.004e6330
test al, al
je 0x4e7189
mov ecx, dword [esi + 0x34]
mov eax, dword [esp + 0x6c]
cmp eax, ecx
jl 0x4e7189
mov edx, dword [esi + 0x38]
cmp eax, edx
jg 0x4e7189
cmp eax, ecx
jne 0x4e6f8f
mov ecx, dword [esi + 0x2c]
sub ecx, dword [esp + 0x10]
jmp 0x4e6f91
xor ecx, ecx
cmp eax, edx
jne 0x4e6fa0
mov eax, dword [esi + 0x30]
mov edx, dword [esp + 0x10]
sub eax, edx
jmp 0x4e6fa4
mov eax, dword [ebx + 0xc]
dec eax
test eax, eax
mov dword [esp + 0x28], eax
jl 0x4e7163
mov eax, dword [esp + 0x14]
xor edx, edx
test ecx, ecx
setl dl
dec edx
and edx, ecx
test eax, eax
mov ebp, edx
je 0x4e6fe2
test byte [eax + 0xc], 1
je 0x4e6fee
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
jne 0x4e6fd8
mov eax, dword [esi + 0x104]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x30]
jmp 0x4e6fee
mov ecx, dword [esp + 0x1c]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x30]
mov eax, dword [esp + 0x18]
cmp ebp, eax
jge 0x4e6ff8
mov eax, ebp
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
push ebx
push eax
mov eax, dword [ebx]
push edx
lea edx, [ecx + eax*2]
mov eax, dword [esp + 0x78]
mov ecx, dword [esi + 0xcc]
push edx
sub eax, ecx
mov ecx, esi
imul eax, dword [esi + 0x80]
push eax
push edi
call fcn.004e6610
cmp dword [esp + 0x18], ebp
jle 0x4e712f
mov edx, dword [edi]
push 0xffffff
mov ecx, edi
call dword [edx + 0x30]
mov eax, dword [edi]
push 0x800000
mov ecx, edi
call dword [eax + 0x2c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
sub eax, ebp
sub ecx, ebp
cmp ecx, eax
jge 0x4e7059
mov eax, ecx
mov ecx, dword [esp + 0x10]
push ebx
push eax
mov eax, dword [ebx]
lea edx, [ecx + ebp]
add ebp, eax
mov eax, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x78]
lea ecx, [eax + ebp*2]
mov eax, dword [esi + 0xcc]
sub edx, eax
push ecx
imul edx, dword [esi + 0x80]
push edx
push edi
mov ecx, esi
call fcn.004e6610
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
jl 0x4e712f
mov eax, dword [esp + 0x1c]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x30]
mov eax, dword [esp + 0x20]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x2c]
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x4e70f3
test byte [ebp + 0xc], 1
je 0x4e70d7
mov eax, dword [ebp + 4]
cmp eax, 0xffffffff
jne 0x4e70cf
mov eax, dword [esi + 0x104]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x30]
test byte [ebp + 0xc], 2
je 0x4e70f3
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x4e70eb
mov eax, dword [esi + 0x108]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x2c]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
mov ebp, dword [esi + 0xcc]
sub ecx, eax
push ebx
push ecx
lea ecx, [eax + edx]
mov edx, dword [ebx]
push ecx
mov ecx, dword [esp + 0x78]
add eax, edx
mov edx, dword [esp + 0x30]
sub ecx, ebp
imul ecx, dword [esi + 0x80]
lea eax, [edx + eax*2]
push eax
push ecx
push edi
mov ecx, esi
call fcn.004e6610
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov edx, dword [ebx + 0xc]
mov ecx, dword [esp + 0x2c]
add eax, ebp
dec edx
mov dword [esp + 0x10], eax
cmp eax, edx
mov dword [esp + 0x14], ecx
jl 0x4e6eb8
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x30]
inc eax
mov dword [esp + 0x6c], eax
jmp 0x4e6e63
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4e71af
test byte [eax + 0xc], 1
je 0x4e71bb
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
jne 0x4e717f
mov eax, dword [esi + 0x104]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x30]
jmp 0x4e71bb
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4e71af
test byte [eax + 0xc], 1
je 0x4e71bb
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
jne 0x4e71a5
mov eax, dword [esi + 0x104]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x30]
jmp 0x4e71bb
mov ecx, dword [esp + 0x1c]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x30]
mov edx, dword [esp + 0x10]
mov eax, dword [ebx]
mov ecx, dword [esp + 0x24]
push ebx
push ebp
push edx
lea edx, [ecx + eax*2]
mov eax, dword [esp + 0x78]
push edx
mov edx, dword [esi + 0xcc]
sub eax, edx
mov ecx, esi
imul eax, dword [esi + 0x80]
push eax
push edi
call fcn.004e6610
jmp 0x4e7133
mov eax, dword [esp + 0x38]
mov ecx, edi
push eax
call fcn.00578faf
mov eax, dword [esp + 0x40]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x28]
mov dword [esp + 0x44], 0x5cf854
lea ecx, [esp + 0x44]
mov dword [esp + 0x64], 1
call fcn.005799d3
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 4