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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x569c8c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf4
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov ebx, ecx
push edi
push 1
push esi
call fcn.00483850
mov ecx, edi
call fcn.004cc990
mov ecx, eax
dec eax
test ecx, ecx
mov dword [esp + 0xc], eax
je 0x4a6b4c
mov edx, dword [esp + 0xc]
mov ecx, dword [ebp + 0x10]
push edx
call fcn.004cc960
mov edi, eax
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], 0x57f4f8
fild dword [edi + 0x14]
mov dword [esp + 0x108], eax
mov eax, dword [edi + 0x18]
sub esp, 8
mov dword [esp + 0x1c], eax
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [esp + 0x1c]
add esp, 8
push ecx
push eax
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CGdiObject::Attach
lea edx, [esp + 0x2c]
mov ecx, esi
push edx
call sub.MFC42.DLL_CDC::SelectObject
mov ecx, dword [ebx + 0x34c]
mov edx, dword [ebx + 0x354]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0xf8]
sub edx, ecx
mov dword [esp + 0x18], ecx
lea eax, [eax + eax*4]
sub esp, 8
shl eax, 1
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
mov dword [esp + 0x1c], edx
fild dword [esp + 0x1c]
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fsubp st(1)
fmul qword [0x57f568]
fild dword [esp + 0x20]
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fsubp st(1)
fstp qword [esp]
call fcn.004bd890
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 8]
fild dword [esp + 0x1c]
neg eax
mov dword [esp + 0x1c], eax
fstp qword [esp + 0x4c]
fild dword [esp + 0x1c]
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fsub qword [0x57f540]
fstp qword [esp]
call fcn.004bd890
fild dword [edi + 4]
add esp, 8
fdiv qword [ebx + 0x100]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x50]
fstp qword [esp]
call fcn.004bd890
add esp, 8
lea ecx, [esp + 0x40]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [edi + 0x10]
sub esp, 8
neg edx
mov dword [esp + 0x1c], edx
fild dword [esp + 0x1c]
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fsub qword [0x57f540]
fstp qword [esp]
call fcn.004bd890
fild dword [edi + 0xc]
add esp, 8
fdiv qword [ebx + 0x100]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x50]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, esi
push eax
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x38]
mov ecx, esi
push eax
call sub.MFC42.DLL_CDC::SelectObject
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x2c], 0x57f4d8
lea ecx, [esp + 0x2c]
mov dword [esp + 0x108], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov eax, dword [esp + 0xc]
mov dword [esp + 0x108], 0xffffffff
mov ecx, eax
dec eax
test ecx, ecx
mov dword [esp + 0x2c], 0x57f4c4
mov dword [esp + 0xc], eax
jne 0x4a696b
mov eax, dword [0x5b62c4]
mov cl, byte [0x5b62c8]
xor edx, edx
mov dword [esp + 0x6c], eax
mov byte [esp + 0x70], cl
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x71]
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], edx
mov byte [esp + 0x64], dl
mov byte [esp + 0x65], 1
mov byte [esp + 0x66], dl
mov byte [esp + 0x67], 0x86
mov byte [esp + 0x68], dl
mov byte [esp + 0x69], dl
mov byte [esp + 0x6a], dl
mov byte [esp + 0x6b], dl
mov dword [esp + 0x14], edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x10]
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x108], 2
call fcn.004ccdc0
mov edx, eax
dec eax
test edx, edx
mov dword [esp + 0x38], eax
je 0x4a722c
mov eax, dword [esp + 0x38]
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004ccd90
mov esi, dword [eax + 0x54]
mov dword [esp + 0xc], eax
mov edi, 0x5b62bc
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x4a6c17
test al, al
je 0x4a6c13
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x4a6c17
add esi, 2
add edi, 2
test al, al
jne 0x4a6bef
xor eax, eax
jmp 0x4a6c1c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4a71fd
mov eax, dword [esp + 0xc]
sub esp, 0x3c
mov ecx, 0xf
mov edi, esp
lea esi, [eax + 0x14]
sub esp, 0x3c
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xf
lea esi, [esp + 0xc8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.004c29f0
add esp, 0x78
test eax, eax
jne 0x4a6d10
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a6c76
mov ecx, dword [ebp + 8]
push eax
mov edx, dword [ecx]
call dword [edx + 0x30]
lea ecx, [ebx + 0xe8]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov eax, dword [esp + 0xc]
sub esp, 0x3c
mov ecx, 0xf
mov edi, esp
lea esi, [eax + 0x14]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xc8]
push ecx
call fcn.004c2960
fild dword [esp + 0xcc]
add esp, 0x38
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fstp qword [esp]
call fcn.004bd890
add esp, 8
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], eax
lea esi, [ebx + 0xe8]
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
mov ecx, esi
call sub.MFC42.DLL_CGdiObject::Attach
mov eax, dword [esp + 0xc]
sub esp, 0x3c
mov ecx, 0xf
mov edi, esp
lea esi, [eax + 0x14]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x8c]
push ecx
call fcn.004c2960
mov ecx, dword [ebp + 8]
add esp, 0x40
lea eax, [ebx + 0xe8]
mov edx, dword [ecx]
push eax
call dword [edx + 0x30]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0xf8]
mov ecx, dword [ebx + 0x34c]
mov edx, dword [ebx + 0x354]
mov dword [esp + 0x18], ecx
lea eax, [eax + eax*4]
sub edx, ecx
shl eax, 1
mov dword [esp + 0x3c], eax
sub esp, 8
fild dword [esp + 0x44]
mov dword [esp + 0x44], edx
fild dword [esp + 0x44]
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fsubp st(1)
fmul qword [0x57f568]
fild dword [esp + 0x20]
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fsubp st(1)
fstp qword [esp]
call fcn.004bd890
mov esi, dword [esp + 0x14]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x10]
neg eax
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fsub qword [0x57f540]
fstp qword [esp]
call fcn.004bd890
fild dword [esp + 0x44]
mov edi, eax
fstp qword [esp + 0x34]
fild dword [esi + 0xc]
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fadd qword [esp + 0x34]
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [esi + 8]
mov dword [esp + 0x20], eax
neg ecx
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fsub qword [0x57f540]
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 4]
mov dword [esp + 0x14], eax
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fadd qword [esp + 0x34]
fstp qword [esp]
call fcn.004bd890
mov edx, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x28], edx
mov edx, dword [ebp + 8]
add esp, 8
mov dword [esp + 0x24], eax
lea ecx, [esp + 0xc8]
mov eax, dword [edx + 8]
push ecx
push eax
mov dword [esp + 0x30], edi
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov eax, dword [esi + 0x50]
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov edx, dword [eax - 8]
dec edx
test edx, edx
jle 0x4a6e6a
mov edi, ecx
cmp byte [eax + ecx], 0xd
jne 0x4a6e5d
cmp byte [eax + ecx + 1], 0xa
jne 0x4a6e5d
inc edi
inc ecx
cmp ecx, edx
jl 0x4a6e4f
test edi, edi
mov dword [esp + 0xc], edi
jne 0x4a6e72
mov dword [esp + 0xc], 1
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x64]
push eax
mov edx, dword [ecx]
call dword [edx + 0x38]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0xc8]
imul edx, ecx
lea eax, [ecx - 1]
lea ecx, [esp + 0x10]
imul eax, dword [esp + 0xd8]
add eax, edx
mov dword [esp + 0x18], eax
lea eax, [esi + 0x50]
push eax
call sub.MFC42.DLL_CString::operator_2
mov edi, dword [esi + 0x54]
mov eax, 0x5b6224
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x4a6ed6
test cl, cl
je 0x4a6ed2
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x4a6ed6
add edi, 2
add eax, 2
test cl, cl
jne 0x4a6eb2
xor eax, eax
jmp 0x4a6edb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4a6f84
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, ebx
call fcn.00487a00
test eax, eax
je 0x4a6f84
mov eax, dword [ebx + 0x320]
test eax, eax
jne 0x4a6f3a
push 0x32
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.MSVCRT.dll_atof]
fcomp qword [0x57f4f0]
add esp, 4
fnstsw ax
test ah, 0x40
je 0x4a6f3a
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Empty
jmp 0x4a6f84
mov eax, dword [ebx + 0x31c]
test eax, eax
je 0x4a6f84
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x48]
mov ecx, ebx
push eax
call fcn.00487b70
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x10c], 3
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x44]
mov byte [esp + 0x108], 2
call sub.MFC42.DLL_CString::CString
mov edi, dword [esi + 0x54]
mov eax, 0x5b62bc
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x4a6fb0
test cl, cl
je 0x4a6fac
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x4a6fb0
add edi, 2
add eax, 2
test cl, cl
jne 0x4a6f8c
xor eax, eax
jmp 0x4a6fb5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4a700a
mov eax, dword [esi + 0x80]
test eax, eax
je 0x4a700a
mov eax, dword [esp + 0xc]
cmp eax, 1
jg 0x4a700a
mov edx, dword [esp + 0x1c]
sub esp, 0x10
mov ecx, esp
push 0x3d
mov dword [ecx], edx
mov edx, dword [esp + 0x34]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x3c]
mov dword [ecx + 0xc], edx
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x2c]
push ecx
push edx
push eax
mov eax, dword [ebp + 8]
push esi
push eax
mov ecx, ebx
call fcn.00499ca0
jmp 0x4a71fd
mov edi, dword [esi + 0x54]
mov eax, 0x5b62bc
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x4a7036
test cl, cl
je 0x4a7032
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x4a7036
add edi, 2
add eax, 2
test cl, cl
jne 0x4a7012
xor eax, eax
jmp 0x4a703b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4a70a3
mov eax, dword [esi + 0x84]
test eax, eax
je 0x4a70a3
mov eax, dword [esp + 0xc]
mov edi, 1
cmp eax, edi
jg 0x4a70a8
mov edx, dword [esp + 0x1c]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x30]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x34]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 0xc], edx
mov ecx, dword [ebx + 0x130]
mov edx, dword [ebx + 0x120]
push ecx
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x30]
push 0x3d
push ecx
push edx
push eax
mov eax, dword [ebp + 8]
push esi
push eax
call fcn.004c3cf0
add esp, 0x30
jmp 0x4a71fd
mov edi, 1
mov eax, dword [esi + 0x78]
test eax, eax
jne 0x4a70b6
mov ecx, dword [esi + 0x7c]
test ecx, ecx
je 0x4a7127
mov ecx, 2
cmp eax, ecx
jne 0x4a70ca
mov edx, dword [esi + 0x7c]
test edx, edx
je 0x4a71e5
cmp eax, edi
jne 0x4a70d9
mov edx, dword [esi + 0x7c]
test edx, edx
je 0x4a7188
test eax, eax
jne 0x4a713a
cmp dword [esi + 0x7c], edi
jne 0x4a7108
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
sub eax, ecx
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x18]
cdq
sub eax, edx
mov edx, ecx
sar esi, 1
sar eax, 1
add edx, esi
add eax, edx
cmp eax, ecx
jge 0x4a7127
jmp 0x4a7123
test eax, eax
jne 0x4a713a
cmp dword [esi + 0x7c], ecx
jne 0x4a713a
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
add eax, ecx
mov ecx, dword [esp + 0x20]
cmp ecx, eax
jle 0x4a7127
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
push 0
mov edx, dword [eax - 8]
mov esi, dword [ecx]
jmp 0x4a71f3
cmp eax, edi
jne 0x4a7197
cmp dword [esi + 0x7c], edi
jne 0x4a7169
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
sub eax, ecx
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x18]
cdq
sub eax, edx
mov edx, ecx
sar esi, 1
sar eax, 1
add edx, esi
add eax, edx
cmp eax, ecx
jge 0x4a7188
jmp 0x4a7184
cmp eax, edi
jne 0x4a7197
cmp dword [esi + 0x7c], ecx
jne 0x4a7197
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
add eax, ecx
mov ecx, dword [esp + 0x20]
cmp ecx, eax
jle 0x4a7188
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
push edi
mov edx, dword [eax - 8]
mov esi, dword [ecx]
jmp 0x4a71f3
cmp eax, ecx
jne 0x4a71fd
cmp dword [esi + 0x7c], edi
jne 0x4a71c6
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
sub eax, ecx
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x18]
cdq
sub eax, edx
mov edx, ecx
sar esi, 1
sar eax, 1
add edx, esi
add eax, edx
cmp eax, ecx
jge 0x4a71e5
jmp 0x4a71e1
cmp eax, ecx
jne 0x4a71fd
cmp dword [esi + 0x7c], ecx
jne 0x4a71fd
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
add eax, ecx
mov ecx, dword [esp + 0x20]
cmp ecx, eax
jle 0x4a71e5
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
push 2
mov edx, dword [eax - 8]
mov esi, dword [ecx]
lea edi, [esp + 0x20]
push edi
push edx
push eax
call dword [esi + 0x70]
mov eax, dword [esp + 0x38]
mov edx, eax
dec eax
test edx, edx
mov dword [esp + 0x38], eax
jne 0x4a6bd6
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a722c
mov ecx, dword [ebp + 8]
push eax
mov edx, dword [ecx]
call dword [edx + 0x30]
lea ecx, [ebx + 0xe8]
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x10]
mov dword [esp + 0x108], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x100]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc