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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 8]
sub eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, ecx
fild dword [esi + 0xc]
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp + 0x14]
mov dword [ebp - 8], eax
fstp dword [ebp - 0xc]
push edi
fld dword [ebp - 0xc]
fstp dword [ebp - 0x18]
fild dword [esi + 0x10]
fstp dword [ebp - 0x10]
fld dword [ebp - 0x10]
fstp dword [ebp - 0x14]
fild dword [ebp - 8]
mov dword [ebp - 8], ecx
fstp dword [ebp - 4]
fild dword [ebp - 8]
fstp dword [ebp - 8]
fld dword [ebp - 8]
fld dword [ebp - 4]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [ebp - 8]
fld dword [ebp - 8]
call fcn.00536410
fstp dword [ebp - 8]
fld dword [ebp - 8]
lea ecx, [esi + 0x30]
fld qword [0x55feb8]
fmul st(1), st(0)
fxch st(1)
fadd qword [0x55feb0]
fstp dword [ebp - 8]
fld dword [ebp - 8]
fld st(0)
fmulp st(2)
fxch st(1)
fdiv qword [0x55fea8]
fstp dword [ebp - 8]
fild dword [ebp + 8]
fld dword [ebp - 0xc]
fld st(0)
fdivp st(2)
fxch st(1)
fstp dword [ebp + 8]
fild dword [ebp + 0xc]
fld dword [ebp - 0x10]
fld st(0)
fdivp st(2)
fxch st(1)
fstp dword [ebp - 0x10]
fild dword [ebp + 0x10]
fdiv st(2)
fstp dword [ebp - 0xc]
fild dword [ebp + 0x14]
fdiv st(1)
fstp dword [ebp + 0x14]
fld dword [ebp - 8]
fld st(0)
fdiv st(3)
fstp dword [ebp + 0x10]
fld st(3)
fdivrp st(3)
fxch st(2)
fstp dword [ebp - 4]
fld st(0)
fdivp st(2)
fxch st(1)
fstp dword [ebp + 0xc]
fdivp st(1)
fstp dword [ebp - 8]
fldz
fst dword [ecx]
fst dword [esi + 0x34]
fld1
fst dword [esi + 0x3c]
mov edx, 2
fst dword [esi + 0x48]
mov edi, edx
fst dword [esi + 0x4c]
fst dword [esi + 0x58]
fxch st(1)
fst dword [esi + 0x40]
fst dword [esi + 0x54]
fld dword [ebp + 8]
fst dword [esi + 0x60]
fld dword [ebp - 0x10]
fld st(0)
fld dword [ebp - 8]
fld st(0)
fsubp st(2)
fxch st(1)
fstp dword [esi + 0x64]
fld dword [ebp + 0x10]
fld st(0)
fadd st(4)
fstp dword [ebp + 8]
fld dword [ebp + 8]
fstp dword [esi + 0x6c]
fld st(2)
fsub dword [ebp + 0xc]
fstp dword [ebp + 0x10]
fld dword [ebp + 0x10]
fstp dword [esi + 0x70]
fld st(3)
fadd dword [ebp - 4]
fstp dword [esi + 0x78]
fxch st(2)
fst dword [esi + 0x7c]
fld dword [ebp + 8]
fstp dword [esi + 0x84]
fld dword [ebp + 0xc]
fadd st(1)
fstp dword [ebp + 8]
fld dword [ebp + 8]
fst dword [esi + 0x88]
fxch st(4)
fst dword [esi + 0x90]
fld st(1)
faddp st(3)
fxch st(2)
fstp dword [esi + 0x94]
fld st(1)
fsubrp st(3)
fxch st(2)
fstp dword [ebp + 8]
fld dword [ebp + 8]
fst dword [esi + 0x9c]
fxch st(3)
fstp dword [esi + 0xa0]
fld st(0)
fsub dword [ebp - 4]
fstp dword [esi + 0xa8]
fxch st(1)
fst dword [esi + 0xac]
fxch st(2)
fstp dword [esi + 0xb4]
fld dword [ebp + 0x10]
fstp dword [esi + 0xb8]
fstp dword [esi + 0xc0]
fstp dword [esi + 0xc4]
jmp 0x404259
fxch st(1)
fcom dword [ecx]
fnstsw ax
test ah, 0x41
jne 0x404266
fst dword [ecx]
jmp 0x404275
fxch st(1)
fcom dword [ecx]
fnstsw ax
test ah, 5
jp 0x404273
fst dword [ecx]
fxch st(1)
fcom dword [ecx + 4]
fnstsw ax
test ah, 0x41
jne 0x404282
fst dword [ecx + 4]
fxch st(1)
fcom dword [ecx + 4]
fnstsw ax
test ah, 5
jp 0x404291
fst dword [ecx + 4]
fld dword [ecx]
fstp dword [ecx + 0xf0]
fld dword [ecx + 4]
fstp dword [ecx + 0xf4]
fxch st(1)
fcom dword [ecx + 0xc]
fnstsw ax
test ah, 0x41
jne 0x4042b1
fst dword [ecx + 0xc]
fxch st(1)
fcom dword [ecx + 0xc]
fnstsw ax
test ah, 5
jp 0x4042c0
fst dword [ecx + 0xc]
fxch st(1)
fcom dword [ecx + 0x10]
fnstsw ax
test ah, 0x41
jne 0x4042cf
fst dword [ecx + 0x10]
fxch st(1)
fcom dword [ecx + 0x10]
fnstsw ax
test ah, 5
jp 0x4042de
fst dword [ecx + 0x10]
fld dword [ecx + 0xc]
fstp dword [ecx + 0xfc]
fld dword [ecx + 0x10]
fstp dword [ecx + 0x100]
fxch st(1)
fcom dword [ecx + 0x18]
fnstsw ax
test ah, 0x41
jne 0x4042ff
fst dword [ecx + 0x18]
fxch st(1)
fcom dword [ecx + 0x18]
fnstsw ax
test ah, 5
jp 0x40430e
fst dword [ecx + 0x18]
fxch st(1)
fcom dword [ecx + 0x1c]
fnstsw ax
test ah, 0x41
jne 0x40431d
fst dword [ecx + 0x1c]
fxch st(1)
fcom dword [ecx + 0x1c]
fnstsw ax
test ah, 5
jp 0x40432c
fst dword [ecx + 0x1c]
fld dword [ecx + 0x18]
fstp dword [ecx + 0x108]
fld dword [ecx + 0x1c]
fstp dword [ecx + 0x10c]
fxch st(1)
fcom dword [ecx + 0x24]
fnstsw ax
test ah, 0x41
jne 0x40434d
fst dword [ecx + 0x24]
fxch st(1)
fcom dword [ecx + 0x24]
fnstsw ax
test ah, 5
jp 0x40435c
fst dword [ecx + 0x24]
fxch st(1)
fcom dword [ecx + 0x28]
fnstsw ax
test ah, 0x41
jne 0x40436b
fst dword [ecx + 0x28]
fxch st(1)
fcom dword [ecx + 0x28]
fnstsw ax
test ah, 5
jp 0x40437a
fst dword [ecx + 0x28]
fld dword [ecx + 0x24]
fstp dword [ecx + 0x114]
fld dword [ecx + 0x28]
fstp dword [ecx + 0x118]
fxch st(1)
fcom dword [ecx + 0x30]
fnstsw ax
test ah, 0x41
jne 0x40439b
fst dword [ecx + 0x30]
fxch st(1)
fcom dword [ecx + 0x30]
fnstsw ax
test ah, 5
jp 0x4043aa
fst dword [ecx + 0x30]
fxch st(1)
fcom dword [ecx + 0x34]
fnstsw ax
test ah, 0x41
jne 0x4043b9
fst dword [ecx + 0x34]
fxch st(1)
fcom dword [ecx + 0x34]
fnstsw ax
test ah, 5
jp 0x4043c8
fst dword [ecx + 0x34]
fld dword [ecx + 0x30]
fstp dword [ecx + 0x120]
fld dword [ecx + 0x34]
fstp dword [ecx + 0x124]
fxch st(1)
fcom dword [ecx + 0x3c]
fnstsw ax
test ah, 0x41
jne 0x4043e9
fst dword [ecx + 0x3c]
fxch st(1)
fcom dword [ecx + 0x3c]
fnstsw ax
test ah, 5
jp 0x4043f8
fst dword [ecx + 0x3c]
fxch st(1)
fcom dword [ecx + 0x40]
fnstsw ax
test ah, 0x41
jne 0x404407
fst dword [ecx + 0x40]
fxch st(1)
fcom dword [ecx + 0x40]
fnstsw ax
test ah, 5
jp 0x404416
fst dword [ecx + 0x40]
fld dword [ecx + 0x3c]
add ecx, 0x48
dec edi
fstp dword [ecx + 0xe4]
fld dword [ecx - 8]
fstp dword [ecx + 0xe8]
jne 0x404257
fld dword [ebp - 0xc]
mov eax, 1
fstp dword [esi + 0x1b0]
mov dword [esi + 0x210], eax
fld dword [ebp + 0x14]
mov dword [esi + 0x21c], eax
fstp dword [esi + 0x1b4]
mov dword [esi + 0x228], eax
fld dword [ebp - 0x14]
mov dword [esi + 0x234], eax
fidiv dword [esi + 0x24]
mov eax, 7
mov dword [esi + 0x244], eax
mov dword [esi + 0x248], eax
mov eax, 3
mov dword [esi + 0x25c], eax
mov dword [esi + 0x260], eax
mov dword [esi + 0x26c], eax
mov dword [esi + 0x278], eax
xor eax, eax
mov ecx, 5
mov dword [esi + 0x20c], edi
mov edi, 6
mov dword [esi + 0x220], ecx
mov dword [esi + 0x224], ecx
mov dword [esi + 0x238], edx
mov dword [esi + 0x240], edx
mov dword [esi + 0x24c], edx
mov edx, 8
mov ecx, 9
mov dword [esi + 0x280], eax
mov dword [esi + 0x284], eax
mov dword [esi + 0x290], eax
mov eax, 0xb
mov ebx, 4
mov dword [esi + 0x22c], edi
mov dword [esi + 0x230], edi
mov dword [esi + 0x23c], edi
mov dword [esi + 0x250], edx
mov dword [esi + 0x258], edx
mov dword [esi + 0x264], edx
mov dword [esi + 0x268], ecx
mov dword [esi + 0x270], ecx
mov ecx, 0xa
mov dword [esi + 0x294], eax
mov dword [esi + 0x29c], eax
mov eax, 0xc
mov dword [esi + 0x2b8], edi
mov dword [esi + 0x2c0], edi
mov edi, 7
mov dword [esi + 0x2d0], edx
mov dword [esi + 0x2d8], edx
fstp dword [ebp + 8]
mov edx, 9
mov dword [esi + 0x214], ebx
mov dword [esi + 0x218], ebx
mov dword [esi + 0x254], 2
mov dword [esi + 0x274], ecx
mov dword [esi + 0x27c], ecx
mov dword [esi + 0x288], ecx
mov dword [esi + 0x28c], 0xb
mov dword [esi + 0x298], ebx
mov dword [esi + 0x2a0], ebx
mov dword [esi + 0x2a4], eax
mov dword [esi + 0x2a8], ebx
mov dword [esi + 0x2ac], 5
mov dword [esi + 0x2b0], eax
mov dword [esi + 0x2b4], 5
mov dword [esi + 0x2bc], eax
mov dword [esi + 0x2c4], edi
mov dword [esi + 0x2c8], eax
mov dword [esi + 0x2cc], edi
mov dword [esi + 0x2d4], eax
mov dword [esi + 0x2dc], edx
mov dword [esi + 0x2e0], eax
mov dword [esi + 0x2e4], edx
mov dword [esi + 0x2e8], ecx
mov dword [esi + 0x2ec], eax
mov dword [esi + 0x2f0], ecx
mov dword [esi + 0x2f4], 0xb
mov dword [esi + 0x2f8], eax
sub esp, 0x10
fstp dword [esp + 0xc]
fst dword [esp + 8]
fst dword [esp + 4]
fstp dword [esp]
call dword [sym.imp.OPENGL32.dll_glClearColor]
fld1
sub esp, 0xc
fst dword [esp + 8]
fst dword [esp + 4]
fstp dword [esp]
call dword [sym.imp.OPENGL32.dll_glColor3f]
push 0x4100
call dword [sym.imp.OPENGL32.dll_glClear]
push ebx
call dword [sym.imp.OPENGL32.dll_glBegin]
mov ebx, dword [sym.imp.OPENGL32.dll_glTexCoord2f]
lea edi, [esi + 0x214]
mov dword [ebp + 0xc], 0x14
nop
fld1
mov eax, dword [edi - 4]
fild dword [esi + 0x24]
mov ecx, dword [edi]
mov edx, dword [edi - 8]
lea eax, [eax + eax*2]
add eax, eax
fstp dword [ebp + 0x10]
add eax, eax
fld dword [ebp - 0x18]
lea ecx, [ecx + ecx*2]
fld dword [ebp + 0x10]
add ecx, ecx
fld st(0)
add ecx, ecx
fdivp st(2)
lea edx, [edx + edx*2]
add edx, edx
add edx, edx
sub esp, 8
fld dword [eax + esi + 0x30]
fmul st(2)
fstp dword [ebp - 8]
fdivr dword [ebp - 0x14]
fld dword [eax + esi + 0x34]
fmul st(1)
fstp dword [ebp - 0xc]
fld dword [ecx + esi + 0x30]
fmul st(2)
fstp dword [ebp - 0x24]
fld dword [ecx + esi + 0x34]
fmul st(1)
fstp dword [ebp - 0x20]
fld dword [edx + esi + 0x124]
fld qword [0x55feb8]
fmul st(1), st(0)
fxch st(1)
fstp dword [ebp + 0x14]
fld dword [eax + esi + 0x124]
fmul st(1)
fstp dword [ebp - 4]
fld dword [ecx + esi + 0x124]
fmul st(1)
fstp dword [ebp - 0x28]
fld dword [edx + esi + 0x120]
fmul st(1)
fstp dword [ebp + 0x10]
fld dword [ebp + 0x10]
fsub st(4)
fstp dword [ebp - 0x10]
fld dword [eax + esi + 0x120]
fmul st(1)
fstp dword [ebp + 0x10]
fld dword [ebp + 0x10]
fsub st(4)
fstp dword [ebp - 0x1c]
fmul dword [ecx + esi + 0x120]
fstp dword [ebp + 0x10]
fld dword [ebp + 0x10]
fsubrp st(3)
fxch st(2)
fstp dword [ebp - 0x2c]
fld dword [ebp + 8]
fld dword [edx + esi + 0x34]
fmulp st(3)
fxch st(2)
fstp dword [ebp + 0x10]
fld dword [ebp + 0x10]
fsubp st(2)
fxch st(1)
fstp dword [ebp + 0x10]
fld dword [ebp + 0x10]
fstp dword [esp + 4]
fmul dword [edx + esi + 0x30]
fstp dword [ebp + 0x10]
fld dword [ebp + 0x10]
fstp dword [esp]
call ebx
fldz
sub esp, 0xc
fstp dword [esp + 8]
fld dword [ebp + 0x14]
fld1
fsubrp st(1)
fstp dword [ebp + 0x10]
fld dword [ebp + 0x10]
fstp dword [esp + 4]
fld dword [ebp - 0x10]
fstp dword [esp]
call dword [sym.imp.OPENGL32.dll_glVertex3f]
fld dword [ebp + 8]
sub esp, 8
fsub dword [ebp - 0xc]
fstp dword [ebp + 0x10]
fld dword [ebp + 0x10]
fstp dword [esp + 4]
fld dword [ebp - 8]
fstp dword [esp]
call ebx
fldz
sub esp, 0xc
fstp dword [esp + 8]
fld dword [ebp - 4]
fld1
fsubrp st(1)
fstp dword [ebp + 0x10]
fld dword [ebp + 0x10]
fstp dword [esp + 4]
fld dword [ebp - 0x1c]
fstp dword [esp]
call dword [sym.imp.OPENGL32.dll_glVertex3f]
fld dword [ebp + 8]
sub esp, 8
fsub dword [ebp - 0x20]
fstp dword [ebp + 0x10]
fld dword [ebp + 0x10]
fstp dword [esp + 4]
fld dword [ebp - 0x24]
fstp dword [esp]
call ebx
fldz
sub esp, 0xc
fstp dword [esp + 8]
fld dword [ebp - 0x28]
fld1
fsubrp st(1)
fstp dword [ebp + 0x10]
fld dword [ebp + 0x10]
fstp dword [esp + 4]
fld dword [ebp - 0x2c]
fstp dword [esp]
call dword [sym.imp.OPENGL32.dll_glVertex3f]
add edi, 0xc
dec dword [ebp + 0xc]
jne 0x404660
call dword [sym.imp.OPENGL32.dll_glEnd]
call dword [sym.imp.OPENGL32.dll_glFinish]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10