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

Disassembly:
push 0xffffffffffffffff
push 0x64a456
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
mov eax, dword [0xb22200]
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebp
mov dword [esp + 0x90], ebp
mov dword [esp + 0x8c], ebp
je 0x5be156
fld dword [esp + 0x170]
fadd dword [0x665e58]
lea eax, [esp + 0x88]
push eax
sub esp, 0xc
fst dword [esp + 0x24]
mov ecx, esp
fstp dword [esp + 0x3c]
mov edx, dword [esp + 0x3c]
fld dword [esp + 0x184]
mov dword [ecx], edx
fadd dword [0x665e58]
mov eax, ebp
mov dword [ecx + 4], eax
mov dword [esp + 0x178], ebp
fst dword [esp + 0x50]
mov dword [esp + 0x40], ebp
fstp dword [esp + 0x44]
mov edx, dword [esp + 0x44]
mov dword [ecx + 8], edx
mov ecx, 0xb1cee8
call fcn.00595c70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x40]
sub esp, 0xc
mov dword [esp + 0x40], ecx
mov edx, esp
mov dword [edx], eax
mov ecx, ebp
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x40]
mov dword [edx + 4], ecx
mov ecx, 0xb1cee8
mov dword [esp + 0x3c], ebp
mov dword [edx + 8], eax
call fcn.00596110
fld dword [esp + 0x170]
fadd dword [0x665e38]
mov ecx, dword [esp + 0x170]
mov edx, dword [esp + 0x174]
mov edi, dword [esp + 0x178]
mov dword [esp + 0x70], eax
mov dword [esp + 0x80], edx
mov dword [esp + 0x78], ecx
fstp dword [esp + 0x78]
fld dword [esp + 0x174]
lea eax, [ebx + 0xbc]
fadd dword [0x665e38]
mov dword [eax], ecx
mov ecx, dword [esp + 0x80]
mov edx, ebp
mov dword [eax + 4], edx
fstp dword [esp + 0x80]
fild dword [0x68c35c]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x78]
lea edx, [ebx + 0xc8]
mov dword [edx], eax
mov eax, dword [esp + 0x80]
mov ecx, ebp
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov dword [ebx + 0xb8], edi
fidiv dword [0x688d20]
mov eax, dword [ebx + 0xd8]
mov ecx, dword [eax]
push ebp
lea edx, [esp + 0x14]
push edx
push ebp
push ebp
mov dword [esp + 0x8c], ebp
push eax
mov dword [esp + 0x44], ebp
mov dword [esp + 0xfc], 0x47c35000
mov dword [esp + 0x90], ebp
mov dword [esp + 0x28], 0xcb189680
mov dword [esp + 0x54], 0x4b189680
fstp dword [esp + 0xa8]
call dword [ecx + 0x2c]
mov ecx, dword [esp + 0x174]
mov eax, dword [esp + 0x170]
lea edx, [esp + 0x1c]
mov dword [esp + 0x24], ecx
push edx
lea ecx, [ebx + 0x1c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebp
call fcn.0057714f
call fcn.006167ae
cdq
mov ecx, 0x3e8
idiv ecx
cmp edi, ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
fmul dword [0x664d9c]
fstp dword [ebx + 0xd4]
jle 0x5be139
xor esi, esi
mov dword [esp + 0x68], edi
lea ebx, [ebx]
call fcn.006167ae
cdq
mov ecx, 0x1ec
idiv ecx
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
fadd dword [esp + 0x170]
fst dword [esp + 0x2c]
fstp dword [esp + 0xe4]
call fcn.006167ae
cdq
mov ecx, 0x1ec
idiv ecx
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
fadd dword [esp + 0x174]
fstp dword [esp + 0x34]
mov edx, dword [esp + 0x34]
fild dword [0x68c35c]
mov dword [esp + 0xec], edx
fdivr dword [0x64fe64]
fld dword [esp + 0x2c]
fmul st(1)
call fcn.0061672c
mov edi, dword [0x68c35c]
imul eax, edi
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fsubr dword [esp + 0x2c]
fstp dword [esp + 0x50]
fld dword [esp + 0x34]
fmul st(1)
call fcn.0061672c
imul eax, edi
fstp st(0)
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fsubr dword [esp + 0x34]
fstp dword [esp + 0x5c]
fld dword [esp + 0x50]
fcomp dword [0x64fe74]
fnstsw ax
test ah, 5
jnp 0x5be12f
fld dword [esp + 0x5c]
fcomp dword [0x64fe74]
fnstsw ax
test ah, 5
jnp 0x5be12f
cmp dword [esp + 0x70], ebp
je 0x5be12f
fld dword [0x64fe64]
fdiv dword [esp + 0x94]
fld dword [esp + 0x5c]
fmul st(1)
call fcn.0061672c
fld dword [esp + 0x50]
fmul st(1)
mov edi, eax
call fcn.0061672c
fstp st(0)
mov edx, dword [esp + 0x70]
mov ecx, edi
imul ecx, dword [0x688d20]
add ecx, eax
mov dword [esp + 0x28], eax
mov al, byte [ecx + edx]
and al, 0xf0
cmp al, 0x80
jne 0x5be12f
mov ecx, dword [esp + 0x8c]
mov eax, 0x55555556
imul ecx
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
test ecx, ecx
mov dword [esp + 0x38], ebp
jle 0x5be12f
xor ebx, ebx
mov eax, dword [esp + 0x88]
lea ecx, [ebx + eax]
mov eax, dword [esp + 0xe4]
lea edx, [esp + 0x3c]
push edx
push ecx
mov ecx, dword [esp + 0xf0]
sub esp, 0xc
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x100]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x54]
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
call fcn.00576ca6
add esp, 0x20
test eax, eax
jne 0x5bdb35
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x8c]
inc eax
mov dword [esp + 0x38], eax
mov eax, 0x55555556
imul ecx
mov ecx, dword [esp + 0x38]
mov eax, edx
shr eax, 0x1f
add eax, edx
add ebx, 0x24
cmp ecx, eax
jl 0x5bdab0
jmp 0x5be128
call fcn.006167ae
fld dword [esp + 0x3c]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 0x41
jne 0x5bdb51
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x14], ecx
fld dword [esp + 0x3c]
fcomp dword [esp + 0x40]
fnstsw ax
test ah, 5
jp 0x5bdb68
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x40], edx
call fcn.006167ae
mov ecx, eax
and ecx, 0x80000003
jns 0x5bdb7e
dec ecx
or ecx, 0xfffffffc
inc ecx
js 0x5bdb96
cmp ecx, 4
jg 0x5bdb96
mov dword [esp + 0x98], 0x42c80000
mov dword [esp + 0x6c], 0x42200000
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
and ecx, 0x80000001
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmul dword [0x64fe4c]
fstp dword [esp + 0x5c]
jns 0x5bdbbc
dec ecx
or ecx, 0xfffffffe
inc ecx
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
fmul dword [0x64fe4c]
fstp dword [esp + 0x50]
fld dword [esp + 0x2c]
fmul dword [0x64fe68]
call fcn.0061672c
cdq
mov ecx, 0x13
idiv ecx
mov eax, esi
mov ecx, 8
lea edx, [edx*4 + 4]
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
jmp 0x5bdc00
mov edx, dword [esp + 0x10]
fld st(0)
fstp dword [eax + edx + 0x14]
mov edx, dword [esp + 0x10]
mov dword [eax + edx + 0x18], ebp
fld dword [esp + 0x3c]
fsub dword [0x655474]
mov edx, dword [esp + 0x10]
add eax, 0x28
dec ecx
fstp dword [eax + edx - 0x18]
jne 0x5bdc00
fstp st(0)
mov ecx, dword [esp + 0x10]
fld dword [esp + 0x6c]
lea edx, [esi + ecx]
fchs
fld dword [esp + 0x2c]
fadd st(1)
fstp dword [esp + 0xfc]
fld dword [esp + 0x98]
fadd dword [0x655474]
fst dword [esp + 0x100]
fld dword [esp + 0x34]
fld st(0)
fld dword [esp + 0xfc]
fsub dword [esp + 0x1c]
fstp dword [esp + 0x78]
mov ecx, dword [esp + 0x78]
fld dword [esp + 0x100]
fsub dword [esp + 0x20]
fstp dword [esp + 0x7c]
fsub dword [esp + 0x24]
mov dword [edx], ecx
mov ecx, dword [esp + 0x7c]
mov dword [edx + 4], ecx
fstp dword [esp + 0x80]
mov ecx, dword [esp + 0x80]
mov dword [edx + 8], ecx
fld st(2)
fadd dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
mov ecx, 0x3f800000
fld st(1)
mov dword [esi + edx + 0xc], ecx
fxch st(1)
fsub dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
lea edx, [esi + edx + 0x28]
fstp dword [esp + 0xb4]
mov ebx, dword [esp + 0xb4]
fld dword [0x655474]
fsub dword [esp + 0x20]
fstp dword [esp + 0xb8]
fsub dword [esp + 0x24]
mov dword [edx], ebx
mov ebx, dword [esp + 0xb8]
mov dword [edx + 4], ebx
fstp dword [esp + 0xbc]
mov ebx, dword [esp + 0xbc]
fld dword [esp + 0x6c]
mov dword [edx + 8], ebx
fadd dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
mov dword [esi + edx + 0x34], ebp
mov edx, dword [esp + 0x10]
fld st(0)
lea edx, [esi + edx + 0x50]
fld st(3)
fld st(3)
fstp dword [esp + 0x144]
fxch st(1)
fsub dword [esp + 0x1c]
fstp dword [esp + 0xd8]
mov ebx, dword [esp + 0xd8]
fsub dword [esp + 0x20]
fstp dword [esp + 0xdc]
fld dword [esp + 0x144]
fsub dword [esp + 0x24]
mov dword [edx], ebx
mov ebx, dword [esp + 0xdc]
mov dword [edx + 4], ebx
fstp dword [esp + 0xe0]
mov ebx, dword [esp + 0xe0]
mov dword [edx + 8], ebx
fxch st(1)
mov edx, dword [esp + 0x10]
fstp dword [esp + 0x120]
mov dword [esi + edx + 0x5c], ecx
fsub dword [esp + 0x1c]
fstp dword [esp + 0xcc]
fld dword [0x655474]
fsub dword [esp + 0x20]
mov edx, dword [esp + 0x10]
fstp dword [esp + 0xd0]
fld dword [esp + 0x120]
mov ebx, dword [esp + 0xcc]
fsub dword [esp + 0x24]
lea edx, [esi + edx + 0x78]
mov dword [edx], ebx
mov ebx, dword [esp + 0xd0]
fstp dword [esp + 0xd4]
mov dword [edx + 4], ebx
mov ebx, dword [esp + 0xd4]
fld dword [esp + 0x50]
fadd dword [0x658c68]
mov dword [edx + 8], ebx
mov edx, dword [esp + 0x10]
mov dword [esi + edx + 0x84], ebp
mov edx, dword [esp + 0x10]
fst dword [esp + 0x54]
fstp dword [esi + edx + 0x1c]
mov edx, dword [esp + 0x10]
fld dword [esp + 0x5c]
fadd dword [0x658c68]
fst dword [esp + 0x64]
fstp dword [esi + edx + 0x20]
mov edx, dword [esp + 0x10]
fld dword [esp + 0x54]
fstp dword [esi + edx + 0x44]
mov edx, dword [esp + 0x10]
fld dword [esp + 0x5c]
fadd dword [0x64fe4c]
fst dword [esp + 0x60]
fstp dword [esi + edx + 0x48]
mov edx, dword [esp + 0x10]
fld dword [esp + 0x50]
fadd dword [0x64fe4c]
fst dword [esp + 0x58]
fstp dword [esi + edx + 0x6c]
mov edx, dword [esp + 0x10]
fld dword [esp + 0x64]
fstp dword [esi + edx + 0x70]
mov edx, dword [esp + 0x10]
fld dword [esp + 0x58]
fstp dword [esi + edx + 0x94]
mov edx, dword [esp + 0x10]
fld dword [esp + 0x60]
fstp dword [esi + edx + 0x98]
mov edx, dword [esp + 0x10]
fld st(1)
lea edx, [esi + edx + 0xa0]
fld dword [esp + 0x2c]
fst dword [esp + 0x38]
fld st(2)
fstp dword [esp + 0x10c]
fxch st(1)
fadd dword [esp + 0x34]
fstp dword [esp + 0x110]
fsub dword [esp + 0x1c]
fstp dword [esp + 0x9c]
mov ebx, dword [esp + 0x9c]
fld dword [esp + 0x10c]
fsub dword [esp + 0x20]
fstp dword [esp + 0xa0]
fld dword [esp + 0x110]
fsub dword [esp + 0x24]
mov dword [edx], ebx
mov ebx, dword [esp + 0xa0]
mov dword [edx + 4], ebx
fstp dword [esp + 0xa4]
mov ebx, dword [esp + 0xa4]
fld dword [esp + 0x38]
mov dword [edx + 8], ebx
mov edx, dword [esp + 0x10]
fxch st(2)
fadd dword [esp + 0x34]
mov dword [esi + edx + 0xac], ecx
fstp dword [esp + 0x12c]
fxch st(1)
fsub dword [esp + 0x1c]
fstp dword [esp + 0xa8]
fld dword [0x655474]
fsub dword [esp + 0x20]
mov edx, dword [esp + 0x10]
fstp dword [esp + 0xac]
fld dword [esp + 0x12c]
mov ebx, dword [esp + 0xa8]
fsub dword [esp + 0x24]
lea edx, [esi + edx + 0xc8]
mov dword [edx], ebx
mov ebx, dword [esp + 0xac]
mov dword [edx + 4], ebx
fstp dword [esp + 0xb0]
mov ebx, dword [esp + 0xb0]
mov dword [edx + 8], ebx
fstp dword [esp + 0xf4]
mov edx, dword [esp + 0x10]
fld dword [esp + 0x6c]
fadd dword [esp + 0x34]
mov dword [esi + edx + 0xd4], ebp
mov edx, dword [esp + 0x38]
mov dword [esp + 0xf0], edx
fld st(0)
mov edx, dword [esp + 0x10]
fld dword [esp + 0xf0]
lea edx, [esi + edx + 0xf0]
fsub dword [esp + 0x1c]
fstp dword [esp + 0xc0]
mov ebx, dword [esp + 0xc0]
fld dword [esp + 0xf4]
fsub dword [esp + 0x20]
fstp dword [esp + 0xc4]
fsub dword [esp + 0x24]
mov dword [edx], ebx
mov ebx, dword [esp + 0xc4]
mov dword [edx + 4], ebx
fstp dword [esp + 0xc8]
mov ebx, dword [esp + 0xc8]
fld dword [esp + 0x38]
mov dword [edx + 8], ebx
mov edx, dword [esp + 0x10]
fxch st(1)
fstp dword [esp + 0x138]
mov dword [esi + edx + 0xfc], ecx
mov edx, dword [esp + 0x10]
fsub dword [esp + 0x1c]
lea edx, [esi + edx + 0x118]
fstp dword [esp + 0x44]
mov ebx, dword [esp + 0x44]
fld dword [0x655474]
fsub dword [esp + 0x20]
fstp dword [esp + 0x48]
fld dword [esp + 0x138]
fsub dword [esp + 0x24]
mov dword [edx], ebx
mov ebx, dword [esp + 0x48]
mov dword [edx + 4], ebx
fstp dword [esp + 0x4c]
mov ebx, dword [esp + 0x4c]
fld dword [esp + 0x54]
mov dword [edx + 8], ebx
mov edx, dword [esp + 0x10]
mov dword [esi + edx + 0x124], ebp
mov edx, dword [esp + 0x10]
fstp dword [esi + edx + 0xbc]
mov edx, dword [esp + 0x10]
fld dword [esp + 0x64]
fstp dword [esi + edx + 0xc0]
mov edx, dword [esp + 0x10]
fld dword [esp + 0x54]
fstp dword [esi + edx + 0xe4]
mov edx, dword [esp + 0x10]
fld dword [esp + 0x60]
fstp dword [esi + edx + 0xe8]
mov edx, dword [esp + 0x10]
fld dword [esp + 0x58]
fstp dword [esi + edx + 0x10c]
mov edx, dword [esp + 0x10]
fld dword [esp + 0x64]
fstp dword [esi + edx + 0x110]
mov edx, dword [esp + 0x10]
fld dword [esp + 0x58]
fstp dword [esi + edx + 0x134]
fld dword [esp + 0x60]
mov edx, dword [esp + 0x10]
fstp dword [esi + edx + 0x138]
imul edi, dword [0x688d20]
add edi, dword [esp + 0x28]
mov edx, dword [esp + 0x70]
mov dl, byte [edi + edx]
and dl, 0xf
cmp dl, 1
mov edx, dword [esp + 0x10]
jne 0x5be0d7
mov ecx, 0x3f333333
mov dword [esi + edx + 0x24], ecx
mov edx, dword [esp + 0x10]
mov dword [esi + edx + 0x4c], ecx
mov edx, dword [esp + 0x10]
mov dword [esi + edx + 0x74], ecx
mov edx, dword [esp + 0x10]
mov dword [esi + edx + 0x9c], ecx
mov edx, dword [esp + 0x10]
mov dword [esi + edx + 0xc4], ecx
mov edx, dword [esp + 0x10]
mov dword [esi + edx + 0xec], ecx
mov edx, dword [esp + 0x10]
mov dword [esi + edx + 0x114], ecx
mov edx, dword [esp + 0x10]
mov dword [esi + edx + 0x13c], ecx
inc dword [esp + 0x74]
mov esi, eax
mov ebx, dword [esp + 0x84]
dec dword [esp + 0x68]
jne 0x5bd970
mov eax, dword [ebx + 0xd8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x14]
jmp 0x5beb53
fld dword [esp + 0x170]
fadd dword [0x665e58]
lea edx, [esp + 0x88]
push edx
sub esp, 0xc
fst dword [esp + 0x24]
mov eax, esp
fstp dword [esp + 0x54]
mov ecx, dword [esp + 0x54]
fld dword [esp + 0x184]
mov dword [eax], ecx
fadd dword [0x665e58]
mov dword [esp + 0x58], 0
mov edx, dword [esp + 0x58]
mov dword [eax + 4], edx
fst dword [esp + 0x50]
mov dword [esp + 0x178], 1
fstp dword [esp + 0x5c]
mov ecx, dword [esp + 0x5c]
mov dword [eax + 8], ecx
mov ecx, 0xb1cee8
call fcn.00595c70
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x40]
sub esp, 0xc
mov dword [esp + 0x58], eax
mov ecx, esp
mov dword [ecx], edx
mov dword [esp + 0x54], 0
mov eax, dword [esp + 0x54]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x58]
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
mov ecx, 0xb1cee8
call fcn.00596110
fld dword [esp + 0x170]
fadd dword [0x665e38]
mov ecx, dword [esp + 0x174]
mov edi, dword [esp + 0x178]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x170]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x44], eax
fstp dword [esp + 0x44]
fld dword [esp + 0x174]
lea edx, [ebx + 0xbc]
fadd dword [0x665e38]
mov dword [edx], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x48], 0
mov ecx, dword [esp + 0x48]
fstp dword [esp + 0x4c]
fild dword [0x68c35c]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov edx, dword [esp + 0x44]
lea ecx, [ebx + 0xc8]
mov dword [ecx], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x48], 0
mov eax, dword [esp + 0x48]
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
mov dword [ebx + 0xb8], edi
fidiv dword [0x688d20]
mov eax, dword [ebx + 0xd8]
push ebp
lea edx, [esp + 0x14]
push edx
mov dword [ebx + 0xe0], 0xffffff
mov dword [ebx + 0xe4], 0x500000
mov dword [ebx + 0xe8], ebp
mov ecx, dword [eax]
mov dword [esp + 0x38], 0
mov dword [esp + 0xcc], 0x47c35000
mov dword [esp + 0x64], 0xcb189680
mov dword [esp + 0x58], 0x4b189680
push ebp
fstp dword [esp + 0xa4]
push ebp
push eax
call dword [ecx + 0x2c]
mov ecx, dword [esp + 0x174]
mov eax, dword [esp + 0x170]
lea edx, [esp + 0x1c]
mov dword [esp + 0x24], ecx
push edx
lea ecx, [ebx + 0x1c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0
call fcn.0057714f
call fcn.006167ae
cdq
mov ecx, 0x3e8
idiv ecx
cmp edi, ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x28], edx
fild dword [esp + 0x28]
fmul dword [0x664d9c]
fstp dword [ebx + 0xd4]
jle 0x5beb3b
xor esi, esi
mov dword [esp + 0x18], edi
call fcn.006167ae
cdq
mov ecx, 0x1ec
idiv ecx
mov dword [esp + 0x28], edx
fild dword [esp + 0x28]
fadd dword [esp + 0x170]
fst dword [esp + 0x2c]
fstp dword [esp + 0xc0]
call fcn.006167ae
cdq
mov ecx, 0x1ec
idiv ecx
mov dword [esp + 0x28], edx
fild dword [esp + 0x28]
fadd dword [esp + 0x174]
fstp dword [esp + 0x34]
mov edx, dword [esp + 0x34]
fild dword [0x68c35c]
mov dword [esp + 0xc8], edx
fdivr dword [0x64fe64]
fld dword [esp + 0x2c]
fmul st(1)
call fcn.0061672c
mov edi, dword [0x68c35c]
imul eax, edi
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fsubr dword [esp + 0x2c]
fstp dword [esp + 0x14]
fld dword [esp + 0x34]
fmul st(1)
call fcn.0061672c
imul eax, edi
fstp st(0)
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fsubr dword [esp + 0x34]
fstp dword [esp + 0x68]
fld dword [esp + 0x14]
fcomp dword [0x64fe74]
fnstsw ax
test ah, 5
jnp 0x5beb31
fld dword [esp + 0x68]
fcomp dword [0x64fe74]
fnstsw ax
test ah, 5
jnp 0x5beb31
mov edi, dword [esp + 0x94]
cmp edi, ebp
je 0x5beb31
fld dword [0x64fe64]
fdiv dword [esp + 0x98]
fld dword [esp + 0x68]
fmul st(1)
call fcn.0061672c
fld dword [esp + 0x14]
fmul st(1)
mov ebx, eax
call fcn.0061672c
fstp st(0)
mov ecx, ebx
imul ecx, dword [0x688d20]
add ecx, eax
mov dl, byte [ecx + edi]
and dl, 0xf0
cmp dl, 0x80
mov dword [esp + 0x114], eax
jne 0x5beb2a
mov ecx, dword [esp + 0x8c]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
mov dword [esp + 0x14], ebp
jle 0x5beb2a
xor edi, edi
lea esp, [esp]
mov edx, dword [esp + 0x88]
lea eax, [edi + edx]
mov edx, dword [esp + 0xc0]
lea ecx, [esp + 0x3c]
push ecx
push eax
mov eax, dword [esp + 0xcc]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0xdc]
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
call fcn.00576ca6
add esp, 0x20
test eax, eax
jne 0x5be515
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x8c]
inc eax
mov dword [esp + 0x14], eax
mov eax, 0x55555556
imul ecx
mov ecx, dword [esp + 0x14]
mov eax, edx
shr eax, 0x1f
add eax, edx
add edi, 0x24
cmp ecx, eax
jl 0x5be490
jmp 0x5beb2a
call fcn.006167ae
fld dword [esp + 0x3c]
fcomp dword [esp + 0x5c]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x140], ecx
fnstsw ax
test ah, 0x41
jne 0x5be53a
mov edx, ecx
mov dword [esp + 0x5c], edx
fld dword [esp + 0x3c]
fcomp dword [esp + 0x50]
fnstsw ax
test ah, 5
jp 0x5be551
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x50], eax
call fcn.006167ae
mov edi, eax
and edi, 0x80000003
jns 0x5be567
dec edi
or edi, 0xfffffffc
inc edi
js 0x5be57c
cmp edi, 3
jg 0x5be57c
mov dword [esp + 0x40], 0x42c80000
mov dword [esp + 0x74], 0x42700000
call fcn.006167ae
cdq
mov ecx, 0x64
idiv ecx
mov eax, edi
mov dword [esp + 0x28], edx
fild dword [esp + 0x28]
cdq
sub eax, edx
sar eax, 1
and edi, 0x80000001
fmul dword [0x658c68]
mov dword [esp + 0x28], eax
fadd dword [0x64fe64]
fmul dword [esp + 0x40]
fstp dword [esp + 0x40]
fild dword [esp + 0x28]
fmul dword [0x64fe4c]
fstp dword [esp + 0x68]
jns 0x5be5cb
dec edi
or edi, 0xfffffffe
inc edi
mov dword [esp + 0x28], edi
fild dword [esp + 0x28]
mov edx, dword [esp + 0x10]
add edx, esi
fmul dword [0x64fe4c]
fstp dword [esp + 0x14]
fld dword [esp + 0x2c]
fmul dword [0x665e54]
fsin
fstp dword [esp + 0x60]
fld dword [esp + 0x74]
fchs
fld dword [esp + 0x2c]
fadd st(1)
fstp dword [esp + 0xf0]
fld dword [esp + 0x40]
fadd dword [esp + 0x140]
fst dword [esp + 0xf4]
fld dword [esp + 0x34]
fld st(0)
fld dword [esp + 0xf0]
fsub dword [esp + 0x1c]
fstp dword [esp + 0x44]
mov eax, dword [esp + 0x44]
fld dword [esp + 0xf4]
fsub dword [esp + 0x20]
fstp dword [esp + 0x48]
mov ecx, dword [esp + 0x48]
fsub dword [esp + 0x24]
mov dword [edx], eax
mov dword [edx + 4], ecx
fstp dword [esp + 0x4c]
mov eax, dword [esp + 0x4c]
fld dword [esp + 0x60]
mov dword [edx + 8], eax
mov ecx, dword [esp + 0x10]
fstp dword [ecx + esi + 0xc]
mov edx, dword [esp + 0x10]
fld st(2)
lea eax, [edx + esi + 0x1c]
fadd dword [esp + 0x2c]
fld dword [esp + 0x140]
fst dword [esp + 0x70]
fld st(2)
fstp dword [esp + 0x150]
fxch st(1)
fsub dword [esp + 0x1c]
fstp dword [esp + 0xa8]
mov ecx, dword [esp + 0xa8]
fsub dword [esp + 0x20]
fstp dword [esp + 0xac]
mov edx, dword [esp + 0xac]
fld dword [esp + 0x150]
fsub dword [esp + 0x24]
mov dword [eax], ecx
mov dword [eax + 4], edx
fstp dword [esp + 0xb0]
mov ecx, dword [esp + 0xb0]
fld dword [esp + 0x74]
mov dword [eax + 8], ecx
fadd dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
mov dword [edx + esi + 0x28], ebp
mov eax, dword [esp + 0x10]
fld st(0)
lea ecx, [eax + esi + 0x38]
fld st(3)
fld st(3)
fstp dword [esp + 0x15c]
fxch st(1)
fsub dword [esp + 0x1c]
fstp dword [esp + 0x9c]
mov edx, dword [esp + 0x9c]
fsub dword [esp + 0x20]
fstp dword [esp + 0xa0]
fld dword [esp + 0x15c]
fsub dword [esp + 0x24]
mov dword [ecx], edx
fstp dword [esp + 0xa4]
mov eax, dword [esp + 0xa0]
fld dword [esp + 0x60]
mov dword [ecx + 4], eax
mov edx, dword [esp + 0xa4]
mov dword [ecx + 8], edx
mov eax, dword [esp + 0x10]
fstp dword [eax + esi + 0x44]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x70]
fxch st(1)
fstp dword [esp + 0x110]
mov dword [esp + 0x10c], ecx
lea eax, [edx + esi + 0x54]
fsub dword [esp + 0x1c]
fstp dword [esp + 0xcc]
mov ecx, dword [esp + 0xcc]
fld dword [esp + 0x10c]
fsub dword [esp + 0x20]
fstp dword [esp + 0xd0]
mov edx, dword [esp + 0xd0]
fld dword [esp + 0x110]
fsub dword [esp + 0x24]
mov dword [eax], ecx
mov dword [eax + 4], edx
fstp dword [esp + 0xd4]
mov ecx, dword [esp + 0xd4]
fld dword [esp + 0x14]
mov dword [eax + 8], ecx
fadd dword [0x658c68]
mov edx, dword [esp + 0x10]
mov dword [edx + esi + 0x60], ebp
mov eax, dword [esp + 0x10]
fst dword [esp + 0x58]
fstp dword [eax + esi + 0x14]
mov ecx, dword [esp + 0x10]
fld dword [esp + 0x68]
fadd dword [0x658c68]
fst dword [esp + 0x64]
fstp dword [ecx + esi + 0x18]
mov edx, dword [esp + 0x10]
fld dword [esp + 0x58]
fstp dword [edx + esi + 0x30]
mov eax, dword [esp + 0x10]
fld dword [esp + 0x68]
fadd dword [0x64fe4c]
fst dword [esp + 0x38]
fstp dword [eax + esi + 0x34]
mov ecx, dword [esp + 0x10]
fld dword [esp + 0x14]
fadd dword [0x64fe4c]
fst dword [esp + 0x54]
fstp dword [ecx + esi + 0x4c]
mov edx, dword [esp + 0x10]
fld dword [esp + 0x64]
fstp dword [edx + esi + 0x50]
mov eax, dword [esp + 0x10]
fld dword [esp + 0x54]
fstp dword [eax + esi + 0x68]
mov ecx, dword [esp + 0x10]
fld dword [esp + 0x38]
fstp dword [ecx + esi + 0x6c]
mov edx, dword [esp + 0x10]
fld st(1)
lea eax, [edx + esi + 0x70]
fld dword [esp + 0x2c]
fst dword [esp + 0x14]
fld st(2)
fstp dword [esp + 0x100]
fxch st(1)
fadd dword [esp + 0x34]
fstp dword [esp + 0x104]
fsub dword [esp + 0x1c]
fstp dword [esp + 0xd8]
mov ecx, dword [esp + 0xd8]
fld dword [esp + 0x100]
fsub dword [esp + 0x20]
fstp dword [esp + 0xdc]
fld dword [esp + 0x104]
fsub dword [esp + 0x24]
mov dword [eax], ecx
fstp dword [esp + 0xe0]
mov edx, dword [esp + 0xdc]
fld dword [esp + 0x60]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0xe0]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x10]
fstp dword [edx + esi + 0x7c]
mov eax, dword [esp + 0x70]
fld dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
fxch st(2)
mov dword [esp + 0x134], eax
fadd dword [esp + 0x34]
lea edx, [ecx + esi + 0x8c]
fstp dword [esp + 0x138]
fxch st(1)
fsub dword [esp + 0x1c]
fstp dword [esp + 0xb4]
mov eax, dword [esp + 0xb4]
fld dword [esp + 0x134]
fsub dword [esp + 0x20]
fstp dword [esp + 0xb8]
mov ecx, dword [esp + 0xb8]
fld dword [esp + 0x138]
fsub dword [esp + 0x24]
mov dword [edx], eax
mov dword [edx + 4], ecx
fstp dword [esp + 0xbc]
mov eax, dword [esp + 0xbc]
mov dword [edx + 8], eax
mov ecx, dword [esp + 0x10]
fstp dword [esp + 0x128]
fld dword [esp + 0x74]
mov edx, dword [esp + 0x14]
fadd dword [esp + 0x34]
mov dword [ecx + esi + 0x98], ebp
mov eax, dword [esp + 0x10]
mov dword [esp + 0x124], edx
fld st(0)
lea ecx, [eax + esi + 0xa8]
fld dword [esp + 0x124]
fsub dword [esp + 0x1c]
fstp dword [esp + 0xe4]
mov edx, dword [esp + 0xe4]
fld dword [esp + 0x128]
fsub dword [esp + 0x20]
fstp dword [esp + 0xe8]
mov eax, dword [esp + 0xe8]
fsub dword [esp + 0x24]
mov dword [ecx], edx
mov dword [ecx + 4], eax
fstp dword [esp + 0xec]
mov edx, dword [esp + 0xec]
fld dword [esp + 0x60]
mov dword [ecx + 8], edx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x70]
fstp dword [eax + esi + 0xb4]
fld dword [esp + 0x14]
mov edx, dword [esp + 0x10]
fxch st(1)
mov dword [esp + 0x11c], ecx
fstp dword [esp + 0x120]
lea eax, [edx + esi + 0xc4]
fsub dword [esp + 0x1c]
fstp dword [esp + 0x78]
mov ecx, dword [esp + 0x78]
fld dword [esp + 0x11c]
fsub dword [esp + 0x20]
fstp dword [esp + 0x7c]
mov edx, dword [esp + 0x7c]
fld dword [esp + 0x120]
fsub dword [esp + 0x24]
mov dword [eax], ecx
mov dword [eax + 4], edx
fstp dword [esp + 0x80]
mov ecx, dword [esp + 0x80]
fld dword [esp + 0x58]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x10]
mov dword [edx + esi + 0xd0], ebp
mov eax, dword [esp + 0x10]
fstp dword [eax + esi + 0x84]
mov ecx, dword [esp + 0x10]
fld dword [esp + 0x64]
mov edi, dword [esp + 0x114]
fstp dword [ecx + esi + 0x88]
mov edx, dword [esp + 0x10]
fld dword [esp + 0x58]
fstp dword [edx + esi + 0xa0]
mov eax, dword [esp + 0x10]
fld dword [esp + 0x38]
fstp dword [eax + esi + 0xa4]
mov ecx, dword [esp + 0x10]
fld dword [esp + 0x54]
fstp dword [ecx + esi + 0xbc]
mov edx, dword [esp + 0x10]
fld dword [esp + 0x64]
fstp dword [edx + esi + 0xc0]
mov eax, dword [esp + 0x10]
fld dword [esp + 0x54]
mov edx, dword [esp + 0x94]
fstp dword [eax + esi + 0xd8]
mov ecx, dword [esp + 0x10]
fld dword [esp + 0x38]
fstp dword [ecx + esi + 0xdc]
imul ebx, dword [0x688d20]
mov ecx, dword [esp + 0x10]
add ebx, edi
mov al, byte [ebx + edx]
and al, 0xf
cmp al, 1
jne 0x5bead0
mov eax, 0xff888888
jmp 0x5bead3
or eax, 0xffffffff
mov dword [ecx + esi + 0x10], eax
mov edx, dword [esp + 0x10]
mov dword [edx + esi + 0x2c], eax
mov ecx, dword [esp + 0x10]
mov dword [ecx + esi + 0x48], eax
mov edx, dword [esp + 0x10]
mov dword [edx + esi + 0x64], eax
mov ecx, dword [esp + 0x10]
mov dword [ecx + esi + 0x80], eax
mov edx, dword [esp + 0x10]
mov dword [edx + esi + 0x9c], eax
mov ecx, dword [esp + 0x10]
mov dword [ecx + esi + 0xb8], eax
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x10]
inc ecx
mov dword [edx + esi + 0xd4], eax
mov dword [esp + 0x6c], ecx
add esi, 0xe0
mov ebx, dword [esp + 0x84]
dec dword [esp + 0x18]
jne 0x5be343
mov eax, dword [ebx + 0xd8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x5c]
mov dword [ebx + 0xc0], eax
mov eax, dword [esp + 0x88]
cmp eax, ebp
mov dword [ebx + 0xb8], edx
mov dword [ebx + 0xcc], ecx
mov dword [esp + 0x8c], ebp
je 0x5beb80
push eax
call fcn.00616a81
add esp, 4
mov ecx, dword [esp + 0x160]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x15c
ret 0xc