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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x578da0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
mov al, byte [ecx + 0x8e]
push ebx
push esi
push edi
test al, al
mov dword [esp + 0x14], ecx
je 0x46e385
mov eax, dword [ecx + 0x84]
mov edx, dword [0x5889a8]
push edx
mov ecx, dword [eax + 0xd0]
mov edi, dword [eax + 0xd4]
mov dword [esp + 0x1c], ecx
mov ecx, edi
mov dword [esp + 0x34], edi
call fcn.00423ca0
xor esi, esi
mov dword [esp + 0x34], eax
test eax, eax
mov dword [esp + 0x24], esi
jle 0x46e385
mov eax, dword [0x5889a8]
push esi
push eax
mov ecx, edi
call fcn.00423cc0
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x1c], ebx
je 0x46e374
mov ecx, dword [ebx + 0x18]
xor edi, edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], edi
mov eax, dword [0x58d028]
test edi, edi
jle 0x46e104
mov eax, dword [0x58d02c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
push eax
push edx
call fcn.00459380
mov esi, eax
cmp esi, 0xffffffff
je 0x46e30e
xor eax, eax
lea ecx, [esp + 0x13]
mov dword [esp + 0x61], eax
lea edx, [esp + 0x12]
push ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x69], eax
push edx
push esi
mov byte [esp + 0x6c], 0
mov dword [esp + 0x75], eax
call fcn.00458720
lea eax, [esp + 0x38]
lea ecx, [esp + 0x6a]
push eax
lea edx, [esp + 0x6d]
push ecx
lea eax, [esp + 0x70]
push edx
lea ecx, [esp + 0x73]
push eax
lea edx, [esp + 0x76]
push ecx
lea eax, [esp + 0x79]
push edx
lea ecx, [esp + 0x7a]
push eax
lea edx, [esp + 0x80]
push ecx
lea eax, [esp + 0x81]
push edx
lea ecx, [esp + 0x87]
push eax
lea edx, [esp + 0x88]
push ecx
mov ecx, dword [esp + 0x44]
push edx
push esi
call fcn.004588e0
fld dword [ebx + 0x20]
test edi, edi
fstp qword [esp + 0x44]
fld dword [ebx + 0x28]
fstp qword [esp + 0x3c]
jle 0x46e1b7
fld dword [ebx + 0x24]
fstp qword [esp + 0x44]
fld dword [ebx + 0x2c]
fstp qword [esp + 0x3c]
mov eax, dword [esp + 0x14]
mov cl, byte [eax + 0x1c]
test cl, cl
je 0x46e1c6
xor eax, eax
jmp 0x46e1c9
mov eax, dword [eax + 0x38]
push eax
push 1
push 0
lea ecx, [esp + 0x64]
call sub.MFC42.DLL_CPen::CPen
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x58]
push eax
mov dword [esp + 0x7c], 0
call sub.MFC42.DLL_CDC::SelectObject_1
lea esi, [ebx + 0xa0]
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x2c], eax
xor edi, edi
mov al, byte [esp + 0x12]
test al, al
je 0x46e230
mov al, byte [esp + edi + 0x67]
test al, al
je 0x46e230
mov ecx, dword [esi + 4]
mov edx, dword [esi]
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [esp + 0x24]
push ebx
push edx
push eax
call fcn.00471cb0
inc edi
add esi, 8
cmp edi, 4
jl 0x46e1fc
mov eax, dword [esp + 0x14]
mov cl, byte [eax + 0x1c]
test cl, cl
je 0x46e248
xor eax, eax
jmp 0x46e24b
mov eax, dword [eax + 0x3c]
push eax
push 1
push 0
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CPen::CPen
lea ecx, [esp + 0x50]
mov byte [esp + 0x78], 1
push ecx
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CDC::SelectObject_1
mov edx, dword [esp + 0x1c]
xor edi, edi
lea esi, [edx + 0xc0]
mov al, byte [esp + 0x13]
test al, al
je 0x46e2ab
mov al, byte [esp + edi + 0x67]
test al, al
je 0x46e2ab
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [ebp + 8]
push eax
push ebx
push ecx
mov ecx, dword [esp + 0x2c]
push edx
call fcn.00471cb0
inc edi
add esi, 8
cmp edi, 4
jl 0x46e277
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x46e2c5
mov ecx, dword [ebp + 8]
push eax
call sub.MFC42.DLL_CDC::SelectObject_1
mov edi, vtable.CGdiObject.0
mov dword [esp + 0x50], edi
lea ecx, [esp + 0x50]
mov byte [esp + 0x78], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov esi, vtable.CObject.0
mov dword [esp + 0x58], edi
mov dword [esp + 0x50], esi
lea ecx, [esp + 0x58]
mov dword [esp + 0x78], 3
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x78], 0xffffffff
mov dword [esp + 0x58], esi
inc edi
cmp edi, 2
mov dword [esp + 0x20], edi
jl 0x46e0f6
mov edi, dword [ebx + 0x130]
xor esi, esi
test edi, edi
jle 0x46e36c
push esi
mov ecx, ebx
call fcn.00424cb0
test eax, eax
je 0x46e367
mov edx, dword [esp + 0x14]
mov cl, byte [edx + 0x1c]
test cl, cl
je 0x46e343
xor ecx, ecx
jmp 0x46e346
mov ecx, dword [edx + 0x40]
mov dword [eax + 0x34], ecx
mov ecx, dword [eax]
push 0
push edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x34], ecx
mov byte [eax + 0x10], 0
mov byte [eax + 0x38], 0
mov ecx, eax
mov eax, dword [esp + 0x34]
push edx
call dword [eax + 0x14]
inc esi
cmp esi, edi
jl 0x46e328
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
inc esi
cmp esi, eax
mov dword [esp + 0x24], esi
jl 0x46e0cd
mov ecx, dword [esp + 0x70]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4