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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x194
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
push edi
je 0x52e5a8
mov eax, dword [ebx + 4]
test al, 1
je 0x52e5a8
test al, 2
je 0x52e5a8
cmp dword [ebx + 8], 1
je 0x52e5a8
mov eax, dword [0xd9b190]
fld dword [0xd9b190]
mov ecx, dword [0xd9b194]
fchs
mov edx, dword [0xd9b198]
mov dword [esp + 0xa0], eax
mov eax, dword [0xd9b19c]
mov dword [esp + 0xac], eax
mov eax, dword [0xd9b384]
mov dword [esp + 0xa4], ecx
mov ecx, edx
mov dword [esp + 0x74], eax
mov eax, dword [0xd9b178]
mov dword [esp + 0xa8], edx
mov edx, dword [0xd9b380]
mov dword [esp + 0x60], eax
mov eax, dword [0xd9b184]
fstp dword [esp + 0xa0]
fld dword [esp + 0xa4]
mov dword [esp + 0xa8], ecx
mov ecx, dword [0xd9b388]
fchs
mov dword [esp + 0x70], edx
mov edx, dword [0xd9b38c]
mov dword [esp + 0x6c], eax
mov eax, dword [ebx]
sub eax, 0
mov dword [esp + 0x78], ecx
mov ecx, dword [0xd9b17c]
mov dword [esp + 0x7c], edx
mov edx, dword [0xd9b180]
fstp dword [esp + 0xa4]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], edx
je 0x52dc98
dec eax
je 0x52da17
dec eax
jne 0x52de27
fld dword [0xe74de0]
fmul dword [0x886824]
fld dword [0xe74de4]
fchs
fmul dword [0x886824]
fld dword [0xe74de8]
fmul dword [0x886824]
fstp dword [esp + 0x5c]
fxch st(1)
fsub dword [ebx + 0x2c]
fstp dword [esp + 0x10]
fsub dword [ebx + 0x30]
fstp dword [esp + 0x14]
fld dword [esp + 0x5c]
fsub dword [ebx + 0x34]
fst dword [esp + 0x18]
fmul dword [esp + 0x18]
fld dword [esp + 0x14]
fmul dword [esp + 0x14]
faddp st(1)
fld dword [esp + 0x10]
fmul dword [esp + 0x10]
faddp st(1)
fcomp dword [0x8cb1cc]
fnstsw ax
test ah, 5
jp 0x52d1e3
mov ecx, dword [ebx + 0x20]
mov edx, dword [ebx + 0x1c]
dec ecx
imul ecx, dword [ebx + 0x18]
imul ecx, dword [ebx + 0x14]
dec edx
imul ecx, edx
shl ecx, 2
mov dword [ebx + 0x50], 0xd9af30
mov dword [ebx + 0x54], ecx
jmp 0x52d1fe
mov eax, dword [ebx + 0x18]
imul eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x1c]
dec ecx
imul eax, ecx
shl eax, 2
mov dword [ebx + 0x50], 0xd9b390
mov dword [ebx + 0x54], eax
mov esi, dword [ebx + 0x58]
mov eax, dword [ebx + 0x5c]
add esi, eax
mov ecx, esi
cmp ecx, 0x10000
mov dword [ebx + 0x58], esi
jbe 0x52d21c
add ecx, 0xffff0000
mov dword [ebx + 0x58], ecx
mov ecx, dword [ebx + 0xc]
cmp ecx, 1
jne 0x52d250
mov esi, dword [ebx + 0x58]
add esi, eax
mov ecx, esi
cmp ecx, 0x10000
mov dword [ebx + 0x58], esi
jbe 0x52d23f
add ecx, 0xffff0000
mov dword [ebx + 0x58], ecx
lea edx, [eax + eax]
cmp dword [ebx + 0x58], edx
jae 0x52d261
mov dword [ebx + 0xc], 2
jmp 0x52d261
cmp ecx, 3
jne 0x52d261
cmp dword [ebx + 0x58], eax
jae 0x52d261
mov dword [ebx + 0xc], 0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x52d2cd
cmp eax, 1
je 0x52d2cd
mov eax, dword [ebx + 0x58]
fild dword [ebx + 0x58]
test eax, eax
jge 0x52d27d
fadd dword [0x87079c]
fmul dword [0x87b7b4]
add eax, eax
cmp eax, 0x10000
fmul dword [0x87380c]
fcos
fmul dword [0x886024]
fstp dword [ebx + 0x38]
jbe 0x52d2a2
sub eax, 0x10000
test eax, eax
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
jge 0x52d2b4
fadd dword [0x87079c]
fmul dword [0x87b7b4]
fmul dword [0x87380c]
fsin
fmul dword [0x8cb1c8]
fstp dword [ebx + 0x40]
jmp 0x52d2db
mov dword [ebx + 0x38], 0x42400000
mov dword [ebx + 0x40], 0
fld dword [ebx + 0x38]
push ecx
fadd dword [0x886024]
fstp dword [ebx + 0x38]
fld dword [ebx + 0x40]
fmul dword [0x8caf2c]
fstp dword [esp]
call fcn.00545780
fstp dword [esp + 0x10]
mov eax, dword [esp + 0x10]
add esp, 4
push eax
lea ecx, [esp + 0x124]
push ecx
call fcn.00403f8d
fld dword [ebx + 0x38]
fmul dword [0x8caf2c]
push ecx
fstp dword [esp]
call fcn.00545780
fstp dword [esp + 0x10]
mov edx, dword [esp + 0x10]
add esp, 4
push edx
lea eax, [esp + 0x164]
push eax
call fcn.00403e54
lea ecx, [esp + 0x160]
push ecx
lea edx, [esp + 0x124]
push edx
lea eax, [esp + 0x128]
push eax
call fcn.00403485
fld dword [ebx + 0x3c]
fmul dword [0x8caf2c]
push ecx
fstp dword [esp]
call fcn.00545780
fstp dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
add esp, 4
push ecx
lea edx, [esp + 0x164]
push edx
call fcn.00403ef0
lea eax, [esp + 0x160]
push eax
lea ecx, [esp + 0x124]
push ecx
lea edx, [esp + 0x128]
push edx
call fcn.00403485
fld dword [esp + 0x130]
mov eax, dword [esp + 0x130]
fmul dword [ebx + 0x60]
mov ecx, dword [esp + 0x134]
mov edx, dword [esp + 0x138]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x20]
dec eax
imul eax, dword [ebx + 0x1c]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebx + 0x48]
lea eax, [eax + eax*8]
fadd dword [ebx + 0x2c]
mov dword [esp + 0x18], edx
lea eax, [ecx + eax*8]
fstp dword [eax]
fld dword [esp + 0x14]
fmul dword [ebx + 0x60]
fadd dword [ebx + 0x30]
fstp dword [eax + 4]
fld dword [esp + 0x18]
fmul dword [ebx + 0x60]
fadd dword [ebx + 0x34]
movzx ecx, byte [0x909ada]
lea esi, [esp + 0x80]
fstp dword [eax + 8]
mov eax, dword [ebx + 0x48]
fld dword [esp + 0x10]
lea edi, [esp + 0x90]
fmul dword [ebx + 0x64]
fstp dword [esp + 0x54]
fld dword [esp + 0x14]
fmul dword [ebx + 0x64]
fstp dword [esp + 0x58]
fld dword [esp + 0x18]
fmul dword [ebx + 0x64]
fstp dword [esp + 0x5c]
fld dword [esp + 0x54]
fadd dword [ebx + 0x2c]
fstp dword [eax]
fld dword [esp + 0x58]
fadd dword [ebx + 0x30]
fstp dword [eax + 4]
fld dword [esp + 0x5c]
fadd dword [ebx + 0x34]
fstp dword [eax + 8]
mov eax, dword [0x909ad8]
movzx edx, al
mov dword [esp + 0xc], edx
movzx eax, ah
fild dword [esp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [0x909adc]
fmul dword [esp + 0x70]
movzx edx, al
fstp dword [esp + 0x80]
movzx eax, ah
fild dword [esp + 0xc]
mov dword [esp + 0xc], ecx
fmul dword [esp + 0x74]
movzx ecx, byte [0x909ade]
fstp dword [esp + 0x84]
push ecx
fild dword [esp + 0x10]
mov dword [esp + 0x10], edx
mov edx, dword [ebx + 0x68]
add edx, 0xfc
fmul dword [esp + 0x7c]
fstp dword [esp + 0x8c]
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
fmul dword [esp + 0x64]
fstp dword [esp + 0x94]
fild dword [esp + 0x10]
mov dword [esp + 0x10], ecx
fmul dword [esp + 0x68]
fstp dword [esp + 0x98]
fild dword [esp + 0x10]
fmul dword [esp + 0x6c]
fstp dword [esp + 0x9c]
fld dword [esp + 0xac]
fmul dword [esp + 0x1c]
fld dword [esp + 0xa8]
fmul dword [esp + 0x18]
faddp st(1)
fld dword [esp + 0xa4]
fmul dword [esp + 0x14]
faddp st(1)
fstp dword [esp]
push edx
call fcn.00529d50
mov eax, dword [ebx + 0x68]
add esp, 8
mov dword [esp + 0x4c], eax
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x50], eax
mov edi, edi
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 0xd9af00]
mov edx, dword [eax + 0xd9af04]
mov eax, dword [eax + 0xd9af08]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x120]
mov dword [esp + 0x14], edx
push ecx
lea edx, [esp + 0x14]
mov dword [esp + 0x1c], eax
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00402e99
fld dword [esp + 0x10]
fadd dword [ebx + 0x2c]
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x1c], 0x3f800000
mov edx, dword [esp + 0x2c]
fstp dword [esi + 0x18]
fld dword [esp + 0x14]
fadd dword [ebx + 0x30]
fstp dword [esi + 0x1c]
fld dword [esp + 0x18]
fadd dword [ebx + 0x34]
fstp dword [esi + 0x20]
fld dword [esp + 0x54]
fadd dword [esi + 0x18]
fstp dword [esi]
fld dword [esp + 0x58]
fadd dword [esi + 0x1c]
fstp dword [esi + 4]
fld dword [esp + 0x5c]
fadd dword [esi + 0x20]
fstp dword [esi + 8]
mov ecx, dword [ebx + 0x68]
lea eax, [edx + ecx + 0xf0]
mov ecx, esi
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov ecx, dword [ecx + 8]
lea edx, [esp + 0x10]
mov dword [eax + 8], ecx
push edx
lea eax, [esp + 0x14]
push eax
call fcn.00402c01
fld dword [esp + 0xa8]
fmul dword [esp + 0x18]
push ecx
fld dword [esp + 0xa8]
lea eax, [esi + 0xc]
fmul dword [esp + 0x18]
lea esi, [esp + 0x84]
lea edi, [esp + 0x94]
faddp st(1)
fld dword [esp + 0xa4]
fmul dword [esp + 0x14]
faddp st(1)
fstp dword [esp]
push eax
call fcn.00529d50
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 0x54]
add eax, 0xc
mov eax, dword [esp + 0x58]
add esp, 8
test eax, eax
mov dword [edx + 0x24], ecx
jbe 0x52d64f
mov eax, dword [ebx + 0x68]
mov ecx, dword [eax + 0xfc]
mov edx, dword [esp + 0x2c]
mov dword [edx + eax + 0xfc], ecx
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x4c]
add eax, 0xc
add esi, 0x18
add edx, 0x30
cmp eax, 0x30
mov dword [esp + 0x50], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x4c], edx
jb 0x52d530
mov eax, dword [ebx + 0x68]
lea esi, [eax + 0x18]
lea edi, [eax + 0xd8]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebx + 0x68]
lea edi, [esi + 0xc0]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x20]
mov esi, 1
dec eax
cmp eax, esi
jbe 0x52d74a
lea ecx, [ecx]
test esi, esi
mov edx, dword [ebx + 0x20]
mov dword [esp + 0xc], esi
fild dword [esp + 0xc]
jge 0x52d6c5
fadd dword [0x87079c]
lea ecx, [edx - 1]
test ecx, ecx
mov dword [esp + 0xc], ecx
fild dword [esp + 0xc]
jge 0x52d6da
fadd dword [0x87079c]
fdivp st(1)
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x48]
dec edx
fld dword [0x87076c]
imul edx, ecx
imul ecx, esi
fsub st(1)
fld st(1)
lea edx, [edx + edx*8]
lea edx, [eax + edx*8]
lea ecx, [ecx + ecx*8]
inc esi
fmul dword [edx]
fld st(1)
fmul dword [eax]
faddp st(1)
fstp dword [esp + 0x10]
fld st(0)
fmul dword [eax + 4]
fld st(2)
fmul dword [edx + 4]
faddp st(1)
fstp dword [esp + 0x14]
fmul dword [eax + 8]
lea eax, [eax + ecx*8]
fxch st(1)
fmul dword [edx + 8]
mov edx, dword [esp + 0x10]
faddp st(1)
fstp dword [esp + 0x18]
mov dword [eax], edx
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x18]
mov dword [eax + 8], edx
mov eax, dword [ebx + 0x20]
dec eax
cmp esi, eax
jb 0x52d6b0
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x48]
xor ecx, ecx
test edx, edx
jbe 0x52d7a7
cmp eax, dword [eax + 0x38]
je 0x52d79c
fld dword [eax + 0x10]
mov edx, dword [eax + 0xc]
fmul dword [0x8cb1a0]
fst dword [eax + 0x10]
fld dword [eax + 0x18]
fmul dword [0x8cb1a0]
fst dword [eax + 0x18]
fld dword [eax + 0x14]
fmul dword [0x8cb1a0]
fsub dword [str._n_33]
fst dword [eax + 0x14]
fxch st(2)
fadd dword [edx]
fstp dword [eax]
fxch st(1)
fadd dword [edx + 4]
fstp dword [eax + 4]
fadd dword [edx + 8]
fstp dword [eax + 8]
mov edx, dword [ebx + 0x10]
inc ecx
add eax, 0x48
cmp ecx, edx
jb 0x52d756
mov eax, dword [ebx + 0x1c]
xor esi, esi
test eax, eax
jbe 0x52d99c
mov eax, dword [ebx + 0x20]
xor edx, edx
test eax, eax
jbe 0x52d990
mov eax, dword [ebx + 0x1c]
imul eax, edx
add eax, esi
lea ecx, [eax + eax*8]
mov eax, dword [ebx + 0x48]
lea ecx, [eax + ecx*8]
mov eax, dword [ecx + 0x38]
cmp ecx, eax
je 0x52d984
fld dword [eax]
fsub dword [ecx]
fstp dword [esp + 0x10]
mov eax, dword [ecx + 0x38]
fld dword [eax + 4]
fsub dword [ecx + 4]
fstp dword [esp + 0x14]
mov eax, dword [ecx + 0x38]
fld dword [eax + 8]
fsub dword [ecx + 8]
fst dword [esp + 0x18]
fmul dword [esp + 0x18]
fld dword [esp + 0x14]
fmul dword [esp + 0x14]
faddp st(1)
fld dword [esp + 0x10]
fmul dword [esp + 0x10]
faddp st(1)
fsqrt
fst dword [esp + 0x2c]
fcomp dword [0x879dc4]
fnstsw ax
test ah, 0x41
jne 0x52d8ab
fld dword [esp + 0x2c]
fcomp dword [ebx + 0x24]
fnstsw ax
test ah, 0x44
jnp 0x52d8ab
fld dword [esp + 0x2c]
fsub dword [ebx + 0x24]
fdiv dword [esp + 0x2c]
fld dword [esp + 0x10]
fmul st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x14]
fmul st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fmul st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x1c]
fmul st(1)
fstp dword [esp + 0x1c]
fstp st(0)
fld dword [esp + 0x10]
fadd dword [ecx + 0x10]
fstp dword [ecx + 0x10]
fld dword [esp + 0x14]
fadd dword [ecx + 0x14]
fstp dword [ecx + 0x14]
fld dword [esp + 0x18]
fadd dword [ecx + 0x18]
fstp dword [ecx + 0x18]
fld dword [esp + 0x10]
fadd dword [ecx]
fstp dword [ecx]
fld dword [esp + 0x14]
fadd dword [ecx + 4]
fstp dword [ecx + 4]
fld dword [esp + 0x18]
fadd dword [ecx + 8]
fstp dword [ecx + 8]
mov eax, dword [ecx + 0x40]
cmp ecx, eax
je 0x52d984
fld dword [eax]
fsub dword [ecx]
fstp dword [esp + 0x10]
mov eax, dword [ecx + 0x40]
fld dword [eax + 4]
fsub dword [ecx + 4]
fstp dword [esp + 0x14]
mov eax, dword [ecx + 0x40]
fld dword [eax + 8]
fsub dword [ecx + 8]
fst dword [esp + 0x18]
fmul dword [esp + 0x18]
fld dword [esp + 0x14]
fmul dword [esp + 0x14]
faddp st(1)
fld dword [esp + 0x10]
fmul dword [esp + 0x10]
faddp st(1)
fsqrt
fst dword [esp + 0x2c]
fcomp dword [0x879dc4]
fnstsw ax
test ah, 0x41
jne 0x52d984
fld dword [esp + 0x2c]
fcomp dword [ebx + 0x28]
fnstsw ax
test ah, 0x44
jnp 0x52d984
fld dword [esp + 0x2c]
fsub dword [ebx + 0x28]
fdiv dword [esp + 0x2c]
fld dword [esp + 0x10]
fmul st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x14]
fmul st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fmul st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x1c]
fmul st(1)
fstp dword [esp + 0x1c]
fstp st(0)
fld dword [esp + 0x10]
fadd dword [ecx + 0x10]
fstp dword [ecx + 0x10]
fld dword [esp + 0x14]
fadd dword [ecx + 0x14]
fstp dword [ecx + 0x14]
fld dword [esp + 0x18]
fadd dword [ecx + 0x18]
fstp dword [ecx + 0x18]
fld dword [esp + 0x10]
fadd dword [ecx]
fstp dword [ecx]
fld dword [esp + 0x14]
fadd dword [ecx + 4]
fstp dword [ecx + 4]
fld dword [esp + 0x18]
fadd dword [ecx + 8]
fstp dword [ecx + 8]
mov eax, dword [ebx + 0x20]
inc edx
cmp edx, eax
jb 0x52d7c1
mov eax, dword [ebx + 0x1c]
inc esi
cmp esi, eax
jb 0x52d7b4
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x48]
xor edx, edx
test eax, eax
jbe 0x52de27
lea esp, [esp]
cmp ecx, dword [ecx + 0x38]
jne 0x52d9cc
mov esi, dword [ecx + 0xc]
mov eax, ecx
mov edi, dword [eax]
mov dword [esi], edi
mov edi, dword [eax + 4]
mov dword [esi + 4], edi
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
jmp 0x52da07
fld dword [ecx + 4]
fcomp dword [0x879dc4]
fnstsw ax
test ah, 5
jp 0x52d9e5
fld dword [ecx + 0x14]
fsub dword [ecx + 4]
fstp dword [ecx + 0x14]
mov eax, dword [ecx + 0xc]
fld dword [ecx + 0x10]
fadd dword [eax]
fstp dword [eax]
mov eax, dword [ecx + 0xc]
fld dword [ecx + 0x14]
fadd dword [eax + 4]
fstp dword [eax + 4]
mov eax, dword [ecx + 0xc]
fld dword [ecx + 0x18]
fadd dword [eax + 8]
fstp dword [eax + 8]
mov eax, dword [ebx + 0x10]
inc edx
add ecx, 0x48
cmp edx, eax
jb 0x52d9b0
jmp 0x52de27
fld dword [ebx + 0x40]
push ecx
fmul dword [0x8caf2c]
fstp dword [esp]
call fcn.00545780
fstp dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
add esp, 4
push ecx
lea edx, [esp + 0x124]
push edx
call fcn.00403f8d
fld dword [ebx + 0x38]
fmul dword [0x8caf2c]
push ecx
fstp dword [esp]
call fcn.00545780
fstp dword [esp + 0x10]
mov eax, dword [esp + 0x10]
add esp, 4
push eax
lea ecx, [esp + 0x164]
push ecx
call fcn.00403e54
lea edx, [esp + 0x160]
push edx
lea eax, [esp + 0x124]
push eax
lea ecx, [esp + 0x128]
push ecx
call fcn.00403485
fld dword [ebx + 0x3c]
fmul dword [0x8caf2c]
push ecx
fstp dword [esp]
call fcn.00545780
fstp dword [esp + 0x10]
mov edx, dword [esp + 0x10]
add esp, 4
push edx
lea eax, [esp + 0x164]
push eax
call fcn.00403ef0
lea ecx, [esp + 0x160]
push ecx
lea edx, [esp + 0x124]
push edx
lea eax, [esp + 0x128]
push eax
call fcn.00403485
mov eax, dword [ebx + 0x34]
mov ecx, dword [ebx + 0x2c]
mov edx, dword [ebx + 0x30]
mov dword [esp + 0x158], eax
mov eax, dword [ebx + 0x58]
mov esi, 0x8000
cmp eax, esi
mov dword [esp + 0x150], ecx
mov dword [esp + 0x154], edx
ja 0x52db8b
mov ecx, dword [ebx + 0x5c]
fild dword [ebx + 0x5c]
test ecx, ecx
jge 0x52db10
fadd dword [0x87079c]
test eax, eax
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
jge 0x52db22
fadd dword [0x87079c]
fadd st(0), st(0)
mov edx, dword [ebx + 0x48]
fmul dword [0x87b7b4]
fmul dword [0x87380c]
fcos
fmul st(1)
fsubr st(1)
fmul dword [0x871038]
fstp dword [edx + 0x20]
mov eax, dword [ebx + 0x58]
cmp eax, 0x1c0
fstp st(0)
jae 0x52db56
add eax, 0x10000
mov dword [ebx + 0x58], eax
mov eax, dword [ebx + 0x58]
add eax, 0xfffffe40
push 0x78
mov dword [ebx + 0x58], eax
call fcn.0042d710
add esp, 4
test ax, ax
jne 0x52dbb3
push 4
mov dword [ebx + 0x58], esi
call fcn.0042d710
movzx eax, ax
add eax, 3
add esp, 4
imul eax, eax, 0x64
mov dword [ebx + 0x5c], eax
jmp 0x52dbb3
push 0x32
call fcn.0042d710
add esp, 4
test ax, ax
jne 0x52dbb3
push 4
mov dword [ebx + 0x58], esi
call fcn.0042d710
movzx ecx, ax
add ecx, 3
add esp, 4
imul ecx, ecx, 0x64
mov dword [ebx + 0x5c], ecx
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x48]
xor ecx, ecx
test edx, edx
jbe 0x52dbd2
add eax, 0x24
mov edx, dword [eax - 4]
mov dword [eax], edx
mov edx, dword [ebx + 0x10]
inc ecx
add eax, 0x48
cmp ecx, edx
jb 0x52dbc2
mov eax, dword [ebx + 0x10]
test eax, eax
mov edi, dword [ebx + 0x4c]
mov esi, dword [ebx + 0x48]
mov dword [esp + 0x50], 0
jbe 0x52de27
jmp 0x52dbf0
mov eax, dword [esi + 0x44]
fld dword [eax + 0x24]
mov ecx, dword [esi + 0x40]
fadd dword [ecx + 0x24]
mov edx, dword [esi + 0x3c]
mov eax, dword [esi + 0x38]
mov ecx, dword [esi]
fadd dword [edx + 0x24]
fadd dword [eax + 0x24]
lea eax, [esp + 0x120]
fld dword [esi + 0x24]
push eax
fmul dword [0x870778]
fsubp st(1)
fmul dword [0x8cb0ac]
fadd dword [esi + 0x28]
fmul dword [0x8cb1c4]
fst dword [esi + 0x28]
fmul dword [0x87d4bc]
fadd dword [esi + 0x20]
fstp dword [esi + 0x20]
mov dword [esp + 0x14], ecx
mov edx, dword [esi + 4]
fld dword [0x87076c]
mov dword [esp + 0x18], edx
fsub dword [esi + 0x20]
lea ecx, [esp + 0x14]
push ecx
fmul dword [esi + 8]
lea edx, [esp + 0x18]
push edx
fstp dword [esp + 0x24]
call fcn.00402e73
mov eax, dword [esp + 0x10]
mov dword [edi], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x50]
mov dword [edi + 4], ecx
mov edx, dword [esp + 0x18]
mov dword [edi + 8], edx
mov ecx, dword [ebx + 0x10]
inc eax
add edi, 0x18
add esi, 0x48
cmp eax, ecx
mov dword [esp + 0x50], eax
jb 0x52dbf0
jmp 0x52de27
mov eax, dword [ebx + 0x58]
mov esi, 0x8000
cmp eax, esi
ja 0x52dd30
test eax, eax
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
jge 0x52dcba
fadd dword [0x87079c]
fmul dword [0x87b7b4]
mov eax, dword [ebx + 0x5c]
test eax, eax
fmul dword [0x87380c]
fsin
fild dword [ebx + 0x5c]
jge 0x52dcd8
fadd dword [0x87079c]
mov ecx, dword [ebx + 0x48]
fmulp st(1)
fmul dword [0x8cb1c0]
fstp dword [ecx + 0x20]
mov eax, dword [ebx + 0x58]
cmp eax, 0x300
jae 0x52dcf8
add eax, 0x10000
mov dword [ebx + 0x58], eax
mov eax, dword [ebx + 0x58]
add eax, 0xfffffd00
push 0x100
mov dword [ebx + 0x58], eax
call fcn.0042d710
add esp, 4
test ax, ax
jne 0x52dd5b
push 2
mov dword [ebx + 0x58], esi
call fcn.0042d710
movzx edx, ax
add edx, 3
add esp, 4
imul edx, edx, 0x5a
mov dword [ebx + 0x5c], edx
jmp 0x52dd5b
push 0x80
call fcn.0042d710
add esp, 4
test ax, ax
jne 0x52dd5b
push 2
mov dword [ebx + 0x58], esi
call fcn.0042d710
movzx eax, ax
add eax, 3
add esp, 4
imul eax, eax, 0x5a
mov dword [ebx + 0x5c], eax
mov eax, dword [ebx + 0x10]
mov esi, dword [ebx + 0x48]
xor edi, edi
test eax, eax
jbe 0x52ddb4
add esi, 0x20
lea ebx, [ebx]
push 0x80
call fcn.0042d710
add esp, 4
test ax, ax
jne 0x52dd8c
fld dword [esi]
fadd dword [0x8cb048]
fstp dword [esi]
push 0x80
call fcn.0042d710
add esp, 4
test ax, ax
jne 0x52dda4
mov dword [esi], 0
mov ecx, dword [esi]
mov dword [esi + 4], ecx
mov eax, dword [ebx + 0x10]
inc edi
add esi, 0x48
cmp edi, eax
jb 0x52dd70
mov esi, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x4c]
mov eax, dword [ebx + 0x48]
xor edx, edx
test esi, esi
jbe 0x52de27
mov esi, dword [eax + 0x44]
fld dword [esi + 0x24]
mov edi, dword [eax + 0x40]
fadd dword [edi + 0x24]
mov esi, dword [eax + 0x3c]
inc edx
add ecx, 0x18
fadd dword [esi + 0x24]
mov esi, dword [eax + 0x38]
add eax, 0x48
fadd dword [esi + 0x24]
mov esi, dword [eax - 0x48]
fld dword [eax - 0x24]
fmul dword [0x870778]
fsubp st(1)
fmul dword [0x886010]
fadd dword [eax - 0x20]
fst dword [eax - 0x20]
fmul dword [0x8cb1bc]
fld dword [eax - 0x28]
fmul dword [0x8cb184]
faddp st(1)
fstp dword [eax - 0x28]
mov dword [ecx - 0x18], esi
fld dword [eax - 0x44]
fadd dword [eax - 0x28]
fstp dword [ecx - 0x14]
mov esi, dword [eax - 0x40]
mov dword [ecx - 0x10], esi
cmp edx, dword [ebx + 0x10]
jb 0x52ddc3
movzx edx, byte [ebx + 0x44]
movzx eax, byte [ebx + 0x45]
movzx ecx, byte [ebx + 0x46]
mov dword [esp + 0xc], edx
fild dword [esp + 0xc]
mov dword [esp + 0xc], eax
fld dword [esp + 0x70]
mov eax, dword [ebx]
test eax, eax
fmul st(1)
fstp dword [esp + 0x80]
fild dword [esp + 0xc]
mov dword [esp + 0xc], ecx
fld dword [esp + 0x74]
fmul st(1)
fstp dword [esp + 0x84]
fild dword [esp + 0xc]
fst dword [esp + 0xc]
fmul dword [esp + 0x78]
fstp dword [esp + 0x88]
fxch st(1)
fmul dword [0x8cb1a4]
fmul dword [esp + 0x60]
fstp dword [esp + 0x90]
fmul dword [0x8cb1a4]
fmul dword [esp + 0x64]
fstp dword [esp + 0x94]
fld dword [esp + 0xc]
fmul dword [0x8cb1a4]
fmul dword [esp + 0x68]
fstp dword [esp + 0x98]
jne 0x52df25
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x88]
mov dword [esp + 0xc0], edx
mov edx, dword [esp + 0x8c]
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0xc8], ecx
mov ecx, dword [esp + 0x94]
mov dword [esp + 0xcc], edx
mov edx, dword [esp + 0x98]
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0xd4], ecx
mov dword [esp + 0xd8], edx
mov dword [esp + 0xdc], eax
jmp 0x52df63
fld dword [ebx + 0x34]
sub esp, 8
fmul dword [0x870e6c]
fstp dword [esp + 4]
fld dword [ebx + 0x2c]
fmul dword [0x870e6c]
fstp dword [esp]
call fcn.00511d80
fstp dword [esp + 4]
add esp, 4
lea esi, [esp + 0x94]
lea edi, [esp + 0x84]
call fcn.00529b10
add esp, 4
mov eax, dword [ebx + 0x10]
test eax, eax
mov ecx, dword [ebx + 0x4c]
mov edx, dword [ebx + 0x48]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x50], 0
jbe 0x52e5a8
mov esi, edx
jmp 0x52df90
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov eax, dword [esi + 0x38]
cmp eax, esi
je 0x52e0dd
mov edx, dword [esi + 0x44]
cmp edx, esi
je 0x52e0dd
mov ecx, dword [eax + 0xc]
mov eax, dword [esi + 0xc]
mov edx, dword [edx + 0xc]
fld dword [eax]
fsub dword [edx]
fld dword [eax + 4]
fsub dword [edx + 4]
fld dword [eax + 8]
fsub dword [edx + 8]
fld dword [ecx]
fsub dword [eax]
fstp dword [esp + 0xe0]
fld dword [ecx + 4]
fsub dword [eax + 4]
fstp dword [esp + 0xe4]
fld dword [ecx + 8]
fsub dword [eax + 8]
fld st(0)
fmul st(3)
fld dword [esp + 0xe4]
fmul st(3)
fsubp st(1)
fstp dword [esp + 0xb4]
mov eax, dword [esp + 0xb4]
fld dword [esp + 0xe0]
mov dword [esp + 0x10], eax
fmul st(2)
fxch st(1)
fmul st(4)
fsubp st(1)
fstp dword [esp + 0xb8]
mov ecx, dword [esp + 0xb8]
mov dword [esp + 0x14], ecx
fstp st(0)
fld dword [esp + 0xe4]
fmul st(2)
fld dword [esp + 0xe0]
fmul st(2)
fsubp st(1)
fstp dword [esp + 0xbc]
mov edx, dword [esp + 0xbc]
mov dword [esp + 0x18], edx
fstp st(0)
fstp st(0)
fld dword [esp + 0xbc]
fmul dword [esp + 0xbc]
fld dword [esp + 0xb8]
fmul dword [esp + 0xb8]
faddp st(1)
fld dword [esp + 0xb4]
fmul dword [esp + 0xb4]
faddp st(1)
fcomp dword [0x879dc4]
fnstsw ax
test ah, 0x44
jnp 0x52e0dd
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00402c01
fld dword [esp + 0x30]
fadd dword [esp + 0x10]
fstp dword [esp + 0x30]
fld dword [esp + 0x34]
fadd dword [esp + 0x14]
fstp dword [esp + 0x34]
fld dword [esp + 0x38]
fadd dword [esp + 0x18]
fstp dword [esp + 0x38]
fld dword [esp + 0x3c]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x3c]
mov edx, dword [esi + 0x3c]
cmp edx, esi
je 0x52e1ee
mov eax, dword [esi + 0x44]
cmp eax, esi
je 0x52e1ee
mov ecx, dword [eax + 0xc]
mov eax, dword [esi + 0xc]
mov edx, dword [edx + 0xc]
fld dword [eax]
fsub dword [edx]
fld dword [eax + 4]
fsub dword [edx + 4]
fld dword [eax + 8]
fsub dword [edx + 8]
fld dword [ecx]
fsub dword [eax]
fstp dword [esp + 0x100]
fld dword [ecx + 4]
fsub dword [eax + 4]
fstp dword [esp + 0x104]
fld dword [ecx + 8]
fsub dword [eax + 8]
fld st(0)
fmul st(3)
fld dword [esp + 0x104]
fmul st(3)
fsubp st(1)
fstp dword [esp + 0x60]
mov edx, dword [esp + 0x60]
fld dword [esp + 0x100]
mov dword [esp + 0x10], edx
fmul st(2)
fxch st(1)
fmul st(4)
fsubp st(1)
fstp dword [esp + 0x64]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x14], eax
fstp st(0)
fld dword [esp + 0x104]
fmul st(2)
fld dword [esp + 0x100]
fmul st(2)
fsubp st(1)
fstp dword [esp + 0x68]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x18], ecx
fstp st(0)
fstp st(0)
fld dword [esp + 0x68]
fmul dword [esp + 0x68]
fld dword [esp + 0x64]
fmul dword [esp + 0x64]
faddp st(1)
fld dword [esp + 0x60]
fmul dword [esp + 0x60]
faddp st(1)
fcomp dword [0x879dc4]
fnstsw ax
test ah, 0x44
jnp 0x52e1ee
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.00402c01
fld dword [esp + 0x30]
fadd dword [esp + 0x10]
fstp dword [esp + 0x30]
fld dword [esp + 0x34]
fadd dword [esp + 0x14]
fstp dword [esp + 0x34]
fld dword [esp + 0x38]
fadd dword [esp + 0x18]
fstp dword [esp + 0x38]
fld dword [esp + 0x3c]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x3c]
mov eax, dword [esi + 0x3c]
cmp eax, esi
je 0x52e2ff
mov edx, dword [esi + 0x40]
cmp edx, esi
je 0x52e2ff
mov ecx, dword [eax + 0xc]
mov eax, dword [esi + 0xc]
mov edx, dword [edx + 0xc]
fld dword [eax]
fsub dword [edx]
fld dword [eax + 4]
fsub dword [edx + 4]
fld dword [eax + 8]
fsub dword [edx + 8]
fld dword [ecx]
fsub dword [eax]
fstp dword [esp + 0x110]
fld dword [ecx + 4]
fsub dword [eax + 4]
fstp dword [esp + 0x114]
fld dword [ecx + 8]
fsub dword [eax + 8]
fld st(0)
fmul st(3)
fld dword [esp + 0x114]
fmul st(3)
fsubp st(1)
fstp dword [esp + 0x70]
mov ecx, dword [esp + 0x70]
fld dword [esp + 0x110]
mov dword [esp + 0x10], ecx
fmul st(2)
fxch st(1)
fmul st(4)
fsubp st(1)
fstp dword [esp + 0x74]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x14], edx
fstp st(0)
fld dword [esp + 0x114]
fmul st(2)
fld dword [esp + 0x110]
fmul st(2)
fsubp st(1)
fstp dword [esp + 0x78]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x18], eax
fstp st(0)
fstp st(0)
fld dword [esp + 0x78]
fmul dword [esp + 0x78]
fld dword [esp + 0x74]
fmul dword [esp + 0x74]
faddp st(1)
fld dword [esp + 0x70]
fmul dword [esp + 0x70]
faddp st(1)
fcomp dword [0x879dc4]
fnstsw ax
test ah, 0x44
jnp 0x52e2ff
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.00402c01
fld dword [esp + 0x30]
fadd dword [esp + 0x10]
fstp dword [esp + 0x30]
fld dword [esp + 0x34]
fadd dword [esp + 0x14]
fstp dword [esp + 0x34]
fld dword [esp + 0x38]
fadd dword [esp + 0x18]
fstp dword [esp + 0x38]
fld dword [esp + 0x3c]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x3c]
mov ecx, dword [esi + 0x38]
cmp ecx, esi
je 0x52e410
mov eax, dword [esi + 0x40]
cmp eax, esi
je 0x52e410
mov esi, dword [esi + 0xc]
mov ecx, dword [ecx + 0xc]
fld dword [esi]
fsub dword [ecx]
mov eax, dword [eax + 0xc]
fld dword [esi + 4]
fsub dword [ecx + 4]
fld dword [esi + 8]
fsub dword [ecx + 8]
fld dword [eax]
fsub dword [esi]
fstp dword [esp + 0xf0]
fld dword [eax + 4]
fsub dword [esi + 4]
fstp dword [esp + 0xf4]
fld dword [eax + 8]
fsub dword [esi + 8]
fld st(0)
fmul st(3)
fld dword [esp + 0xf4]
fmul st(3)
fsubp st(1)
fstp dword [esp + 0x54]
mov eax, dword [esp + 0x54]
fld dword [esp + 0xf0]
mov dword [esp + 0x10], eax
fmul st(2)
fxch st(1)
fmul st(4)
fsubp st(1)
fstp dword [esp + 0x58]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x14], ecx
fstp st(0)
fld dword [esp + 0xf4]
fmul st(2)
fld dword [esp + 0xf0]
fmul st(2)
fsubp st(1)
fstp dword [esp + 0x5c]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x18], edx
fstp st(0)
fstp st(0)
fld dword [esp + 0x5c]
fmul dword [esp + 0x5c]
fld dword [esp + 0x58]
fmul dword [esp + 0x58]
faddp st(1)
fld dword [esp + 0x54]
fmul dword [esp + 0x54]
faddp st(1)
fcomp dword [0x879dc4]
fnstsw ax
test ah, 0x44
jnp 0x52e410
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00402c01
fld dword [esp + 0x30]
fadd dword [esp + 0x10]
fstp dword [esp + 0x30]
fld dword [esp + 0x34]
fadd dword [esp + 0x14]
fstp dword [esp + 0x34]
fld dword [esp + 0x38]
fadd dword [esp + 0x18]
fstp dword [esp + 0x38]
fld dword [esp + 0x3c]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x3c]
fld dword [esp + 0x38]
fmul dword [esp + 0x38]
fld dword [esp + 0x34]
fmul dword [esp + 0x34]
faddp st(1)
fld dword [esp + 0x30]
fmul dword [esp + 0x30]
faddp st(1)
fcomp dword [0x879dc4]
fnstsw ax
test ah, 0x44
jnp 0x52e448
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.00402c01
fld dword [esp + 0xa8]
mov eax, dword [ebx]
test eax, eax
fmul dword [esp + 0x38]
fld dword [esp + 0xa4]
fmul dword [esp + 0x34]
faddp st(1)
fld dword [esp + 0xa0]
fmul dword [esp + 0x30]
faddp st(1)
fstp dword [esp + 0x2c]
jne 0x52e509
mov ecx, dword [esp + 0xc0]
mov eax, dword [esp + 0xc8]
mov edx, dword [esp + 0xc4]
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0xcc]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0xd8]
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0xd0]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x98], ecx
mov ecx, dword [eax + 0x2c]
mov dword [esp + 0x90], edx
mov edx, dword [esp + 0xdc]
push ecx
lea esi, [esp + 0x94]
lea edi, [esp + 0x84]
mov dword [esp + 0xa0], edx
call fcn.00529b10
add esp, 4
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x4c]
push edx
add eax, 0xc
push eax
lea esi, [esp + 0x88]
lea edi, [esp + 0x98]
call fcn.00529d50
mov eax, dword [ebx + 0x18]
add esp, 8
cmp eax, 2
jne 0x52e57e
mov eax, dword [ebx + 0x10]
fld dword [esp + 0x2c]
lea ecx, [eax + eax*2]
fchs
mov eax, dword [esp + 0x4c]
lea edx, [eax + ecx*8]
mov ecx, eax
mov esi, dword [ecx]
mov dword [edx], esi
mov esi, dword [ecx + 4]
mov dword [edx + 4], esi
mov ecx, dword [ecx + 8]
push ecx
mov dword [edx + 8], ecx
fstp dword [esp]
mov ecx, dword [ebx + 0x10]
lea edx, [ecx + ecx*2]
lea eax, [eax + edx*8 + 0xc]
push eax
lea esi, [esp + 0x88]
lea edi, [esp + 0x98]
call fcn.00529d50
add esp, 8
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
mov ecx, dword [ebx + 0x10]
add esi, 0x18
mov dword [esp + 0x4c], esi
mov esi, dword [esp + 0xc]
inc eax
add esi, 0x48
cmp eax, ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0xc], esi
jb 0x52df90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret