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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x7c
and eax, 0xffff
push esi
mov esi, ecx
lea ecx, [eax*8]
sub ecx, eax
dec word [esi + ecx*4 + 0x10]
lea eax, [esi + ecx*4]
mov cx, word [esi + ecx*4 + 0x10]
test cx, cx
jne 0x407509
mov edx, dword [esi]
push ebx
push ebp
push edi
mov cx, word [edx + 0x74fb74]
xor edx, edx
mov dx, word [eax + 8]
mov word [eax + 0x10], cx
mov dword [esp + 0x38], edx
xor ecx, ecx
fild dword [esp + 0x38]
mov cx, word [eax + 0xa]
xor ebx, ebx
mov dword [esp + 0x38], ecx
mov ebp, 0x37
fadd dword [0x4851d4]
fmul dword [0x4851d0]
fstp dword [esp + 0x1c]
fild dword [esp + 0x38]
mov dword [esp + 0x38], 0x18
fadd dword [0x4851d4]
fmul dword [0x4851d0]
fstp dword [esp + 0x20]
mov edx, dword [esi]
lea ecx, [ebx + edx + 0x28ed80]
call fcn.00421fd0
test al, 8
je 0x4074f1
mov ecx, dword [esi]
fld dword [ebx + ecx + 0x28ede0]
fsub dword [esp + 0x1c]
mov dx, word [ecx + 0x74fb72]
fabs
fstp dword [esp + 0x10]
fld dword [ebx + ecx + 0x28ede4]
fsub dword [esp + 0x20]
fabs
fstp dword [esp + 0x14]
fld dword [esp + 0x10]
fcomp dword [0x4851f4]
fnstsw ax
test ah, 5
jp 0x4074f1
fld dword [esp + 0x14]
fcomp dword [0x4851f4]
fnstsw ax
test ah, 5
jp 0x4074f1
push edx
lea ecx, [ebx + ecx + 0x28ed80]
call fcn.00423d30
test al, al
je 0x4074f1
fld dword [esp + 0x10]
fcomp dword [esp + 0x14]
fnstsw ax
and eax, 0x4100
jne 0x4072e0
fld dword [esp + 0x10]
jmp 0x4072e4
fld dword [esp + 0x14]
call fcn.00479904
mov ecx, dword [esi]
mov edi, eax
and edi, 0xffff
add ecx, ebx
mov dword [esp + 0x34], edi
fild dword [esp + 0x34]
test ax, ax
fstp dword [esp + 0x18]
fld dword [ecx + 0x28ede0]
fsub dword [esp + 0x1c]
fdiv dword [esp + 0x18]
fstp dword [esp + 0x10]
fld dword [ecx + 0x28ede4]
fsub dword [esp + 0x20]
fdiv dword [esp + 0x18]
fstp dword [esp + 0x14]
jbe 0x4074f1
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
fild dword [esp + 0x30]
fmul dword [0x4851fc]
fdiv dword [esp + 0x18]
fsin
fadd st(0), st(0)
fstp dword [esp + 0x34]
fild dword [esp + 0x28]
fst dword [esp + 0x24]
fmul dword [esp + 0x10]
fadd dword [esp + 0x34]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x40]
call fcn.004798e5
mov dword [esp + 0x3c], eax
fild dword [esp + 0x3c]
fmul dword [0x4851e0]
fild dword [esp + 0x2c]
fmul dword [0x4851fc]
fdiv dword [esp + 0x18]
fsin
fmul qword [0x485298]
fxch st(1)
fxch st(1)
faddp st(1)
fadd dword [0x485290]
fstp dword [esp + 0x44]
fld dword [esp + 0x24]
fmul dword [esp + 0x14]
fadd dword [esp + 0x34]
fadd dword [esp + 0x20]
fstp dword [esp + 0x48]
call fcn.004798e5
mov dword [esp + 0x3c], eax
mov word [esp + 0x84], 0x34
fild dword [esp + 0x3c]
mov word [esp + 0x86], bp
fmul dword [0x485270]
fadd dword [0x485290]
fst dword [esp + 0x78]
fstp dword [esp + 0x74]
call fcn.004798e5
mov dword [esp + 0x3c], eax
fild dword [esp + 0x3c]
fmul dword [0x485274]
call fcn.00479904
and eax, 0xffff
mov dword [esp + 0x3c], eax
fild dword [esp + 0x3c]
fld dword [esp + 0x24]
fmul dword [0x485240]
faddp st(1)
fadd dword [0x4851e4]
call fcn.00479904
mov word [esp + 0x88], ax
call fcn.004798e5
mov dword [esp + 0x3c], eax
fild dword [esp + 0x3c]
fmul dword [0x48528c]
call fcn.00479904
mov ecx, dword [esi]
mov edx, 0x14
sub edx, eax
lea eax, [esp + 0x40]
push eax
add ecx, 0x1f70ec
mov word [esp + 0x8e], dx
mov dword [esp + 0x80], 0x3f8147ae
mov dword [esp + 0x84], 0x3f8147ae
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x5c], 0x3d4ccccd
mov dword [esp + 0x60], 0x3d4ccccd
mov dword [esp + 0x64], 0x3d4ccccd
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
call fcn.00448dc0
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
inc eax
add edx, 0xb4
add ecx, 0x21c
dec edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ecx
jne 0x40733c
mov eax, dword [esp + 0x38]
add ebx, 0xe30
dec eax
mov dword [esp + 0x38], eax
jne 0x407249
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x7c
ret 4