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

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
push edi
xor eax, eax
mov ecx, 0xd
mov edi, esi
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x3c]
mov eax, dword [edi]
mov dword [esi + 0x24], eax
sub esp, 8
fild dword [edi]
mov dword [esp + 0x18], 0xffffff9d
mov ebp, 1
fmul dword [0x5b9d18]
fldln2
fxch st(1)
fyl2x
fld qword [0x5c2588]
fldln2
fxch st(1)
fyl2x
fdivp st(1)
fadd qword [0x5c2580]
fstp qword [esp]
call fcn.0056b7b0
fsub qword [0x5c2578]
call fcn.004af796
fild dword [esp + 0x4c]
fild dword [esp + 0x48]
lea ecx, [eax + 1]
mov edx, ebp
shl edx, cl
fst qword [esp + 0x28]
mov dword [esi + 0x20], eax
mov dword [esp + 0x3c], edx
fild dword [esp + 0x3c]
fld st(2)
fmul dword [0x5b9d14]
fmul qword [0x5c2580]
fdiv st(2)
fldln2
fxch st(1)
fyl2x
fmul qword [0x5b9cd8]
fsub qword [0x5b9ce8]
fmul st(1)
fisub dword [edi]
call fcn.004af796
fild dword [esp + 0x48]
mov edi, eax
mov dword [esi + 0x1c], edi
fadd dword [0x5b9d14]
fmul st(3)
fmul qword [0x5c2580]
fdiv st(2)
fldln2
fxch st(1)
fyl2x
fmul qword [0x5b9cd8]
fsub qword [0x5b9ce8]
fmul st(1)
fadd qword [0x5c2580]
call fcn.004af796
fstp st(0)
sub eax, edi
fstp st(0)
mov edi, dword [esp + 0x48]
fstp st(0)
inc eax
lea ebx, [edi*4]
push ebx
mov dword [esi + 0x28], eax
call fcn.004b0c90
push ebx
mov dword [esi + 0x10], eax
call fcn.004b0c90
push ebx
mov dword [esi + 0x14], eax
call fcn.004b0c90
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x4c]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x58]
add esp, 0x14
cmp eax, 0x6590
mov dword [esi], edi
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 0x3f800000
jge 0x5537f1
mov dword [esi + 0x30], 0
jmp 0x55380f
cmp eax, 0x9470
jge 0x553801
mov dword [esi + 0x30], 0x3f70a3d7
jmp 0x55380f
cmp eax, 0xb3b0
jle 0x55380f
mov dword [esi + 0x30], 0x3fa33333
fild dword [esp + 0x44]
xor ebx, ebx
mov dword [esp + 0x34], ebx
fstp qword [esp + 0x28]
lea ecx, [ecx]
mov ecx, dword [esp + 0x34]
inc ecx
mov dword [esp + 0x3c], ecx
fild dword [esp + 0x3c]
sub esp, 8
fmul qword [0x5b9cd0]
fsub qword [0x5c2588]
fadd qword [0x5b9ce8]
fmul qword [0x5b9ce0]
fldl2e
fmulp st(1)
fld st(0)
frndint
fxch st(1)
fsub st(1)
f2xm1
fld1
faddp st(1)
fscale
fstp st(1)
fmul qword [esp + 0x28]
fadd st(0), st(0)
fdiv qword [esp + 0x30]
fadd qword [0x5c2580]
fstp qword [esp]
call fcn.0056b7b0
add esp, 8
call fcn.004af796
cmp ebx, eax
mov ecx, dword [esp + 0x34]
fld dword [ecx*4 + 0x6d6b40]
jge 0x5538c2
fld dword [ecx*4 + 0x6d6b44]
mov edx, eax
sub edx, ebx
fsub st(1)
mov dword [esp + 0x34], edx
fidiv dword [esp + 0x34]
fstp dword [esp + 0x34]
cmp ebx, edi
jge 0x5538c2
fld qword [0x58f218]
mov ecx, dword [esi + 0x10]
fadd st(1)
inc ebx
cmp ebx, eax
fstp dword [ecx + ebx*4 - 4]
fadd dword [esp + 0x34]
jl 0x5538a6
mov eax, dword [esp + 0x3c]
fstp st(0)
cmp eax, 0x57
mov dword [esp + 0x34], eax
jl 0x553820
xor ebx, ebx
test edi, edi
jle 0x553aa7
mov eax, dword [esp + 0x44]
cdq
lea ecx, [edi + edi]
idiv ecx
mov ecx, eax
mov edx, eax
imul edx, ecx
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], eax
lea ebx, [ebx]
mov eax, dword [esp + 0x34]
fild dword [esp + 0x3c]
imul eax, ebx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 0x78]
fild dword [esp + 0x44]
mov edi, dword [esp + 0x10]
add eax, edi
cmp eax, ebx
fmul dword [0x5b9d10]
fld1
fpatan
fmul qword [0x5b9cb0]
fld st(1)
fmul dword [0x5b9d0c]
fld1
fpatan
fmul qword [0x5b9ca8]
faddp st(1)
fxch st(1)
fmul dword [0x5b9d08]
faddp st(1)
fstp dword [esp + 0x18]
jge 0x5539e3
mov edi, dword [esp + 0x38]
fld dword [esp + 0x18]
fsub dword [edi + 0x70]
mov dword [esp + 0x14], eax
mov eax, ecx
imul eax, dword [esp + 0x10]
mov edi, edx
imul edi, dword [esp + 0x10]
mov dword [esp + 0x44], eax
jmp 0x553980
fild dword [esp + 0x44]
mov eax, edi
imul eax, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fmul dword [0x5b9d10]
fld1
fpatan
fmul qword [0x5b9cb0]
fld st(1)
fmul dword [0x5b9d0c]
fld1
fpatan
fmul qword [0x5b9ca8]
faddp st(1)
fxch st(1)
fmul dword [0x5b9d08]
faddp st(1)
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x5539e1
inc dword [esp + 0x10]
add dword [esp + 0x44], ecx
mov eax, dword [esp + 0x14]
add edi, edx
inc eax
cmp eax, ebx
mov dword [esp + 0x14], eax
jl 0x553980
fstp st(0)
cmp ebp, dword [esp + 0x40]
jg 0x553a70
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 0x7c]
add eax, ebx
mov dword [esp + 0x1c], eax
mov eax, ecx
imul eax, ebp
mov edi, edx
mov dword [esp + 0x44], eax
imul edi, ebp
cmp ebp, dword [esp + 0x1c]
jl 0x553a61
fild dword [esp + 0x44]
mov eax, edi
imul eax, ebp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
fild dword [esp + 0x14]
fmul dword [0x5b9d10]
fld1
fpatan
fmul qword [0x5b9cb0]
fld st(1)
fmul dword [0x5b9d0c]
fld1
fpatan
fmul qword [0x5b9ca8]
faddp st(1)
fxch st(1)
fmul dword [0x5b9d08]
faddp st(1)
fld dword [esp + 0x18]
fadd dword [eax + 0x74]
fcompp
fnstsw ax
test ah, 0x41
jne 0x553a70
add dword [esp + 0x44], ecx
mov eax, dword [esp + 0x40]
inc ebp
add edi, edx
cmp ebp, eax
jle 0x553a08
mov eax, dword [esp + 0x10]
mov edi, dword [esi + 0x18]
shl eax, 0x10
lea eax, [eax + ebp - 0x10001]
mov dword [edi + ebx*4], eax
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x3c]
add eax, edx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x40]
inc ebx
add edi, ecx
cmp ebx, eax
mov dword [esp + 0x3c], edi
jl 0x553900
mov edi, eax
xor ebx, ebx
test edi, edi
mov dword [esp + 0x34], ebx
jle 0x553b0a
fild dword [esp + 0x34]
mov ecx, dword [esi + 0x20]
inc ecx
mov edx, 1
fadd dword [0x5b9d14]
shl edx, cl
fmul qword [esp + 0x28]
mov dword [esp + 0x44], edx
fmul qword [0x5c2580]
fdiv qword [esp + 0x20]
fldln2
fxch st(1)
fyl2x
fmul qword [0x5b9cd8]
fsub qword [0x5b9ce8]
fild dword [esp + 0x44]
fmulp st(1)
fadd qword [0x5c2580]
call fcn.004af796
mov ecx, dword [esi + 0x14]
mov dword [ecx + ebx*4], eax
inc ebx
cmp ebx, edi
mov dword [esp + 0x34], ebx
jl 0x553ab1
fld qword [esp + 0x28]
mov eax, dword [esp + 0x38]
fmul qword [0x5c2580]
mov edx, dword [eax + 0x1c]
mov ecx, dword [eax + 0x18]
push edx
fdiv qword [esp + 0x24]
push ecx
push edi
push ecx
lea ecx, [eax + 0x24]
fstp dword [esp]
call fcn.00552b20
push 0xc
mov dword [esi + 8], eax
call fcn.004b0c90
add esp, 0x14
mov dword [esi + 0xc], eax
xor ebx, ebx
lea eax, [edi*4]
push eax
call fcn.004b0c90
mov edx, dword [esi + 0xc]
mov dword [ebx + edx], eax
add ebx, 4
add esp, 4
cmp ebx, 0xc
jl 0x553b43
mov ebx, dword [esp + 0x40]
xor edi, edi
test ebx, ebx
mov dword [esp + 0x34], edi
jle 0x553c5a
fld qword [esp + 0x20]
fadd st(0), st(0)
lea esp, [esp]
fild dword [esp + 0x34]
fadd qword [0x5c2580]
fmul qword [esp + 0x28]
fdiv st(1)
fldln2
fxch st(1)
fyl2x
fmul qword [0x5b9cd8]
fsub qword [0x5b9ce8]
fadd st(0), st(0)
fcom dword [0x5a746c]
fnstsw ax
test ah, 5
jp 0x553bbb
fstp st(0)
fld dword [0x5a746c]
jmp 0x553bd0
fcom dword [0x5b9d04]
fnstsw ax
test ah, 1
jne 0x553bd0
fstp st(0)
fld dword [0x5b9d04]
fld st(0)
call fcn.004af796
mov ecx, dword [esi + 4]
mov dword [esp + 0x40], eax
fisub dword [esp + 0x40]
inc edi
cmp edi, ebx
fld qword [0x5c2578]
mov dword [esp + 0x34], edi
fsub st(1)
fld st(1)
fmul dword [ecx + eax*4 + 0x88]
fld dword [ecx + eax*4 + 0x84]
fmul st(2)
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
faddp st(1)
fstp dword [edx + edi*4 - 4]
mov ecx, dword [esi + 4]
fld st(1)
fmul dword [ecx + eax*4 + 0xcc]
fld dword [ecx + eax*4 + 0xc8]
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 4]
fmul st(2)
faddp st(1)
fstp dword [edx + edi*4 - 4]
mov ecx, dword [esi + 4]
fxch st(1)
fmul dword [ecx + eax*4 + 0x110]
fld dword [ecx + eax*4 + 0x10c]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 8]
fmul st(2)
faddp st(1)
fstp st(1)
fstp dword [ecx + edi*4 - 4]
jl 0x553b80
fstp st(0)
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret