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

Disassembly:
mov eax, 0x29a4
call fcn.00414f00
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x160]
mov ecx, dword [ebx + 0x164]
mov dword [esp + 0x30], eax
lea edx, [esp + 0x40]
push edi
mov dword [esp + 0x38], ecx
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x38]
push eax
push ecx
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], 0x3f800000
mov dword [esp + 0x48], 0
call fcn.0040e590
lea edx, [esp + 0x5c]
lea eax, [esp + 0x50]
push edx
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.0040e590
fld dword [ebx + 0x13c]
fabs
fld dword [ebx + 0x140]
fabs
faddp st(1)
mov edx, dword [ebx + 0x15c]
add esp, 0x18
mov dword [esp + 0x30], edx
fcomp qword [0x416a40]
fnstsw ax
test ah, 1
je 0x40bdb4
lea eax, [ebx + 0x460]
mov dword [esp + 0x10], 0xfc
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 0x10]
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov ecx, dword [esp + 0x1c]
lea edi, [esp + esi + 0x1508]
fild dword [esp + 0x18]
mov eax, dword [ecx]
mov edx, edi
fmul dword [0x416adc]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov ecx, dword [ecx + 8]
push ecx
lea eax, [esp + 0x2c]
mov dword [edx + 8], ecx
lea edx, [esp + 0x38]
fstp dword [esp]
push edi
push edx
push eax
call fcn.00408350
fld dword [esp + esi + 0x1520]
fsub dword [esp + 0x40]
mov ecx, dword [edi]
mov edx, dword [edi + 4]
lea eax, [esp + esi + 0x6c]
push eax
mov dword [eax], ecx
mov dword [esp + esi + 0x74], edx
fstp dword [esp + esi + 0x78]
call fcn.0040e4b0
add esp, 0x14
inc ebp
add esi, 0xc
cmp ebp, 0xa
mov dword [esp + 0x18], ebp
jle 0x40bc18
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
add eax, 0xfc
add esi, 0xc
cmp eax, 0x9d8
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], eax
jl 0x40bc0e
push 6
call dword [sym.imp.OPENGL32.dll_glBegin]
mov ebp, dword [sym.imp.OPENGL32.dll_glNormal3fv]
lea eax, [ebx + 0x160]
push eax
call ebp
mov edi, dword [sym.imp.OPENGL32.dll_glVertex3fv]
lea eax, [ebx + 0x454]
push eax
call edi
xor esi, esi
mov ecx, dword [esp + esi + 0x1d8]
mov edx, dword [esp + esi + 0x1d4]
mov eax, dword [esp + esi + 0x1d0]
push ecx
push edx
push eax
call dword [sym.imp.OPENGL32.dll_glNormal3f]
lea ecx, [esp + esi + 0x167c]
push ecx
call edi
sub esi, 0xc
cmp esi, 0xffffff88
jge 0x40bcd2
call dword [sym.imp.OPENGL32.dll_glEnd]
mov dword [esp + 0x1c], 0xfc
push 8
call dword [sym.imp.OPENGL32.dll_glBegin]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x14], 0xb
lea edx, [esp + esi + 0x158]
push edx
call ebp
lea eax, [esp + esi + 0x1604]
push eax
call edi
lea ecx, [esp + esi + 0x5c]
push ecx
call ebp
lea edx, [esp + esi + 0x1508]
push edx
call edi
mov eax, dword [esp + 0x14]
add esi, 0xc
dec eax
mov dword [esp + 0x14], eax
jne 0x40bd24
call dword [sym.imp.OPENGL32.dll_glEnd]
mov eax, dword [esp + 0x1c]
add eax, 0xfc
cmp eax, 0x8dc
mov dword [esp + 0x1c], eax
jl 0x40bd10
push 6
call dword [sym.imp.OPENGL32.dll_glBegin]
add ebx, 0x4cc
push ebx
call ebp
push ebx
call edi
xor esi, esi
lea eax, [esp + esi + 0x938]
push eax
call ebp
lea ecx, [esp + esi + 0x1de4]
push ecx
call edi
add esi, 0xc
cmp esi, 0x78
jle 0x40bd87
call dword [sym.imp.OPENGL32.dll_glEnd]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x29a4
ret
fld dword [ebx + 0x140]
fld dword [ebx + 0x13c]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fstp st(2)
fstp st(0)
fdivr dword [ebx + 0x144]
fld1
fpatan
fadd qword [0x416a98]
fst dword [esp + 0x1c]
fmul dword [0x416ad8]
call sub.MSVCRT.dll__ftol
mov ebp, eax
cmp ebp, 1
mov dword [esp + 0x10], ebp
jge 0x40be03
mov ebp, 1
mov dword [esp + 0x10], ebp
fild dword [esp + 0x10]
mov esi, 0xfc
lea eax, [ebx + 0x460]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
fdivr dword [esp + 0x1c]
fstp dword [esp + 0x20]
test ebp, ebp
mov dword [esp + 0x18], 0
jl 0x40beac
mov edx, dword [esp + 0x10]
lea edi, [esp + esi + 0x1508]
fild dword [esp + 0x18]
mov ecx, dword [edx]
mov eax, edi
fmul dword [esp + 0x20]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
push ecx
mov dword [eax + 4], ecx
mov edx, dword [edx + 8]
fchs
fstp dword [esp]
mov dword [eax + 8], edx
lea eax, [esp + 0x38]
push edi
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.00408350
fld dword [edi]
fsub dword [esp + 0x38]
lea eax, [esp + esi + 0x6c]
push eax
fstp dword [eax]
fld dword [edi + 4]
fsub dword [esp + 0x40]
fstp dword [esp + esi + 0x74]
fld dword [esp + esi + 0x1524]
fsub dword [esp + 0x44]
fstp dword [esp + esi + 0x78]
call fcn.0040e4b0
mov eax, dword [esp + 0x2c]
add esp, 0x14
inc eax
add esi, 0xc
cmp eax, ebp
mov dword [esp + 0x18], eax
jle 0x40be2e
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
add esi, 0xfc
add edx, 0xc
cmp esi, 0x9d8
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], esi
jl 0x40be22
push 6
call dword [sym.imp.OPENGL32.dll_glBegin]
mov edi, dword [sym.imp.OPENGL32.dll_glNormal3fv]
lea eax, [ebx + 0x160]
push eax
call edi
lea eax, [ebx + 0x454]
push eax
call dword [sym.imp.OPENGL32.dll_glVertex3fv]
test ebp, ebp
jl 0x40bf47
lea edx, [ebp + 1]
xor esi, esi
mov dword [esp + 0x14], edx
fld dword [esp + esi + 0x160]
push ecx
fchs
fstp dword [esp]
fld dword [esp + esi + 0x160]
push ecx
fchs
fstp dword [esp]
fld dword [esp + esi + 0x160]
push ecx
fchs
fstp dword [esp]
call dword [sym.imp.OPENGL32.dll_glNormal3f]
lea eax, [esp + esi + 0x1604]
push eax
call dword [sym.imp.OPENGL32.dll_glVertex3fv]
mov eax, dword [esp + 0x14]
add esi, 0xc
dec eax
mov dword [esp + 0x14], eax
jne 0x40befe
call dword [sym.imp.OPENGL32.dll_glEnd]
mov esi, 0xfc
mov dword [esp + 0x20], esi
push 8
call dword [sym.imp.OPENGL32.dll_glBegin]
test ebp, ebp
jl 0x40bfa8
lea ecx, [ebp + 1]
mov dword [esp + 0x14], ecx
lea edx, [esp + esi + 0x158]
push edx
call edi
lea eax, [esp + esi + 0x1604]
push eax
call dword [sym.imp.OPENGL32.dll_glVertex3fv]
lea ecx, [esp + esi + 0x5c]
push ecx
call edi
lea edx, [esp + esi + 0x1508]
push edx
call dword [sym.imp.OPENGL32.dll_glVertex3fv]
mov eax, dword [esp + 0x14]
add esi, 0xc
dec eax
mov dword [esp + 0x14], eax
jne 0x40bf69
mov esi, dword [esp + 0x20]
call dword [sym.imp.OPENGL32.dll_glEnd]
add esi, 0xfc
cmp esi, 0x8dc
mov dword [esp + 0x20], esi
jl 0x40bf56
push 6
call dword [sym.imp.OPENGL32.dll_glBegin]
lea eax, [ebx + 0x1d8]
push eax
call edi
lea eax, [ebx + 0x4cc]
push eax
mov dword [esp + 0x44], eax
call dword [sym.imp.OPENGL32.dll_glVertex3fv]
test ebp, ebp
jl 0x40c015
lea eax, [ebp + 1]
xor esi, esi
mov dword [esp + 0x14], eax
lea ecx, [esp + esi + 0x938]
push ecx
call edi
lea edx, [esp + esi + 0x1de4]
push edx
call dword [sym.imp.OPENGL32.dll_glVertex3fv]
mov eax, dword [esp + 0x14]
add esi, 0xc
dec eax
mov dword [esp + 0x14], eax
jne 0x40bfef
call dword [sym.imp.OPENGL32.dll_glEnd]
push 8
call dword [sym.imp.OPENGL32.dll_glBegin]
xor ecx, ecx
lea eax, [ebx + 0x45c]
lea esi, [ebp + ebp*2]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
shl esi, 2
jmp 0x40c040
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x40c099
cmp ecx, 0xa
je 0x40c099
lea eax, [esp + esi + 0x5c]
push eax
call edi
lea ebp, [esp + esi + 0x1508]
push ebp
call dword [sym.imp.OPENGL32.dll_glVertex3fv]
fld dword [esp + esi + 0x1510]
fadd dword [ebx + 0x144]
push ecx
fstp dword [esp]
fld dword [esp + esi + 0x1510]
fadd dword [ebx + 0x140]
push ecx
fstp dword [esp]
fld dword [ebp]
fadd dword [ebx + 0x13c]
push ecx
fstp dword [esp]
call dword [sym.imp.OPENGL32.dll_glVertex3f]
mov ebp, dword [esp + 0x10]
jmp 0x40c0e1
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffd04
push ecx
call edi
mov ebp, dword [esp + 0x10]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.OPENGL32.dll_glVertex3fv]
fld dword [ebp]
fadd dword [ebx + 0x144]
push ecx
fstp dword [esp]
fld dword [ebp - 4]
fadd dword [ebx + 0x140]
push ecx
fstp dword [esp]
fld dword [ebp - 8]
fadd dword [ebx + 0x13c]
push ecx
fstp dword [esp]
call dword [sym.imp.OPENGL32.dll_glVertex3f]
mov eax, dword [esp + 0x18]
add esi, 0xfc
inc eax
add ebp, 0xc
cmp eax, 0xa
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebp
jle 0x40c03c
call dword [sym.imp.OPENGL32.dll_glEnd]
fld dword [esp + 0x1c]
fsubr qword [0x416ad0]
fld st(0)
fmul qword [0x416ac8]
call sub.MSVCRT.dll__ftol
mov esi, eax
cmp esi, 1
mov dword [esp + 0x10], esi
jge 0x40c134
mov dword [esp + 0x10], 1
mov esi, dword [esp + 0x10]
fild dword [esp + 0x10]
mov eax, 0xfc
lea ecx, [ebx + 0x460]
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], ecx
fdivr st(1)
fstp dword [esp + 0x20]
fstp st(0)
xor ebp, ebp
test esi, esi
mov dword [esp + 0x18], ebp
jl 0x40c229
mov esi, eax
fild dword [esp + 0x18]
mov edx, dword [esp + 0x14]
lea edi, [esp + esi + 0x1508]
mov eax, edi
fmul dword [esp + 0x20]
mov ecx, dword [edx]
mov dword [eax], ecx
fadd dword [esp + 0x1c]
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
push ecx
mov edx, dword [edx + 8]
lea ecx, [esp + 0x2c]
fchs
fstp dword [esp]
mov dword [eax + 8], edx
lea eax, [esp + 0x38]
push edi
push eax
push ecx
call fcn.00408350
fld dword [edi]
fsub dword [esp + 0x38]
lea eax, [esp + esi + 0x6c]
push eax
fstp dword [eax]
fld dword [esp + esi + 0x1520]
fsub dword [esp + 0x40]
fstp dword [esp + esi + 0x74]
fld dword [esp + esi + 0x1524]
fsub dword [esp + 0x44]
fstp dword [esp + esi + 0x78]
fld dword [edi]
fadd dword [ebx + 0x13c]
fstp dword [edi]
fld dword [esp + esi + 0x1520]
fadd dword [ebx + 0x140]
fstp dword [esp + esi + 0x1520]
fld dword [esp + esi + 0x1524]
fadd dword [ebx + 0x144]
fstp dword [esp + esi + 0x1524]
call fcn.0040e4b0
mov eax, dword [esp + 0x24]
add esp, 0x14
inc ebp
add esi, 0xc
cmp ebp, eax
mov dword [esp + 0x18], ebp
jle 0x40c163
mov eax, dword [esp + 0x24]
mov edi, dword [sym.imp.OPENGL32.dll_glNormal3fv]
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
add eax, 0xfc
add ebp, 0xc
cmp eax, 0x9d8
mov dword [esp + 0x14], ebp
mov dword [esp + 0x24], eax
jl 0x40c153
push 6
call dword [sym.imp.OPENGL32.dll_glBegin]
lea eax, [ebx + 0x160]
push eax
call edi
fld dword [ebx + 0x45c]
fadd dword [ebx + 0x144]
push ecx
fstp dword [esp]
fld dword [ebx + 0x458]
fadd dword [ebx + 0x140]
push ecx
fstp dword [esp]
fld dword [ebx + 0x454]
fadd dword [ebx + 0x13c]
push ecx
fstp dword [esp]
call dword [sym.imp.OPENGL32.dll_glVertex3f]
test esi, esi
jl 0x40c2e1
mov edx, dword [esp + 0x10]
xor esi, esi
lea ebp, [edx + 1]
fld dword [esp + esi + 0x160]
push ecx
fchs
fstp dword [esp]
fld dword [esp + esi + 0x160]
push ecx
fchs
fstp dword [esp]
fld dword [esp + esi + 0x160]
push ecx
fchs
fstp dword [esp]
call dword [sym.imp.OPENGL32.dll_glNormal3f]
lea eax, [esp + esi + 0x1604]
push eax
call dword [sym.imp.OPENGL32.dll_glVertex3fv]
add esi, 0xc
dec ebp
jne 0x40c29c
mov esi, dword [esp + 0x10]
call dword [sym.imp.OPENGL32.dll_glEnd]
mov ebp, 0xfc
mov dword [esp + 0x14], ebp
push 8
call dword [sym.imp.OPENGL32.dll_glBegin]
test esi, esi
jl 0x40c348
mov ecx, dword [esp + 0x10]
mov esi, ebp
inc ecx
mov dword [esp + 0x24], ecx
lea edx, [esp + esi + 0x158]
push edx
call edi
mov ebp, dword [sym.imp.OPENGL32.dll_glVertex3fv]
lea eax, [esp + esi + 0x1604]
push eax
call ebp
lea ecx, [esp + esi + 0x5c]
push ecx
call edi
lea edx, [esp + esi + 0x1508]
push edx
call ebp
mov eax, dword [esp + 0x24]
add esi, 0xc
dec eax
mov dword [esp + 0x24], eax
jne 0x40c307
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
call dword [sym.imp.OPENGL32.dll_glEnd]
add ebp, 0xfc
cmp ebp, 0x8dc
mov dword [esp + 0x14], ebp
jl 0x40c2f0
push 6
call dword [sym.imp.OPENGL32.dll_glBegin]
lea eax, [ebx + 0x1d8]
push eax
call edi
fld dword [ebx + 0x4d4]
fadd dword [ebx + 0x144]
push ecx
mov eax, dword [esp + 0x44]
fstp dword [esp]
fld dword [ebx + 0x4d0]
fadd dword [ebx + 0x140]
push ecx
fstp dword [esp]
fld dword [ebx + 0x13c]
fadd dword [eax]
push ecx
fstp dword [esp]
call dword [sym.imp.OPENGL32.dll_glVertex3f]
test esi, esi
jl 0x40c3cc
xor ebx, ebx
inc esi
lea ecx, [esp + ebx + 0x938]
push ecx
call edi
lea edx, [esp + ebx + 0x1de4]
push edx
call dword [sym.imp.OPENGL32.dll_glVertex3fv]
add ebx, 0xc
dec esi
jne 0x40c3ae
call dword [sym.imp.OPENGL32.dll_glEnd]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x29a4
ret