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

Disassembly:
sub esp, 0x11c
push ebx
mov ebx, dword [esp + 0x128]
push ebp
push esi
mov ebp, ecx
push edi
push 1
push ebx
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x38], ebp
call fcn.006163d0
mov edi, eax
test edi, edi
mov dword [esp + 0x10], edi
je 0x5894fd
mov esi, dword [esp + 0x130]
mov ebp, dword [ebp + 0x20]
lea ecx, [esp + 0xec]
lea edx, [esp + 0xac]
mov eax, dword [esi]
push ecx
push edx
lea ecx, [ebp + 0x14]
mov dword [esp + 0xf4], eax
call fcn.0058d4e0
mov eax, dword [esp + 0xac]
mov ecx, dword [ebp + 0x18]
cmp eax, ecx
je 0x5894fd
lea ebp, [eax + 0x10]
test ebp, ebp
je 0x5894fd
mov eax, dword [edi + 0x2cc]
test eax, eax
je 0x587b49
xor ecx, ecx
mov cl, byte [eax + 0x40]
jmp 0x587b4c
or ecx, 0xffffffff
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 7
jne 0x587b9f
add edi, 0x98
mov ecx, dword [edi]
mov dword [esp + 0x84], ecx
lea ecx, [esp + 0x84]
mov edx, dword [edi + 4]
push ecx
mov ecx, dword [0x6e29b4]
push 1
mov eax, dword [edi + 8]
push 0x157c
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], eax
call fcn.0044d660
mov eax, dword [esi + 0x44]
mov ecx, 0x3e8
cdq
idiv ecx
mov eax, dword [esp + 0x30]
push 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x9c], 0
mov edi, edx
mov edx, dword [esp + 0x13c]
push edx
call fcn.006163d0
test eax, eax
jne 0x58884e
mov ecx, dword [esp + 0x10]
lea eax, [ecx + 0x98]
mov dword [esp + 0x78], eax
mov edx, dword [eax]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x24], edx
lea edx, [esp + 0x84]
mov eax, dword [eax + 8]
push edx
mov dword [esp + 0x2c], eax
call fcn.0045a200
mov esi, eax
mov al, byte [0x81a204]
test al, 1
jne 0x587c3d
mov dl, al
push fcn.004465e0
or dl, 1
mov byte [0x81a204], dl
call fcn.00673ac4
add esp, 4
fld dword [esp + 0x20]
fadd dword [esi]
push 0
push 0xa28
fstp dword [0x81a210]
fld dword [esp + 0x2c]
fadd dword [esi + 4]
mov eax, dword [0x81a210]
mov dword [esp + 0x28], eax
fstp dword [0x81a214]
fld dword [esp + 0x30]
fadd dword [esi + 8]
mov ecx, dword [0x81a214]
mov dword [esp + 0x98], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x18]
fstp dword [0x81a218]
mov edx, dword [0x81a218]
mov dword [esp + 0x30], edx
mov dword [esp + 0xa0], edx
call fcn.004628f0
test al, al
je 0x587d91
mov esi, dword [0x818760]
lea eax, [esp + 0x30]
lea ecx, [esp + 0x34]
push eax
push ecx
lea ecx, [esi + 0x14]
mov dword [esp + 0x38], 0x49498
call fcn.0046d7e0
mov eax, dword [esp + 0x34]
mov ecx, dword [esi + 0x18]
cmp eax, ecx
je 0x587e43
add eax, 0x10
test eax, eax
mov dword [esp + 0x7c], eax
je 0x587e43
mov edx, dword [esp + 0x78]
mov eax, dword [edx]
mov dword [esp + 0x20], eax
mov al, byte [0x81a204]
mov ecx, dword [edx + 4]
test al, 1
mov edx, dword [edx + 8]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
jne 0x587d24
mov dl, al
push fcn.004465e0
or dl, 1
mov byte [0x81a204], dl
call fcn.00673ac4
add esp, 4
fld dword [esp + 0x20]
fadd dword [esp + 0x90]
fstp dword [0x81a210]
fld dword [esp + 0x94]
fadd dword [esp + 0x24]
mov eax, dword [0x81a210]
fstp dword [0x81a214]
fld dword [esp + 0x98]
fadd dword [esp + 0x28]
mov ecx, dword [0x81a214]
fstp dword [0x81a218]
mov esi, dword [ebp + 4]
mov edx, dword [0x81a218]
push esi
mov esi, dword [esp + 0x140]
movsx esi, word [esi + 6]
push esi
sub esp, 0xc
mov esi, esp
mov dword [esi], eax
mov eax, dword [esp + 0x90]
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
jmp 0x587e32
mov edx, dword [esp + 0x78]
mov eax, dword [edx]
mov dword [esp + 0x20], eax
mov al, byte [0x81a204]
mov ecx, dword [edx + 4]
test al, 1
mov edx, dword [edx + 8]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
jne 0x587dca
mov dl, al
push fcn.004465e0
or dl, 1
mov byte [0x81a204], dl
call fcn.00673ac4
add esp, 4
fld dword [esp + 0x20]
fadd dword [esp + 0x90]
fstp dword [0x81a210]
fld dword [esp + 0x94]
fadd dword [esp + 0x24]
mov eax, dword [0x81a210]
fstp dword [0x81a214]
fld dword [esp + 0x98]
fadd dword [esp + 0x28]
mov ecx, dword [0x81a214]
fstp dword [0x81a218]
mov esi, dword [ebp + 4]
mov edx, dword [0x81a218]
push esi
mov esi, dword [esp + 0x140]
movsx esi, word [esi + 6]
push esi
sub esp, 0xc
mov esi, esp
mov dword [esi], eax
mov eax, dword [esp + 0x144]
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov ecx, dword [eax + 0x50]
push ecx
mov ecx, dword [0x818990]
push edi
push ebx
call fcn.0047a2d0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x13c]
add ecx, 0x98
mov eax, dword [ebp + 0x14]
movsx esi, word [edx + 6]
mov edx, dword [ecx]
dec eax
mov dword [esp + 0x20], edx
mov edx, dword [ecx + 4]
sar eax, 1
mov ecx, dword [ecx + 8]
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ecx
mov cl, byte [0x81a26c]
test cl, 1
mov dword [esp + 0x24], edx
jne 0x587e9d
mov dl, cl
push fcn.004465e0
or dl, 1
mov byte [0x81a26c], dl
call fcn.00673ac4
mov eax, dword [esp + 0x34]
add esp, 4
fld dword [esp + 0x90]
fsub dword [esp + 0x20]
cmp eax, 1
mov dword [esp + 0x78], 1
fstp dword [0x81a270]
fld dword [esp + 0x94]
fsub dword [esp + 0x24]
mov edx, dword [0x81a270]
mov dword [esp + 0x14], edx
fstp dword [0x81a274]
fld dword [esp + 0x98]
fsub dword [esp + 0x28]
mov ecx, dword [0x81a274]
mov dword [esp + 0x18], ecx
fstp dword [0x81a278]
mov edx, dword [0x81a278]
mov dword [esp + 0x1c], edx
jl 0x5894fd
fild dword [esp + 0x78]
mov ecx, dword [esp + 0x10]
push 0
push 0xa28
fmul dword [0x6a828c]
fmul dword [0x6a82b0]
fstp dword [esp + 0x34]
call fcn.004628f0
test al, al
je 0x5883be
mov eax, dword [0x818760]
lea ecx, [esp + 0x80]
lea edx, [esp + 0xa8]
push ecx
push edx
lea ecx, [eax + 0x14]
mov dword [esp + 0x88], 0x49498
mov dword [esp + 0x3c], eax
call fcn.0046d7e0
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0xa8]
cmp eax, dword [ecx + 0x18]
je 0x58882c
add eax, 0x10
test eax, eax
mov dword [esp + 0x34], eax
je 0x58882c
fld dword [esp + 0x2c]
fchs
fstp dword [esp + 0x7c]
lea ecx, [esp + 0x38]
mov dword [esp + 0x70], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x74], 0x3f800000
mov dword [esp + 0x60], 0x3f800000
mov dword [esp + 0x4c], 0x3f800000
mov dword [esp + 0x38], 0x3f800000
call fcn.0041d580
fld dword [esp + 0x7c]
fcos
mov al, byte [0x81a24c]
test al, 1
fstp dword [esp + 0x38]
fld dword [esp + 0x7c]
fsin
mov edx, dword [esp + 0x38]
mov dword [esp + 0x60], edx
fchs
fst dword [esp + 0x40]
fchs
fstp dword [esp + 0x58]
jne 0x588052
mov dl, al
push fcn.004465e0
or dl, 1
mov byte [0x81a24c], dl
call fcn.00673ac4
add esp, 4
fld dword [esp + 0x1c]
fmul dword [esp + 0x58]
fld dword [esp + 0x18]
fmul dword [esp + 0x48]
mov dword [esp + 0x7c], esi
faddp st(1)
fld dword [esp + 0x14]
fmul dword [esp + 0x38]
faddp st(1)
fadd dword [esp + 0x68]
fstp dword [0x81a250]
fld dword [esp + 0x3c]
fmul dword [esp + 0x14]
fld dword [esp + 0x1c]
fmul dword [esp + 0x5c]
mov eax, dword [0x81a250]
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0x10]
faddp st(1)
fld dword [esp + 0x18]
fmul dword [esp + 0x4c]
add eax, 0x98
faddp st(1)
fadd dword [esp + 0x6c]
fstp dword [0x81a254]
fld dword [esp + 0x40]
fmul dword [esp + 0x14]
fld dword [esp + 0x1c]
fmul dword [esp + 0x60]
mov ecx, dword [0x81a254]
mov dword [esp + 0xe4], ecx
faddp st(1)
fld dword [esp + 0x18]
fmul dword [esp + 0x50]
faddp st(1)
fadd dword [esp + 0x70]
fstp dword [0x81a258]
mov edx, dword [0x81a258]
mov ecx, dword [eax]
mov dword [esp + 0xe8], edx
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x24], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x28], eax
mov al, byte [0x81a204]
test al, 1
jne 0x58812c
mov dl, al
push fcn.004465e0
or dl, 1
mov byte [0x81a204], dl
call fcn.00673ac4
add esp, 4
fld dword [esp + 0x20]
fadd dword [esp + 0xe0]
inc esi
fstp dword [0x81a210]
fld dword [esp + 0x24]
fadd dword [esp + 0xe4]
mov eax, dword [0x81a210]
fstp dword [0x81a214]
fld dword [esp + 0x28]
fadd dword [esp + 0xe8]
mov ecx, dword [0x81a214]
fstp dword [0x81a218]
mov edx, dword [ebp + 4]
push edx
mov edx, dword [esp + 0x80]
push edx
sub esp, 0xc
mov edx, esp
mov dword [edx], eax
mov eax, dword [0x81a218]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0x50]
push ecx
mov ecx, dword [0x818990]
push edi
push ebx
call fcn.0047a2d0
lea ecx, [esp + 0x38]
mov dword [esp + 0x70], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x74], 0x3f800000
mov dword [esp + 0x60], 0x3f800000
mov dword [esp + 0x4c], 0x3f800000
mov dword [esp + 0x38], 0x3f800000
call fcn.0041d580
fld dword [esp + 0x2c]
fcos
mov al, byte [0x81a24c]
test al, 1
fstp dword [esp + 0x38]
fld dword [esp + 0x2c]
fsin
mov edx, dword [esp + 0x38]
mov dword [esp + 0x60], edx
fchs
fst dword [esp + 0x40]
fchs
fstp dword [esp + 0x58]
jne 0x58826c
mov dl, al
push fcn.004465e0
or dl, 1
mov byte [0x81a24c], dl
call fcn.00673ac4
add esp, 4
fld dword [esp + 0x1c]
fmul dword [esp + 0x58]
fld dword [esp + 0x18]
fmul dword [esp + 0x48]
mov dword [esp + 0x7c], esi
faddp st(1)
fld dword [esp + 0x14]
fmul dword [esp + 0x38]
faddp st(1)
fadd dword [esp + 0x68]
fstp dword [0x81a250]
fld dword [esp + 0x3c]
fmul dword [esp + 0x14]
fld dword [esp + 0x1c]
fmul dword [esp + 0x5c]
mov eax, dword [0x81a250]
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0x10]
faddp st(1)
fld dword [esp + 0x18]
fmul dword [esp + 0x4c]
add eax, 0x98
faddp st(1)
fadd dword [esp + 0x6c]
fstp dword [0x81a254]
fld dword [esp + 0x40]
fmul dword [esp + 0x14]
fld dword [esp + 0x1c]
fmul dword [esp + 0x60]
mov ecx, dword [0x81a254]
mov dword [esp + 0xcc], ecx
faddp st(1)
fld dword [esp + 0x18]
fmul dword [esp + 0x50]
faddp st(1)
fadd dword [esp + 0x70]
fstp dword [0x81a258]
mov edx, dword [0x81a258]
mov ecx, dword [eax]
mov dword [esp + 0xd0], edx
mov dword [esp + 0xd4], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xd8], edx
mov eax, dword [eax + 8]
mov dword [esp + 0xdc], eax
mov al, byte [0x81a204]
test al, 1
jne 0x58834f
mov dl, al
push fcn.004465e0
or dl, 1
mov byte [0x81a204], dl
call fcn.00673ac4
add esp, 4
fld dword [esp + 0xd4]
fadd dword [esp + 0xc8]
inc esi
fstp dword [0x81a210]
fld dword [esp + 0xd8]
fadd dword [esp + 0xcc]
mov eax, dword [0x81a210]
fstp dword [0x81a214]
fld dword [esp + 0xdc]
fadd dword [esp + 0xd0]
mov ecx, dword [0x81a214]
fstp dword [0x81a218]
mov edx, dword [ebp + 4]
push edx
mov edx, dword [esp + 0x80]
push edx
sub esp, 0xc
mov edx, esp
mov dword [edx], eax
mov eax, dword [0x81a218]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov eax, dword [esp + 0x48]
jmp 0x58881b
fld dword [esp + 0x2c]
fchs
fstp dword [esp + 0x34]
lea ecx, [esp + 0x38]
mov dword [esp + 0x70], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x74], 0x3f800000
mov dword [esp + 0x60], 0x3f800000
mov dword [esp + 0x4c], 0x3f800000
mov dword [esp + 0x38], 0x3f800000
call fcn.0041d580
fld dword [esp + 0x34]
fcos
mov al, byte [0x81a24c]
test al, 1
fstp dword [esp + 0x38]
fld dword [esp + 0x34]
fsin
mov edx, dword [esp + 0x38]
mov dword [esp + 0x60], edx
fchs
fst dword [esp + 0x40]
fchs
fstp dword [esp + 0x58]
jne 0x588496
mov dl, al
push fcn.004465e0
or dl, 1
mov byte [0x81a24c], dl
call fcn.00673ac4
add esp, 4
fld dword [esp + 0x1c]
fmul dword [esp + 0x58]
fld dword [esp + 0x18]
fmul dword [esp + 0x48]
mov dword [esp + 0x80], esi
faddp st(1)
fld dword [esp + 0x14]
fmul dword [esp + 0x38]
faddp st(1)
fadd dword [esp + 0x68]
fstp dword [0x81a250]
fld dword [esp + 0x3c]
fmul dword [esp + 0x14]
fld dword [esp + 0x1c]
fmul dword [esp + 0x5c]
mov eax, dword [0x81a250]
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0x10]
faddp st(1)
fld dword [esp + 0x18]
fmul dword [esp + 0x4c]
add eax, 0x98
faddp st(1)
fadd dword [esp + 0x6c]
fstp dword [0x81a254]
fld dword [esp + 0x40]
fmul dword [esp + 0x14]
fld dword [esp + 0x1c]
fmul dword [esp + 0x60]
mov ecx, dword [0x81a254]
mov dword [esp + 0xc0], ecx
faddp st(1)
fld dword [esp + 0x18]
fmul dword [esp + 0x50]
faddp st(1)
fadd dword [esp + 0x70]
fstp dword [0x81a258]
mov edx, dword [0x81a258]
mov ecx, dword [eax]
mov dword [esp + 0xc4], edx
mov dword [esp + 0xb0], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xb4], edx
mov eax, dword [eax + 8]
mov dword [esp + 0xb8], eax
mov al, byte [0x81a204]
test al, 1
jne 0x58857c
mov dl, al
push fcn.004465e0
or dl, 1
mov byte [0x81a204], dl
call fcn.00673ac4
add esp, 4
fld dword [esp + 0xb0]
fadd dword [esp + 0xbc]
inc esi
fstp dword [0x81a210]
fld dword [esp + 0xb4]
fadd dword [esp + 0xc0]
mov eax, dword [0x81a210]
fstp dword [0x81a214]
fld dword [esp + 0xb8]
fadd dword [esp + 0xc4]
mov ecx, dword [0x81a214]
fstp dword [0x81a218]
mov edx, dword [ebp + 4]
push edx
mov edx, dword [esp + 0x84]
push edx
sub esp, 0xc
mov edx, esp
mov dword [edx], eax
mov eax, dword [0x81a218]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov eax, dword [esp + 0x144]
mov ecx, dword [eax + 0x50]
push ecx
mov ecx, dword [0x818990]
push edi
push ebx
call fcn.0047a2d0
lea ecx, [esp + 0x38]
mov dword [esp + 0x70], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x74], 0x3f800000
mov dword [esp + 0x60], 0x3f800000
mov dword [esp + 0x4c], 0x3f800000
mov dword [esp + 0x38], 0x3f800000
call fcn.0041d580
fld dword [esp + 0x2c]
fcos
mov al, byte [0x81a24c]
test al, 1
fstp dword [esp + 0x38]
fld dword [esp + 0x2c]
fsin
mov edx, dword [esp + 0x38]
mov dword [esp + 0x60], edx
fchs
fst dword [esp + 0x40]
fchs
fstp dword [esp + 0x58]
jne 0x5886c8
mov dl, al
push fcn.004465e0
or dl, 1
mov byte [0x81a24c], dl
call fcn.00673ac4
add esp, 4
fld dword [esp + 0x1c]
fmul dword [esp + 0x58]
fld dword [esp + 0x18]
fmul dword [esp + 0x48]
mov dword [esp + 0x80], esi
faddp st(1)
fld dword [esp + 0x14]
fmul dword [esp + 0x38]
faddp st(1)
fadd dword [esp + 0x68]
fstp dword [0x81a250]
fld dword [esp + 0x3c]
fmul dword [esp + 0x14]
fld dword [esp + 0x1c]
fmul dword [esp + 0x5c]
mov eax, dword [0x81a250]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x10]
faddp st(1)
fld dword [esp + 0x18]
fmul dword [esp + 0x4c]
add eax, 0x98
faddp st(1)
fadd dword [esp + 0x6c]
fstp dword [0x81a254]
fld dword [esp + 0x40]
fmul dword [esp + 0x14]
fld dword [esp + 0x1c]
fmul dword [esp + 0x60]
mov ecx, dword [0x81a254]
mov dword [esp + 0x88], ecx
faddp st(1)
fld dword [esp + 0x18]
fmul dword [esp + 0x50]
faddp st(1)
fadd dword [esp + 0x70]
fstp dword [0x81a258]
mov edx, dword [0x81a258]
mov ecx, dword [eax]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x9c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xa0], edx
mov eax, dword [eax + 8]
mov dword [esp + 0xa4], eax
mov al, byte [0x81a204]
test al, 1
jne 0x5887ae
mov dl, al
push fcn.004465e0
or dl, 1
mov byte [0x81a204], dl
call fcn.00673ac4
add esp, 4
fld dword [esp + 0x9c]
fadd dword [esp + 0x84]
inc esi
fstp dword [0x81a210]
fld dword [esp + 0xa0]
fadd dword [esp + 0x88]
mov eax, dword [0x81a210]
fstp dword [0x81a214]
fld dword [esp + 0xa4]
fadd dword [esp + 0x8c]
mov ecx, dword [0x81a214]
fstp dword [0x81a218]
mov edx, dword [ebp + 4]
push edx
mov edx, dword [esp + 0x84]
push edx
sub esp, 0xc
mov edx, esp
mov dword [edx], eax
mov eax, dword [0x81a218]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov eax, dword [esp + 0x144]
mov ecx, dword [eax + 0x50]
push ecx
mov ecx, dword [0x818990]
push edi
push ebx
call fcn.0047a2d0
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x30]
inc eax
cmp eax, ecx
mov dword [esp + 0x78], eax
jle 0x587eff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret 0x10
lea edx, [esp + 0x84]
mov ecx, eax
push edx
call fcn.00460bd0
mov ecx, dword [eax]
push 0
mov dword [esp + 0x94], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x98], edx
mov eax, dword [eax + 8]
push 0xa28
mov dword [esp + 0xa0], eax
mov eax, dword [ebp + 4]
test eax, eax
jne 0x58910f
call fcn.004628f0
test al, al
je 0x58890d
mov esi, dword [0x818760]
lea ecx, [esp + 0xa8]
lea edx, [esp + 0x80]
push ecx
push edx
lea ecx, [esi + 0x14]
mov dword [esp + 0xb0], 0x49498
call fcn.0046d7e0
mov eax, dword [esp + 0x80]
mov ecx, dword [esi + 0x18]
cmp eax, ecx
je 0x58894e
add eax, 0x10
test eax, eax
je 0x58894e
mov ecx, dword [esp + 0x13c]
push 0
mov eax, dword [eax + 0x50]
movsx edx, word [ecx + 6]
push edx
mov edx, dword [esp + 0x98]
sub esp, 0xc
mov ecx, esp
push eax
mov dword [ecx], edx
mov edx, dword [esp + 0xac]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0xb0]
mov dword [ecx + 8], edx
jmp 0x588941
mov ecx, dword [esp + 0x13c]
push 0
movsx edx, word [ecx + 6]
mov ecx, dword [esp + 0x94]
push edx
mov edx, dword [esp + 0x9c]
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0xac]
mov dword [eax + 4], edx
mov edx, dword [esi + 0x50]
push edx
mov dword [eax + 8], ecx
mov ecx, dword [0x818990]
push edi
push ebx
call fcn.0047a2d0
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x13c]
mov ebp, dword [esp + 0x10]
dec eax
movsx esi, word [ecx + 6]
lea ecx, [ebp + 0x98]
sar eax, 1
mov edx, dword [ecx]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x84], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x88], edx
mov ecx, dword [ecx + 8]
mov dword [esp + 0x8c], ecx
mov cl, byte [0x81a26c]
test cl, 1
jne 0x5889b4
mov dl, cl
push fcn.004465e0
or dl, 1
mov byte [0x81a26c], dl
call fcn.00673ac4
mov eax, dword [esp + 0x80]
add esp, 4
fld dword [esp + 0x90]
fsub dword [esp + 0x84]
cmp eax, 1
mov dword [esp + 0x78], 1
fstp dword [0x81a270]
fld dword [esp + 0x94]
fsub dword [esp + 0x88]
mov edx, dword [0x81a270]
mov dword [esp + 0x14], edx
fstp dword [0x81a274]
fld dword [esp + 0x98]
fsub dword [esp + 0x8c]
mov ecx, dword [0x81a274]
mov dword [esp + 0x18], ecx
fstp dword [0x81a278]
mov edx, dword [0x81a278]
mov dword [esp + 0x1c], edx
jl 0x5894fd
fild dword [esp + 0x78]
push 0
push 0xa28
mov ecx, ebp
fmul dword [0x6a828c]
fmul dword [0x6a82b0]
fstp dword [esp + 0x34]
call fcn.004628f0
test al, al
je 0x588efa
mov eax, dword [0x818760]
lea ecx, [esp + 0xa8]
lea edx, [esp + 0x80]
push ecx
push edx
lea ecx, [eax + 0x14]
mov dword [esp + 0xb0], 0x49498
mov dword [esp + 0xb4], eax
call fcn.0046d7e0
mov ecx, dword [esp + 0xac]
mov eax, dword [esp + 0x80]
cmp eax, dword [ecx + 0x18]
je 0x5890ed
add eax, 0x10
test eax, eax
mov dword [esp + 0x34], eax
je 0x5890ed
fld dword [esp + 0x2c]
fchs
fstp dword [esp + 0x30]
lea ecx, [esp + 0x38]
mov dword [esp + 0x70], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x74], 0x3f800000
mov dword [esp + 0x60], 0x3f800000
mov dword [esp + 0x4c], 0x3f800000
mov dword [esp + 0x38], 0x3f800000
call fcn.0041d580
fld dword [esp + 0x30]
fcos
mov al, byte [0x81a24c]
test al, 1
fstp dword [esp + 0x38]
fld dword [esp + 0x30]
fsin
mov edx, dword [esp + 0x38]
mov dword [esp + 0x60], edx
fchs
fst dword [esp + 0x40]
fchs
fstp dword [esp + 0x58]
jne 0x588b76
mov dl, al
push fcn.004465e0
or dl, 1
mov byte [0x81a24c], dl
call fcn.00673ac4
add esp, 4
fld dword [esp + 0x1c]
fmul dword [esp + 0x58]
fld dword [esp + 0x18]
fmul dword [esp + 0x48]
mov dword [esp + 0xac], esi
faddp st(1)
fld dword [esp + 0x14]
fmul dword [esp + 0x38]
faddp st(1)
fadd dword [esp + 0x68]
fstp dword [0x81a250]
fld dword [esp + 0x3c]
fmul dword [esp + 0x14]
fld dword [esp + 0x1c]
fmul dword [esp + 0x5c]
mov eax, dword [0x81a250]
mov dword [esp + 0x84], eax
mov dword [esp + 0x20], eax
faddp st(1)
fld dword [esp + 0x18]
fmul dword [esp + 0x4c]
lea eax, [ebp + 0x98]
faddp st(1)
fadd dword [esp + 0x6c]
fstp dword [0x81a254]
fld dword [esp + 0x40]
fmul dword [esp + 0x14]
fld dword [esp + 0x1c]
fmul dword [esp + 0x60]
mov ecx, dword [0x81a254]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x24], ecx
faddp st(1)
fld dword [esp + 0x18]
fmul dword [esp + 0x50]
faddp st(1)
fadd dword [esp + 0x70]
fstp dword [0x81a258]
mov edx, dword [0x81a258]
mov ecx, dword [eax]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x28], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], edx
mov eax, dword [eax + 8]
mov dword [esp + 0xa4], eax
mov al, byte [0x81a204]
test al, 1
jne 0x588c65
mov dl, al
push fcn.004465e0
or dl, 1
mov byte [0x81a204], dl
call fcn.00673ac4
add esp, 4
fld dword [esp + 0x9c]
fadd dword [esp + 0x20]
mov ebp, dword [esp + 0xac]
push 0
push ebp
inc esi
sub esp, 0xc
fstp dword [0x81a210]
fld dword [esp + 0x38]
fadd dword [esp + 0xb4]
mov eax, dword [0x81a210]
mov ebp, esp
mov dword [ebp], eax
fstp dword [0x81a214]
fld dword [esp + 0x3c]
fadd dword [esp + 0xb8]
mov ecx, dword [0x81a214]
mov dword [ebp + 4], ecx
mov ecx, dword [esp + 0x48]
fstp dword [0x81a218]
mov edx, dword [0x81a218]
mov dword [ebp + 8], edx
mov edx, dword [ecx + 0x50]
mov ecx, dword [0x818990]
push edx
push edi
push ebx
call fcn.0047a2d0
lea ecx, [esp + 0x38]
mov dword [esp + 0x70], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x74], 0x3f800000
mov dword [esp + 0x60], 0x3f800000
mov dword [esp + 0x4c], 0x3f800000
mov dword [esp + 0x38], 0x3f800000
call fcn.0041d580
fld dword [esp + 0x2c]
fcos
fstp dword [esp + 0x38]
fld dword [esp + 0x2c]
fsin
mov eax, dword [esp + 0x38]
mov dword [esp + 0x60], eax
mov al, byte [0x81a24c]
test al, 1
fchs
fst dword [esp + 0x40]
fchs
fstp dword [esp + 0x58]
jne 0x588da5
mov dl, al
push fcn.004465e0
or dl, 1
mov byte [0x81a24c], dl
call fcn.00673ac4
add esp, 4
fld dword [esp + 0x1c]
fmul dword [esp + 0x58]
fld dword [esp + 0x18]
fmul dword [esp + 0x48]
mov ebp, esi
faddp st(1)
fld dword [esp + 0x14]
fmul dword [esp + 0x38]
faddp st(1)
fadd dword [esp + 0x68]
fstp dword [0x81a250]
fld dword [esp + 0x3c]
fmul dword [esp + 0x14]
fld dword [esp + 0x1c]
fmul dword [esp + 0x5c]
mov ecx, dword [0x81a250]
mov dword [esp + 0xbc], ecx
mov dword [esp + 0x20], ecx
faddp st(1)
fld dword [esp + 0x18]
fmul dword [esp + 0x4c]
mov ecx, dword [esp + 0x10]
faddp st(1)
fadd dword [esp + 0x6c]
fstp dword [0x81a254]
fld dword [esp + 0x40]
fmul dword [esp + 0x14]
fld dword [esp + 0x1c]
fmul dword [esp + 0x60]
mov edx, dword [0x81a254]
mov dword [esp + 0xc0], edx
mov dword [esp + 0x24], edx
faddp st(1)
fld dword [esp + 0x18]
fmul dword [esp + 0x50]
faddp st(1)
fadd dword [esp + 0x70]
fstp dword [0x81a258]
mov eax, dword [0x81a258]
mov dword [esp + 0xc4], eax
mov dword [esp + 0x28], eax
lea eax, [ecx + 0x98]
mov edx, dword [ecx + 0x98]
mov dword [esp + 0xb0], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0xb4], ecx
mov edx, dword [eax + 8]
mov al, byte [0x81a204]
test al, 1
mov dword [esp + 0xb8], edx
jne 0x588e97
mov dl, al
push fcn.004465e0
or dl, 1
mov byte [0x81a204], dl
call fcn.00673ac4
add esp, 4
fld dword [esp + 0xb0]
fadd dword [esp + 0x20]
push 0
push ebp
inc esi
sub esp, 0xc
mov ebp, esp
fstp dword [0x81a210]
fld dword [esp + 0x38]
fadd dword [esp + 0xc8]
mov eax, dword [0x81a210]
mov dword [ebp], eax
mov eax, dword [esp + 0x48]
fstp dword [0x81a214]
fld dword [esp + 0x3c]
fadd dword [esp + 0xcc]
mov ecx, dword [0x81a214]
mov dword [ebp + 4], ecx
fstp dword [0x81a218]
mov edx, dword [0x81a218]
mov ecx, dword [eax + 0x50]
mov dword [ebp + 8], edx
push ecx
jmp 0x5890dc
fld dword [esp + 0x2c]
fchs
fstp dword [esp + 0x30]
lea ecx, [esp + 0x38]
mov dword [esp + 0x70], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x74], 0x3f800000
mov dword [esp + 0x60], 0x3f800000
mov dword [esp + 0x4c], 0x3f800000
mov dword [esp + 0x38], 0x3f800000
call fcn.0041d580
fld dword [esp + 0x30]
fcos
lea edx, [esp + 0x38]
lea eax, [esp + 0xe0]
push edx
push eax
lea ecx, [esp + 0x1c]
fst dword [esp + 0x40]
fld dword [esp + 0x38]
fsin
fchs
fst dword [esp + 0x48]
fchs
fstp dword [esp + 0x60]
fstp dword [esp + 0x68]
call fcn.0041d0d0
mov ecx, dword [eax]
add ebp, 0x98
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 4]
mov ecx, ebp
mov dword [esp + 0x24], edx
mov eax, dword [eax + 8]
push 0
mov edx, dword [ecx]
mov dword [esp + 0x2c], eax
mov dword [esp + 0xcc], edx
mov eax, esi
mov edx, dword [ecx + 4]
push eax
mov dword [esp + 0xd4], edx
lea edx, [esp + 0xd0]
mov ecx, dword [ecx + 8]
lea eax, [esp + 0x110]
mov dword [esp + 0xd8], ecx
push edx
push eax
lea ecx, [esp + 0x30]
inc esi
call fcn.00428230
mov edx, dword [eax]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov ecx, dword [esp + 0x144]
mov edx, dword [ecx + 0x50]
mov ecx, dword [0x818990]
push edx
push edi
push ebx
call fcn.0047a2d0
lea ecx, [esp + 0x38]
call fcn.0041d580
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x3c]
call fcn.0041d6f0
lea ecx, [esp + 0x38]
lea edx, [esp + 0xfc]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.0041d0d0
push eax
lea ecx, [esp + 0x24]
call fcn.0041ea40
mov ecx, dword [ebp]
mov eax, esi
mov dword [esp + 0xd4], ecx
push 0
mov edx, dword [ebp + 4]
push eax
mov dword [esp + 0xe0], edx
lea edx, [esp + 0xdc]
mov ecx, dword [ebp + 8]
lea eax, [esp + 0xf8]
mov dword [esp + 0xe4], ecx
push edx
push eax
lea ecx, [esp + 0x30]
inc esi
call fcn.00428230
mov edx, dword [eax]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov ecx, dword [esp + 0x144]
mov edx, dword [ecx + 0x50]
push edx
mov ecx, dword [0x818990]
push edi
push ebx
call fcn.0047a2d0
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
inc eax
cmp eax, ecx
mov dword [esp + 0x78], eax
jle 0x588a1f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret 0x10
call fcn.004628f0
test al, al
je 0x58914d
mov ecx, dword [0x818760]
push 0x49498
call fcn.004dba00
test eax, eax
je 0x58917a
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x13c]
push ecx
movsx ecx, word [edx + 6]
mov edx, dword [esi + 0x58]
push ecx
mov ecx, dword [esp + 0x140]
push edx
mov edx, dword [eax + 0x50]
push ecx
jmp 0x58916c
mov ecx, dword [esp + 0x13c]
mov eax, dword [ebp + 4]
push eax
mov eax, dword [esi + 0x58]
movsx edx, word [ecx + 6]
mov ecx, dword [esp + 0x13c]
push edx
mov edx, dword [esi + 0x50]
push eax
push ecx
mov ecx, dword [0x818990]
push edx
push edi
push ebx
call fcn.00479de0
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x10]
dec eax
sar eax, 1
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x13c]
movsx esi, word [eax + 6]
lea eax, [ecx + 0x98]
mov edx, dword [ecx + 0x98]
mov dword [esp + 0x9c], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0xa0], ecx
lea ecx, [esp + 0x84]
mov edx, dword [eax + 8]
lea eax, [esp + 0x9c]
push eax
push ecx
lea ecx, [esp + 0x98]
mov dword [esp + 0xac], edx
call fcn.0041d180
mov ecx, dword [esp + 0x34]
mov eax, 1
cmp ecx, eax
mov dword [esp + 0x78], eax
jl 0x5894fd
fild dword [esp + 0x78]
mov ecx, dword [esp + 0x10]
push 0
push 0xa28
fmul dword [0x6a828c]
fmul dword [0x6a82b0]
fstp dword [esp + 0x34]
call fcn.004628f0
test al, al
je 0x589384
mov ecx, dword [0x818760]
push 0x49498
call fcn.004dba00
test eax, eax
mov dword [esp + 0x30], eax
je 0x5894e8
lea ecx, [esp + 0x38]
call fcn.0041d580
fld dword [esp + 0x2c]
push ecx
lea ecx, [esp + 0x3c]
fchs
fstp dword [esp]
call fcn.0041d6f0
lea edx, [esp + 0x38]
lea eax, [esp + 0xf0]
push edx
push eax
lea ecx, [esp + 0x8c]
call fcn.0041d0d0
push eax
lea ecx, [esp + 0x24]
call fcn.0041ea40
mov ecx, dword [esp + 0x10]
mov eax, esi
add ecx, 0x98
inc esi
mov edx, dword [ecx]
mov dword [esp + 0x9c], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0xa0], edx
mov edx, dword [ebp + 4]
mov ecx, dword [ecx + 8]
push edx
push eax
mov dword [esp + 0xac], ecx
lea eax, [esp + 0xa4]
lea ecx, [esp + 0x104]
push eax
push ecx
lea ecx, [esp + 0x30]
call fcn.00428230
mov ecx, dword [eax]
sub esp, 0xc
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x44]
mov dword [edx + 8], eax
mov edx, dword [ecx + 0x50]
mov ecx, dword [0x818990]
push edx
push edi
push ebx
call fcn.0047a2d0
lea ecx, [esp + 0x38]
call fcn.0041d580
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x38]
push eax
call fcn.0041d6f0
lea ecx, [esp + 0x38]
lea edx, [esp + 0x108]
push ecx
push edx
lea ecx, [esp + 0x8c]
call fcn.0041d0d0
push eax
lea ecx, [esp + 0x24]
call fcn.0041ea40
mov ecx, dword [esp + 0x10]
mov eax, esi
add ecx, 0x98
inc esi
mov edx, dword [ecx]
mov dword [esp + 0xbc], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0xc0], edx
mov edx, dword [ebp + 4]
mov ecx, dword [ecx + 8]
push edx
push eax
lea eax, [esp + 0xc4]
mov dword [esp + 0xcc], ecx
push eax
lea ecx, [esp + 0xe0]
push ecx
lea ecx, [esp + 0x30]
call fcn.00428230
mov ecx, dword [eax]
sub esp, 0xc
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x44]
mov dword [edx + 8], eax
jmp 0x5894d7
lea ecx, [esp + 0x38]
call fcn.0041d580
fld dword [esp + 0x2c]
push ecx
lea ecx, [esp + 0x3c]
fchs
fstp dword [esp]
call fcn.0041d6f0
lea eax, [esp + 0x38]
lea ecx, [esp + 0xe0]
push eax
push ecx
lea ecx, [esp + 0x8c]
call fcn.0041d0d0
push eax
lea ecx, [esp + 0x24]
call fcn.0041ea40
mov edx, dword [esp + 0x10]
mov eax, esi
inc esi
lea ecx, [edx + 0x98]
mov edx, dword [edx + 0x98]
mov dword [esp + 0xb0], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0xb4], edx
mov edx, dword [ebp + 4]
mov ecx, dword [ecx + 8]
push edx
push eax
mov dword [esp + 0xc0], ecx
lea eax, [esp + 0xb8]
lea ecx, [esp + 0x1c]
push eax
push ecx
lea ecx, [esp + 0x30]
call fcn.00428230
mov ecx, dword [eax]
sub esp, 0xc
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x144]
mov dword [edx + 8], eax
mov edx, dword [ecx + 0x50]
mov ecx, dword [0x818990]
push edx
push edi
push ebx
call fcn.0047a2d0
lea ecx, [esp + 0x38]
call fcn.0041d580
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x38]
push eax
call fcn.0041d6f0
lea ecx, [esp + 0x38]
lea edx, [esp + 0x114]
push ecx
push edx
lea ecx, [esp + 0x8c]
call fcn.0041d0d0
push eax
lea ecx, [esp + 0x24]
call fcn.0041ea40
mov ecx, dword [esp + 0x10]
mov eax, esi
add ecx, 0x98
inc esi
mov edx, dword [ecx]
mov dword [esp + 0xc8], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0xcc], edx
mov edx, dword [ebp + 4]
mov ecx, dword [ecx + 8]
push edx
push eax
lea eax, [esp + 0xd0]
mov dword [esp + 0xd8], ecx
push eax
lea ecx, [esp + 0x12c]
push ecx
lea ecx, [esp + 0x30]
call fcn.00428230
mov ecx, dword [eax]
sub esp, 0xc
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x144]
mov dword [edx + 8], eax
mov edx, dword [ecx + 0x50]
mov ecx, dword [0x818990]
push edx
push edi
push ebx
call fcn.0047a2d0
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x34]
inc eax
cmp eax, ecx
mov dword [esp + 0x78], eax
jle 0x5891eb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret 0x10