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

Disassembly:
jmp 0x45a4f0
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x529a50
push eax
mov al, byte [esp + 0x18]
mov dword fs:[0], esp
sub esp, 0xac
test al, 1
push ebx
push ebp
push esi
push edi
mov ebp, ecx
je 0x45a6eb
mov eax, dword [ebp + 0x3c]
test eax, eax
jne 0x45a6eb
push 8
call sub.MFC42.DLL_operatornew
mov ebx, dword [esp + 0xd0]
add esp, 4
test eax, eax
je 0x45a54b
mov ecx, dword [esp + 0xd0]
mov dword [eax], ebx
mov dword [eax + 4], ecx
jmp 0x45a54d
xor eax, eax
test eax, eax
mov dword [esp + 0x28], eax
je 0x45a5c5
mov ecx, dword [ebp + 0x40]
mov esi, dword [ebp + 0x3c]
lea edx, [ecx + 1]
cmp esi, edx
jne 0x45a5b5
add ecx, dword [ebp + 0x48]
lea eax, [ecx*4 + 4]
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp + 0x40]
mov esi, dword [ebp + 0x38]
mov edi, eax
mov dword [esp + 0x24], eax
lea ecx, [ecx*4 + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x38]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x28]
mov ecx, dword [ebp + 0x48]
mov dword [ebp + 0x38], eax
mov eax, dword [ebp + 0x40]
add esp, 8
add eax, ecx
mov dword [ebp + 0x40], eax
mov eax, dword [esp + 0x28]
mov edx, dword [ebp + 0x3c]
mov ecx, dword [ebp + 0x38]
mov dword [ecx + edx*4], eax
mov eax, dword [ebp + 0x3c]
inc eax
mov dword [ebp + 0x3c], eax
push 0
mov ecx, ebp
call fcn.00402554
push 7
mov ecx, eax
mov dword [ebp + 0x50], eax
call sub.MFC42.DLL_CDC::SetROP2
mov ecx, ebp
call fcn.00401753
push 8
mov edi, eax
mov dword [esp + 0x38], 0xffffff
mov dword [esp + 0x34], 0
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
test esi, esi
mov dword [esp + 0xc4], 0
je 0x45a621
mov ecx, esi
call fcn.004022ac
mov dword [esi], vtable.CPen.0
jmp 0x45a623
xor esi, esi
mov dword [ebp + 0x58], esi
mov eax, dword [edi]
push 0
lea edx, [esp + 0x34]
push 0
push edx
push eax
push 0x10000
mov dword [esp + 0xd8], 0xffffffff
call dword [0x56cc30]
push eax
mov ecx, esi
call sub.MFC42.DLL_CGdiObject::Attach
mov eax, dword [ebp + 0x58]
mov ecx, dword [ebp + 0x50]
push eax
call sub.MFC42.DLL_CDC::SelectObject_2
push 8
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
test esi, esi
mov dword [esp + 0xc4], 1
je 0x45a68a
mov ecx, esi
call fcn.004022ac
mov dword [esi], vtable.CPen.0
jmp 0x45a68c
xor esi, esi
mov dword [ebp + 0x54], esi
mov eax, dword [edi]
push 0
lea ecx, [esp + 0x34]
push 0
push ecx
push eax
push 0x10000
mov dword [esp + 0xd8], 0xffffffff
call dword [0x56cc30]
push eax
mov ecx, esi
call sub.MFC42.DLL_CGdiObject::Attach
mov eax, dword [esp + 0xd0]
mov ecx, dword [ebp + 0x50]
push eax
lea edx, [esp + 0x24]
push ebx
mov dword [ebp + 0x5c], ebx
mov dword [ebp + 0x64], ebx
push edx
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x68], eax
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [ebp + 0x60]
mov eax, dword [ebp + 0x5c]
mov ecx, dword [ebp + 0x50]
push edx
push eax
call sub.MFC42.DLL_CDC::LineTo
test byte [esp + 0xd4], 2
je 0x45ab88
mov eax, dword [ebp + 0x3c]
cmp eax, 1
jl 0x45ab88
mov ecx, dword [ebp + 0x3c]
lea ebx, [ebp + 0x34]
dec eax
cmp eax, ecx
jge 0x45a71c
test eax, eax
jl 0x45a71c
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + eax*4]
jmp 0x45a71e
xor eax, eax
mov ecx, dword [ebx + 8]
mov edx, dword [eax]
mov eax, dword [eax + 4]
test ecx, ecx
jle 0x45a731
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx]
jmp 0x45a733
xor ecx, ecx
cmp dword [ecx], edx
jne 0x45a740
cmp dword [ecx + 4], eax
je 0x45a7f2
push 8
call sub.MFC42.DLL_operatornew
add esp, 4
test eax, eax
je 0x45a778
mov ecx, dword [ebx + 8]
test ecx, ecx
jle 0x45a768
mov edx, dword [ebx + 4]
mov ecx, dword [edx]
mov edx, dword [ecx]
mov dword [eax], edx
mov ecx, dword [ecx + 4]
mov dword [eax + 4], ecx
mov ecx, eax
jmp 0x45a77a
xor ecx, ecx
mov edx, dword [ecx]
mov dword [eax], edx
mov ecx, dword [ecx + 4]
mov dword [eax + 4], ecx
mov ecx, eax
jmp 0x45a77a
xor ecx, ecx
test ecx, ecx
mov dword [esp + 0x28], ecx
je 0x45a7f2
mov eax, dword [ebx + 0xc]
mov esi, dword [ebx + 8]
lea edx, [eax + 1]
cmp esi, edx
jne 0x45a7e2
add eax, dword [ebx + 0x14]
lea eax, [eax*4 + 4]
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebx + 0xc]
mov esi, dword [ebx + 4]
mov edi, eax
mov dword [esp + 0x24], eax
lea ecx, [ecx*4 + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x28]
mov ecx, dword [ebx + 0x14]
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0xc]
add esp, 8
add eax, ecx
mov ecx, dword [esp + 0x28]
mov dword [ebx + 0xc], eax
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 4]
mov dword [eax + edx*4], ecx
mov eax, dword [ebx + 8]
inc eax
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0x3c]
lea ecx, [eax*8]
push ecx
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp + 0x3c]
mov edi, eax
add esp, 4
xor eax, eax
test ecx, ecx
jle 0x45a83a
mov edx, edi
cmp eax, dword [ebx + 8]
jge 0x45a823
test eax, eax
jl 0x45a823
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + eax*4]
jmp 0x45a825
xor ecx, ecx
mov esi, dword [ecx]
inc eax
mov dword [edx], esi
mov ecx, dword [ecx + 4]
mov dword [edx + 4], ecx
mov ecx, dword [ebp + 0x3c]
add edx, 8
cmp eax, ecx
jl 0x45a812
mov eax, dword [ebx + 8]
test eax, eax
jle 0x45a848
mov edx, dword [ebx + 4]
mov eax, dword [edx]
jmp 0x45a84a
xor eax, eax
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 8]
test eax, eax
jle 0x45a85f
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
jmp 0x45a861
xor eax, eax
mov edx, dword [eax + 4]
mov eax, dword [ebx + 8]
test eax, eax
mov dword [esp + 0x14], edx
jle 0x45a876
mov eax, dword [ebx + 4]
mov eax, dword [eax]
jmp 0x45a878
xor eax, eax
mov ecx, dword [eax]
mov eax, dword [ebx + 8]
test eax, eax
mov dword [esp + 0x10], ecx
jle 0x45a88c
mov edx, dword [ebx + 4]
mov eax, dword [edx]
jmp 0x45a88e
xor eax, eax
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 8]
test eax, eax
jle 0x45a8a2
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
jmp 0x45a8a4
xor eax, eax
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + 0x50]
push eax
push edx
lea edx, [esp + 0x30]
push edx
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [ebp + 0x3c]
mov esi, 1
cmp eax, esi
jle 0x45a9d2
cmp esi, dword [ebx + 8]
jge 0x45a8d9
test esi, esi
jl 0x45a8d9
mov eax, dword [ebx + 4]
mov eax, dword [eax + esi*4]
jmp 0x45a8db
xor eax, eax
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + 0x50]
push eax
push edx
call sub.MFC42.DLL_CDC::LineTo
cmp esi, dword [ebx + 8]
jge 0x45a8fb
test esi, esi
jl 0x45a8fb
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + esi*4]
jmp 0x45a8fd
xor eax, eax
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x14]
cmp edx, eax
jge 0x45a922
cmp esi, dword [ebx + 8]
jge 0x45a919
test esi, esi
jl 0x45a919
mov eax, dword [ebx + 4]
mov eax, dword [eax + esi*4]
jmp 0x45a91b
xor eax, eax
mov ecx, dword [eax + 4]
mov dword [esp + 0x14], ecx
cmp esi, dword [ebx + 8]
jge 0x45a933
test esi, esi
jl 0x45a933
mov edx, dword [ebx + 4]
mov eax, dword [edx + esi*4]
jmp 0x45a935
xor eax, eax
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jle 0x45a95a
cmp esi, dword [ebx + 8]
jge 0x45a951
test esi, esi
jl 0x45a951
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + esi*4]
jmp 0x45a953
xor eax, eax
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
cmp esi, dword [ebx + 8]
jge 0x45a96b
test esi, esi
jl 0x45a96b
mov eax, dword [ebx + 4]
mov eax, dword [eax + esi*4]
jmp 0x45a96d
xor eax, eax
mov ecx, dword [eax]
mov eax, dword [esp + 0x10]
cmp ecx, eax
jge 0x45a990
cmp esi, dword [ebx + 8]
jge 0x45a988
test esi, esi
jl 0x45a988
mov edx, dword [ebx + 4]
mov eax, dword [edx + esi*4]
jmp 0x45a98a
xor eax, eax
mov eax, dword [eax]
mov dword [esp + 0x10], eax
cmp esi, dword [ebx + 8]
jge 0x45a9a1
test esi, esi
jl 0x45a9a1
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + esi*4]
jmp 0x45a9a3
xor eax, eax
mov edx, dword [eax]
mov eax, dword [esp + 0x18]
cmp edx, eax
jle 0x45a9c6
cmp esi, dword [ebx + 8]
jge 0x45a9be
test esi, esi
jl 0x45a9be
mov eax, dword [ebx + 4]
mov eax, dword [eax + esi*4]
jmp 0x45a9c0
xor eax, eax
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
mov eax, dword [ebp + 0x3c]
inc esi
cmp esi, eax
jl 0x45a8c8
mov ecx, ebp
call fcn.00401753
mov edx, dword [eax]
add eax, 0x58
mov dword [esp + 0x3c], edx
mov ecx, dword [eax - 0x54]
mov dword [esp + 0x40], ecx
mov edx, dword [eax - 0x50]
mov dword [esp + 0x44], edx
mov ecx, dword [eax - 0x4c]
mov dword [esp + 0x48], ecx
mov edx, dword [eax - 0x48]
mov dword [esp + 0x4c], edx
mov ecx, dword [eax - 0x44]
mov dword [esp + 0x50], ecx
mov edx, dword [eax - 0x40]
mov dword [esp + 0x54], edx
mov ecx, dword [eax - 0x3c]
mov dword [esp + 0x58], ecx
mov edx, dword [eax - 0x38]
mov dword [esp + 0x5c], edx
mov ecx, dword [eax - 0x34]
mov dword [esp + 0x60], ecx
mov edx, dword [eax - 0x30]
mov dword [esp + 0x64], edx
mov ecx, dword [eax - 0x2c]
mov dword [esp + 0x68], ecx
mov edx, dword [eax - 0x28]
mov dword [esp + 0x6c], edx
mov ecx, dword [eax - 0x24]
mov dword [esp + 0x70], ecx
mov edx, dword [eax - 0x20]
mov dword [esp + 0x74], edx
mov ecx, dword [eax - 0x1c]
mov dword [esp + 0x78], ecx
mov edx, dword [eax - 0x18]
mov dword [esp + 0x7c], edx
mov ecx, dword [eax - 0x14]
mov dword [esp + 0x80], ecx
mov edx, dword [eax - 0x10]
mov dword [esp + 0x84], edx
mov ecx, dword [eax - 0xc]
mov dword [esp + 0x88], ecx
mov edx, dword [eax - 8]
mov dword [esp + 0x8c], edx
mov ecx, dword [eax - 4]
mov dword [esp + 0x90], ecx
push eax
lea ecx, [esp + 0x98]
call fcn.004014ab
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
add esi, eax
add edx, eax
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x18], edx
sub esp, 0x10
sub ecx, eax
sub esi, eax
lea edx, [esp + 0x20]
mov dword [esp + 0x30], esp
mov eax, esp
push edx
push eax
mov dword [esp + 0xdc], 2
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], esi
call dword [0x56df74]
push edi
mov ecx, ebx
call fcn.00402e87
push eax
mov ecx, ebp
call fcn.00401fa5
mov eax, dword [ebx + 0x10]
xor edi, edi
cmp eax, edi
je 0x45ab22
mov eax, dword [ebx + 8]
xor esi, esi
cmp eax, edi
jle 0x45ab22
cmp esi, eax
jge 0x45ab0f
cmp esi, edi
jl 0x45ab0f
mov eax, dword [ebx + 4]
mov eax, dword [eax + esi*4]
jmp 0x45ab11
xor eax, eax
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [ebx + 8]
add esp, 4
inc esi
cmp esi, eax
jl 0x45ab03
mov eax, dword [ebx + 4]
push eax
call sub.MFC42.DLL_operatordelete
push 0x80
call sub.MFC42.DLL_operatornew
lea ecx, [esp + 0x9c]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], 0x1f
mov dword [ebx + 0x14], 0x40
add esp, 8
mov dword [ebp + 0x50], edi
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x98]
mov dword [esp + 0xc4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x94]
mov dword [esp + 0xc4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xb8
ret 0xc