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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a6bac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x154
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx]
mov dword [esp + 0x90], ebx
cmp word [eax + 0x52], 1
jne 0x415b03
mov dword [ebx + 0x38], 0xbf800000
mov eax, dword [eax + 0x24]
lea esi, [ebx + 0x50]
add eax, 0x1c
push eax
mov ecx, esi
call fcn.0041e610
mov ecx, esi
call fcn.0041e330
mov esi, 1
mov dword [esp + 0x10], esi
jmp 0x415bf7
mov eax, dword [eax + 0x24]
mov ecx, dword [ebp + 0x14]
add eax, 0x1c
push eax
lea eax, [esp + 0x50]
push eax
call fcn.0043e010
mov ecx, dword [eax]
xor esi, esi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], esi
mov edx, dword [eax + 4]
mov dword [esp + 0x38], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx]
add eax, 0x50
cmp word [eax], si
jle 0x415beb
fld dword [esp + 0x3c]
fstp qword [esp + 0x44]
fld dword [esp + 0x38]
lea ecx, [ebx + 0x38]
lea edi, [ebx + 0x50]
fstp qword [esp + 0x7c]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x1c]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x84]
fadd dword [0x5cb160]
push ecx
push edx
movsx edx, word [eax]
fmul dword [ebp + 0x10]
mov dword [esp + 0x24], edx
mov ecx, dword [esp + 0x88]
push ecx
lea ecx, [esp + 0x5c]
fidiv dword [esp + 0x28]
sub esp, 8
fstp qword [esp]
call fcn.0041e260
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x84]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov dword [eax], 0xbf800000
call fcn.0043dfb0
push eax
mov ecx, edi
call fcn.0041e610
mov ecx, edi
call fcn.0041e330
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx]
add ecx, 4
add eax, 0x50
mov dword [esp + 0x10], ecx
inc esi
movsx ecx, word [eax]
add edi, 0xc
cmp esi, ecx
mov dword [esp + 0x1c], esi
jl 0x415b59
mov edx, dword [ebx]
movsx eax, word [edx + 0x50]
mov dword [esp + 0x10], eax
mov esi, eax
cmp esi, 6
jge 0x415c0e
mov ecx, 6
lea edi, [ebx + esi*4 + 0x38]
sub ecx, esi
mov eax, 0xbf800000
rep stosd dword es:[edi], eax
mov eax, dword [ebx]
mov edi, dword [eax + 0x1c]
mov ecx, dword [eax + 0x20]
lea eax, [esp + 0x4c]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp + 0x14]
lea edx, [edi + 0x1c]
push edx
push eax
call fcn.0043e010
mov ecx, dword [eax]
mov dword [esp + 0x5c], ecx
lea ecx, [edi + 0x28]
mov edx, dword [eax + 4]
push ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x64], edx
mov eax, dword [eax + 8]
lea edx, [esp + 0x50]
push edx
mov dword [esp + 0x6c], eax
call fcn.0043e010
mov ecx, dword [eax]
mov dword [esp + 0x84], ecx
lea ecx, [edi + 0x34]
mov edx, dword [eax + 4]
push ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x8c], edx
mov eax, dword [eax + 8]
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x94], eax
call fcn.0043e010
mov ecx, dword [eax]
mov dword [esp + 0x4c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x50], edx
fld dword [esp + 0x50]
fld dword [esp + 0x60]
fld dword [esp + 0x88]
fsub dword [esp + 0x60]
mov eax, dword [eax + 8]
fabs
fxch st(2)
fsub st(1)
mov dword [esp + 0x54], eax
fabs
fxch st(2)
fxch st(1)
fxch st(2)
fcompp
fnstsw ax
test ah, 1
fstp st(0)
je 0x415ccc
mov di, word [edi + 0x42]
mov dword [esp + 0x70], 1
jmp 0x415cd8
mov di, word [edi + 0x44]
mov dword [esp + 0x70], 0
cmp word [ebp + 8], 0
movsx ecx, di
mov dword [esp + 0x74], ecx
je 0x415d46
push 0x3840
call fcn.00586401
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x168], 0
je 0x415d33
mov edi, eax
mov esi, 0x4b0
mov ecx, edi
call fcn.00479c40
add edi, 0xc
dec esi
jne 0x415d0d
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x168], 0xffffffff
mov dword [esp + 0x1c], eax
jmp 0x415d7f
xor eax, eax
mov dword [esp + 0x168], 0xffffffff
mov dword [esp + 0x1c], eax
jmp 0x415d7f
push 0xc
call fcn.00586401
mov edi, eax
add esp, 4
mov dword [esp + 0x58], edi
test edi, edi
mov dword [esp + 0x168], 1
je 0x415d6e
mov ecx, edi
call fcn.00479c40
jmp 0x415d70
xor edi, edi
mov dword [esp + 0x168], 0xffffffff
mov dword [esp + 0x1c], edi
test esi, esi
jle 0x41613f
fld dword [esp + 0x60]
fstp qword [esp + 0xac]
fld dword [esp + 0x64]
fstp qword [esp + 0x44]
fld qword [0x5cb170]
fsin
mov edx, dword [esp + 0x74]
lea eax, [ebx + 0x38]
dec edx
add ebx, 0x50
mov dword [esp + 0x18], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x20], ebx
fstp qword [esp + 0xd4]
fld qword [0x5cb168]
fsin
fstp qword [esp + 0xcc]
fild dword [esp + 0x18]
mov dword [esp + 0x18], esi
fstp dword [esp + 0x58]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x118]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
call fcn.0043e010
mov ecx, dword [eax]
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x44]
mov edx, dword [eax + 4]
push ebx
fld dword [esp + 0x38]
mov eax, dword [eax + 8]
mov dword [esp + 0x3c], edx
fstp qword [esp + 0x30]
mov edx, dword [esp + 0xb4]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xb0]
push ecx
push edx
push eax
push esi
push edi
lea ecx, [esp + 0x118]
call fcn.0041e260
lea ecx, [esp + 0x130]
push eax
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.0043dfb0
mov edx, dword [eax]
cmp word [esp + 0x70], 0
mov dword [esp + 0xa0], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0xa4], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0xa8], edx
je 0x415e7b
fld dword [esp + 0x88]
jmp 0x415e7f
fld dword [esp + 0x50]
mov eax, dword [esp + 0x44]
push ebx
push eax
lea ecx, [esp + 0xf0]
sub esp, 8
fstp qword [esp]
push esi
push edi
call fcn.0041e260
lea ecx, [esp + 0x148]
push eax
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.0043dfb0
fld dword [esp + 0x3c]
fdiv qword [esp + 0xd4]
mov edx, dword [eax]
mov dword [esp + 0x10], 0xff7fffff
mov dword [esp + 0xc0], edx
mov dword [esp + 0x28], 0x7f7fffff
mov ecx, dword [eax + 4]
mov dword [esp + 0xc4], ecx
lea ecx, [esp + 0xa0]
mov edx, dword [eax + 8]
mov eax, dword [esp + 0x58]
mov dword [esp + 0xc8], edx
push eax
lea edx, [esp + 0xc4]
push ecx
lea eax, [esp + 0xfc]
push edx
push eax
fstp qword [esp + 0x6c]
fld dword [esp + 0x4c]
fdiv qword [esp + 0xdc]
fstp qword [esp + 0xec]
call fcn.0041e7a0
add esp, 0xc
lea ecx, [esp + 0x110]
push eax
push ecx
call fcn.0041e900
mov edx, dword [eax]
add esp, 0xc
mov dword [esp + 0xb4], edx
mov ebx, 1
mov ecx, dword [eax + 4]
mov dword [esp + 0x2c], 0
mov dword [esp + 0xb8], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0xbc], edx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x74]
cmp eax, ecx
jge 0x4160ee
fild dword [esp + 0x2c]
lea ecx, [esp + 0xb4]
lea edx, [esp + 0x124]
push ecx
push ecx
fstp dword [esp]
push edx
call fcn.0041e7f0
push eax
lea eax, [esp + 0xb0]
lea ecx, [esp + 0x14c]
push eax
push ecx
call fcn.0041e750
mov edx, dword [eax]
mov dword [esp + 0xac], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0xb0], ecx
mov ecx, dword [esp + 0x38]
mov edx, dword [eax + 8]
lea eax, [esp + 0xac]
mov dword [esp + 0xb4], edx
push eax
lea edx, [esp + 0x170]
push ecx
push edx
call fcn.0041e7a0
add esp, 0x24
mov ecx, eax
call fcn.0041e2e0
fcom qword [esp + 0xdc]
fnstsw ax
test ah, 1
jne 0x41608d
fcomp qword [esp + 0x5c]
fnstsw ax
test ah, 0x41
je 0x41608f
mov eax, dword [esp + 0x24]
mov ebx, 1
add eax, 0x28
mov dword [esp + 0x14], 0
movsx esi, word [eax]
dec esi
lea edi, [esi + esi*2]
shl edi, 2
test esi, esi
jl 0x4160ac
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x2c]
lea ecx, [esp + 0x7c]
push ecx
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + edi + 8]
mov edx, dword [esp + 0x20]
push edx
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
mov edx, dword [esp + 0x30]
push ecx
push eax
lea eax, [esp + 0xac]
push edx
lea ecx, [esp + 0x94]
push eax
push ecx
mov ecx, dword [esp + 0xb4]
call fcn.00418fe0
mov edx, dword [esp + 0x24]
push esi
mov ebx, eax
lea ecx, [edx + 0x28]
call fcn.00426200
test ax, ax
je 0x416093
mov eax, dword [esp + 0x24]
push esi
lea ecx, [eax + 0x28]
call fcn.004261d0
fmul dword [esp + 0x78]
jmp 0x416097
fstp st(0)
xor ebx, ebx
jmp 0x4160da
fld dword [esp + 0x78]
fadd dword [esp + 0x14]
dec esi
sub edi, 0xc
test bx, bx
fstp dword [esp + 0x14]
jne 0x41601b
fld dword [esp + 0x14]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 0x41
jne 0x4160c3
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
fld dword [esp + 0x14]
fcomp dword [esp + 0x28]
fnstsw ax
test ah, 1
je 0x4160da
mov edx, dword [esp + 0x14]
mov dword [esp + 0x28], edx
mov ecx, dword [esp + 0x2c]
inc ecx
test bx, bx
mov dword [esp + 0x2c], ecx
jne 0x415f58
jmp 0x41611a
test bx, bx
je 0x41611a
fld dword [esp + 0x10]
fcomp dword [0x5cad98]
fnstsw ax
test ah, 0x40
jne 0x41610e
fld dword [esp + 0x28]
fdiv dword [esp + 0x10]
jmp 0x416114
fld dword [0x5cad98]
mov eax, dword [esp + 0x40]
fstp dword [eax]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
add edx, 4
add ecx, 0xc
dec eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
jne 0x415ddb
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0058642a
mov ecx, dword [esp + 0x164]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14