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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x13c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
neg eax
sbb eax, eax
push ebx
push esi
mov esi, dword [ebp + 0x18]
and eax, 3
push edi
add eax, 2
mov dword [esi], eax
call fcn.00486730
mov ecx, dword [0x5180ac]
xor eax, eax
cmp ecx, 1
mov dword [esp + 0x1c], eax
jle 0x4804a6
mov ecx, dword [esi]
mov ebx, dword [ebp + 8]
inc ecx
lea edx, [esp + 0x10]
mov dword [esp + 0x10], ecx
push eax
fild dword [esp + 0x14]
push edx
mov ecx, ebx
fdivr qword [0x4e7f50]
fstp qword [esp + 0x80]
call fcn.004861e0
mov ecx, ebx
call fcn.00486300
mov esi, eax
mov eax, dword [0x51807c]
test eax, eax
mov dword [esp + 0x2c], esi
je 0x480154
mov eax, dword [0x5180ac]
lea ecx, [esp + 0x10]
dec eax
push eax
push ecx
mov ecx, ebx
call fcn.004861e0
mov ecx, ebx
call fcn.00486300
lea edx, [esp + 0xb8]
push eax
push edx
mov ecx, esi
call fcn.00497ee0
mov ecx, 6
mov esi, eax
lea edi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x48]
call fcn.0047dd70
fstp qword [esp + 0x40]
lea eax, [esp + 0x10]
push 0
push eax
mov ecx, ebx
call fcn.004861e0
mov esi, dword [esp + 0x2c]
jmp 0x480164
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0x4133446c
mov ecx, ebx
mov dword [esp + 0x18], 1
call fcn.004861a0
mov ecx, ebx
call fcn.00486300
lea ecx, [esp + 0xb8]
push esi
push ecx
mov ecx, eax
mov dword [esp + 0x1c], eax
call fcn.00497ee0
mov ecx, 6
mov esi, eax
lea edi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x48]
call fcn.0047dd70
mov eax, dword [0x5180ac]
mov ecx, 1
fstp qword [esp + 0x20]
cmp eax, ecx
mov dword [esp + 0x30], ecx
jl 0x4804a2
mov esi, dword [esp + 0x18]
inc esi
cmp ecx, eax
mov dword [esp + 0x18], esi
jge 0x480226
mov ecx, ebx
call fcn.004861a0
mov ecx, ebx
call fcn.00486300
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x118]
push edx
push ecx
mov ecx, eax
mov dword [esp + 0x18], eax
call fcn.00497ee0
mov ecx, 6
mov esi, eax
lea edi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
fld qword [esp + 0x50]
fld qword [esp + 0x58]
fld qword [esp + 0x48]
fmul qword [esp + 0x48]
fld st(1)
fmul st(2)
faddp st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fstp qword [esp + 0x38]
fstp st(0)
fstp st(0)
jmp 0x4802a4
mov eax, dword [0x51807c]
test eax, eax
je 0x480294
lea edx, [esp + 0x80]
push 1
push edx
mov ecx, ebx
call fcn.004861e0
mov ecx, ebx
call fcn.00486300
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xd0]
push ecx
push edx
mov ecx, eax
mov dword [esp + 0x18], eax
call fcn.00497ee0
mov ecx, 6
mov esi, eax
lea edi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
fld qword [esp + 0x50]
fld qword [esp + 0x58]
fld qword [esp + 0x48]
fmul qword [esp + 0x48]
fld st(1)
fmul st(2)
faddp st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fstp qword [esp + 0x38]
fstp st(0)
fstp st(0)
jmp 0x4802a4
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0x4133446c
fld qword [esp + 0x20]
fcomp qword [0x518070]
fnstsw ax
test ah, 0x41
jne 0x48045c
fld qword [esp + 0x40]
fmul qword [ebp + 0x10]
fcomp qword [esp + 0x20]
fnstsw ax
test ah, 1
jne 0x4802e1
fld qword [esp + 0x38]
fmul qword [ebp + 0x10]
fcomp qword [esp + 0x20]
fnstsw ax
test ah, 1
je 0x48045c
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x74]
add eax, 0xfffffffe
push eax
push ecx
mov ecx, ebx
call fcn.004861e0
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x34], 1
cmp dword [edx], 1
jl 0x48040e
fild dword [esp + 0x34]
lea edx, [esp + 0xe8]
fmul qword [esp + 0x78]
fstp qword [esp + 0x60]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
push edx
call fcn.0047ffe0
fld qword [0x4e7f50]
fsub qword [esp + 0x60]
mov ecx, 6
mov esi, eax
lea edi, [esp + 0xa0]
sub esp, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x108]
fstp qword [esp]
push eax
call fcn.0047ffe0
mov ecx, 6
mov esi, eax
lea edi, [esp + 0x88]
sub esp, 8
rep movsd dword es:[edi], dword [esi]
fld qword [esp + 0xa0]
fadd qword [esp + 0xb8]
fstp qword [esp]
fld qword [esp + 0x98]
fadd qword [esp + 0xb0]
sub esp, 8
lea ecx, [esp + 0x140]
fstp qword [esp]
fld qword [esp + 0x98]
fadd qword [esp + 0xb0]
sub esp, 8
fstp qword [esp]
call fcn.0044bf10
mov ecx, 6
mov esi, eax
lea edi, [esp + 0xb8]
push 0x18
rep movsd dword es:[edi], dword [esi]
call fcn.004bb163
add esp, 4
test eax, eax
je 0x4803e9
mov ecx, 6
lea esi, [esp + 0xb8]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
jmp 0x4803eb
xor eax, eax
lea ecx, [esp + 0x6c]
push eax
push ecx
mov ecx, ebx
call fcn.00486410
mov edx, dword [ebp + 0x18]
mov eax, dword [esp + 0x34]
inc eax
mov ecx, dword [edx]
mov dword [esp + 0x34], eax
cmp eax, ecx
jle 0x480309
push 4
call fcn.004bb163
add esp, 4
test eax, eax
je 0x480424
mov ecx, dword [esp + 0x30]
mov dword [eax], ecx
jmp 0x480426
xor eax, eax
mov ecx, dword [ebp + 0x1c]
lea edx, [esp + 0x70]
push eax
push edx
call fcn.004804b0
mov ecx, dword [ebp + 0x18]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov edx, dword [ecx]
inc esi
add eax, edx
lea edx, [esp + 0x84]
push eax
push edx
mov ecx, ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], eax
call fcn.004861e0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x44], eax
mov eax, dword [0x5180ac]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x3c]
inc ecx
cmp ecx, eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], ecx
jle 0x4801be
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret