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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
push ebx
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0xc]
test al, al
je 0x43f501
xor edi, edi
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x43f1bc
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
test eax, eax
je 0x43f1bc
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc8]
test eax, eax
je 0x43f1bc
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc4]
mov edi, eax
mov eax, dword [esi + 0xae8]
test eax, eax
je 0x43f1c8
mov edi, eax
test edi, edi
je 0x43f1d6
mov al, byte [edi + 0xe04]
test al, al
jne 0x43f1e4
mov eax, dword [ebp + 8]
test eax, eax
je 0x43f1e8
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x43f1e8
xor ebx, ebx
jmp 0x43f1eb
mov ebx, dword [esi + 0x1c]
mov dl, byte [esi + 0x20]
xor eax, eax
mov byte [esp + 0x24], dl
mov edx, ebx
and edx, 0xff
mov al, bh
mov dword [esp + 0x10], edx
mov byte [esp + 0x28], al
fild dword [esp + 0x10]
xor eax, eax
mov ecx, ebx
mov al, byte [esi + 0x21]
mov edx, dword [esp + 0x24]
fmul dword [0x5589c8]
mov byte [esp + 0x2c], al
mov eax, dword [esp + 0x28]
and eax, 0xff
and edx, 0xff
shr ecx, 0x10
fstp dword [esp + 0x88]
mov dword [esp + 0x10], eax
mov byte [esp + 0x30], cl
mov ecx, dword [esi + 0x20]
mov eax, dword [esp + 0x2c]
fild dword [esp + 0x10]
shr ecx, 0x10
mov byte [esp + 0x34], cl
mov ecx, dword [esp + 0x30]
fmul dword [0x5589c8]
and ecx, 0xff
and eax, 0xff
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x34]
fstp dword [esp + 0x8c]
fild dword [esp + 0x10]
mov dword [esp + 0x10], edx
and ecx, 0xff
mov dword [esp + 0x94], 0x3f800000
mov dword [esp + 0x7c], 0x3f800000
fmul dword [0x5589c8]
fstp dword [esp + 0x90]
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
xor eax, eax
fmul dword [0x5589c8]
fstp dword [esp + 0x70]
fild dword [esp + 0x10]
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0xd68]
cmp ecx, eax
fmul dword [0x5589c8]
fstp dword [esp + 0x74]
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
fmul dword [0x5589c8]
fstp dword [esp + 0x78]
jle 0x43f4f6
mov edi, dword [sym.imp.OPENGL32.dll_glMaterialfv]
mov dword [esp + 0x14], eax
mov edx, dword [esi + 0xd64]
mov eax, dword [esp + 0x14]
add eax, edx
lea ecx, [esp + 0x40]
lea edx, [esp + 0x38]
fld qword [eax + 0x20]
fsub qword [eax + 8]
fmul qword [0x558a38]
fld qword [eax + 0x28]
fsub qword [eax + 0x10]
fmul qword [0x558a38]
fstp qword [esp + 0x80]
fld qword [eax + 0x30]
fsub qword [eax + 0x18]
fmul qword [0x558a38]
fstp qword [esp + 0x68]
fld qword [eax + 0x20]
fadd qword [eax + 8]
fmul qword [0x558688]
fld qword [eax + 0x28]
fadd qword [eax + 0x10]
fmul qword [0x558688]
fstp qword [esp + 0x60]
fld qword [eax + 0x18]
fadd qword [eax + 0x30]
lea eax, [esi + 0xbe0]
push eax
push ecx
fmul qword [0x558688]
lea eax, [esp + 0x58]
push edx
push eax
mov ecx, esi
fstp qword [esp + 0x28]
fld st(0)
fsub st(2)
fstp qword [esp + 0x60]
fld qword [esp + 0x70]
fsub qword [esp + 0x90]
fstp qword [esp + 0x48]
fld qword [esp + 0x28]
fsub qword [esp + 0x78]
fstp qword [esp + 0x50]
fadd st(1)
fstp qword [esp + 0x68]
fstp st(0)
fld qword [esp + 0x70]
fadd qword [esp + 0x90]
fstp qword [esp + 0x58]
fld qword [esp + 0x28]
fadd qword [esp + 0x78]
fstp qword [esp + 0x28]
call fcn.0042d190
lea eax, [esi + 0xbe0]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x4c]
push ecx
lea eax, [esp + 0x60]
push edx
push eax
mov ecx, esi
call fcn.0042d190
mov ecx, dword [esi + 0xd64]
mov edx, dword [esp + 0x14]
mov al, byte [edx + ecx + 0x58]
test al, al
je 0x43f425
push 0x3f800000
call dword [sym.imp.OPENGL32.dll_glLineWidth]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
call dword [sym.imp.OPENGL32.dll_glColor3ub]
lea eax, [esp + 0x70]
push eax
push 0x1201
push 0x408
call edi
lea ecx, [esp + 0x70]
push ecx
jmp 0x43f45d
push 0x40000000
call dword [sym.imp.OPENGL32.dll_glLineWidth]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
push edx
push eax
push ebx
call dword [sym.imp.OPENGL32.dll_glColor3ub]
lea ecx, [esp + 0x88]
push ecx
push 0x1201
push 0x408
call edi
lea edx, [esp + 0x88]
push edx
push 0x1200
push 0x408
call edi
push 3
call dword [sym.imp.OPENGL32.dll_glBegin]
push 0x3ff00000
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.OPENGL32.dll_glNormal3d]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x5c]
push edx
mov edx, dword [esp + 0x5c]
push eax
push ecx
push edx
call dword [sym.imp.OPENGL32.dll_glVertex3d]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x64]
push eax
push ecx
push edx
call dword [sym.imp.OPENGL32.dll_glVertex3d]
call dword [sym.imp.OPENGL32.dll_glEnd]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0xd68]
inc eax
add edx, 0x60
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
jl 0x43f2f4
push 0x3f800000
call dword [sym.imp.OPENGL32.dll_glLineWidth]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4