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

Disassembly:
sub esp, 0x54
mov edx, dword [esp + 0x60]
mov ecx, dword [edx + 0x50]
push ebx
mov ebx, dword [esp + 0x68]
push ebp
mov ebp, dword [esp + 0x60]
inc ecx
push esi
mov dword [esp + 0x28], ecx
mov ecx, dword [edx + 4]
push edi
sub ecx, dword [esp + 0x78]
mov edi, dword [edx + 0x44]
mov dword [esp + 0x78], ecx
mov ecx, dword [edx + 8]
mov esi, 0x120
sub esi, ecx
sar esi, 1
cmp ecx, edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x30], esi
jg 0x4af39b
mov dword [esp + 0x48], ecx
xor esi, esi
xor ecx, ecx
jmp 0x4af3b3
mov esi, dword [edx + 0x48]
cmp ecx, esi
mov dword [esp + 0x48], edi
jg 0x4af3ae
sub ecx, edi
mov esi, ecx
xor ecx, ecx
jmp 0x4af3b3
sub esi, edi
sub ecx, dword [edx + 0x48]
mov edi, dword [esp + 0x48]
test edi, edi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], ecx
jge 0x4af3cb
xor edi, edi
mov dword [esp + 0x48], edi
jmp 0x4af3cd
xor edi, edi
cmp esi, edi
jge 0x4af3d5
mov dword [esp + 0x4c], edi
cmp ecx, edi
jge 0x4af3dd
mov dword [esp + 0x50], edi
mov esi, dword [edx + 0x10]
mov ecx, 2
cmp esi, ecx
jne 0x4afb1e
mov esi, dword [edx + 0x14]
fld dword [0x4d8198]
cmp esi, edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
je 0x4af42e
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x54], ecx
lea ecx, [ebx + ebx*2]
shl ecx, 2
mov ebx, dword [ecx + 0x4fdad0]
mov ecx, dword [ecx + 0x4fecd8]
mov dword [esp + 0x60], 0xffffffff
jmp 0x4af453
or ecx, 0xffffffff
mov dword [esp + 0x60], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x54], ecx
lea ecx, [ebx + ebx*2]
shl ecx, 2
mov ebx, dword [ecx + 0x4fdad4]
mov ecx, dword [ecx + 0x4fecdc]
add edx, 0x18
mov dword [esp + 0x44], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + edx*4 + 0x48]
test ecx, ecx
mov edx, dword [esp + 0x3c]
mov edx, dword [edx]
lea edx, [edx*8 + 0x4e8eb0]
mov dword [esp + 0x38], edx
je 0x4af863
mov dword [esp + 0x40], ecx
jmp 0x4af490
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x4af515
mov ecx, dword [ebx]
fstp st(0)
mov edx, dword [ebx + 4]
add ebx, 4
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x68]
add ebx, 4
lea ebp, [ecx + edx*4]
mov edx, dword [ebx]
mov ecx, dword [ebx + 4]
add ebx, 4
add ebx, 4
cmp edx, 3
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x24], edx
jne 0x4af4f3
mov edx, dword [esp + 0x6c]
mov esi, dword [edx]
shl esi, cl
mov ecx, dword [esp + 0x70]
mov ecx, dword [ecx + 0x64]
add edx, 4
fld dword [ecx + esi*4]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x18], 1
jmp 0x4af515
mov esi, dword [esp + 0x6c]
mov edi, dword [esi]
shl edi, cl
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + edx*4 + 0x58]
add esi, 4
fld dword [edx + edi*4]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x18], 3
mov ecx, dword [esp + 0x38]
mov edi, dword [ecx + 4]
movsx ecx, word [edi]
test ecx, ecx
mov dword [esp + 0x1c], ecx
jge 0x4af57f
jmp 0x4af530
mov esi, dword [eax + 0x486c]
mov ecx, dword [eax + 0x4868]
mov dl, byte [esi]
shl dl, cl
add edi, 2
inc ecx
mov ebp, ecx
sar ebp, 3
add ebp, esi
and ecx, 7
test dl, dl
mov dword [eax + 0x486c], ebp
mov dword [eax + 0x4868], ecx
jns 0x4af567
mov ecx, dword [esp + 0x1c]
neg ecx
lea edi, [edi + ecx*2]
movsx ecx, word [edi]
mov esi, dword [esp + 0x78]
dec esi
test ecx, ecx
mov dword [esp + 0x78], esi
mov dword [esp + 0x1c], ecx
jl 0x4af530
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov ecx, edx
sar ecx, 4
and edx, 0xf
cmp ecx, 0xf
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], edx
jne 0x4af668
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp + ecx*4 + 0x54], edx
mov edx, dword [esp + 0x38]
mov edi, dword [edx]
mov edx, dword [esp + 0x78]
or ecx, 0xffffffff
sub ecx, edi
add edx, ecx
test edi, edi
mov dword [esp + 0x78], edx
jne 0x4af5c7
mov dword [esp + 0x34], edi
jmp 0x4af616
mov esi, dword [eax + 0x486c]
movzx edx, byte [esi + 1]
mov dh, byte [esi]
movzx ecx, byte [esi + 2]
mov ebp, dword [eax + 0x4868]
shl edx, 8
or edx, ecx
mov ecx, ebp
shl edx, cl
lea ecx, [edi + ebp]
mov ebp, ecx
and ecx, 7
mov dword [eax + 0x4868], ecx
sar ebp, 3
mov ecx, 0x18
add ebp, esi
and edx, 0xffffff
sub ecx, edi
shr edx, cl
mov dword [eax + 0x486c], ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x34], edx
mov esi, dword [eax + 0x486c]
fld st(0)
mov ecx, dword [eax + 0x4868]
mov dl, byte [esi]
shl dl, cl
inc ecx
mov edi, ecx
sar edi, 3
add edi, esi
and ecx, 7
test dl, dl
mov dword [eax + 0x486c], edi
mov dword [eax + 0x4868], ecx
jns 0x4af658
mov edx, dword [esp + 0x34]
fmul dword [edx*4 + 0x4f453c]
fchs
fstp dword [ebp]
jmp 0x4af6e0
mov ecx, dword [esp + 0x34]
fmul dword [ecx*4 + 0x4f453c]
fstp dword [ebp]
jmp 0x4af6e0
test ecx, ecx
je 0x4af6d9
mov edx, dword [esp + 0x20]
fld st(0)
mov ecx, dword [esp + 0x24]
mov esi, dword [eax + 0x486c]
mov dword [esp + ecx*4 + 0x54], edx
mov ecx, dword [eax + 0x4868]
mov dl, byte [esi]
shl dl, cl
inc ecx
mov edi, ecx
sar edi, 3
add edi, esi
and ecx, 7
test dl, dl
mov dword [eax + 0x486c], edi
mov dword [eax + 0x4868], ecx
jns 0x4af6c0
mov edx, dword [esp + 0x34]
fmul dword [edx*4 + 0x4f4500]
mov ecx, dword [esp + 0x78]
dec ecx
mov dword [esp + 0x78], ecx
fchs
fstp dword [ebp]
jmp 0x4af6e0
mov ecx, dword [esp + 0x34]
fmul dword [ecx*4 + 0x4f4500]
mov ecx, dword [esp + 0x78]
dec ecx
mov dword [esp + 0x78], ecx
fstp dword [ebp]
jmp 0x4af6e0
mov dword [ebp], 0
mov ecx, dword [esp + 0x18]
shl ecx, 2
add ebp, ecx
mov ecx, dword [esp + 0x1c]
cmp ecx, 0xf
mov dword [esp + 0x10], ebp
jne 0x4af7c6
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp + ecx*4 + 0x54], edx
mov edx, dword [esp + 0x38]
mov edi, dword [edx]
mov edx, dword [esp + 0x78]
or ecx, 0xffffffff
sub ecx, edi
add edx, ecx
test edi, edi
mov dword [esp + 0x78], edx
jne 0x4af725
mov dword [esp + 0x34], edi
jmp 0x4af774
mov esi, dword [eax + 0x486c]
movzx edx, byte [esi + 1]
mov dh, byte [esi]
movzx ecx, byte [esi + 2]
mov ebp, dword [eax + 0x4868]
shl edx, 8
or edx, ecx
mov ecx, ebp
shl edx, cl
lea ecx, [edi + ebp]
mov ebp, ecx
and ecx, 7
mov dword [eax + 0x4868], ecx
sar ebp, 3
mov ecx, 0x18
add ebp, esi
and edx, 0xffffff
sub ecx, edi
shr edx, cl
mov dword [eax + 0x486c], ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x34], edx
mov esi, dword [eax + 0x486c]
fld st(0)
mov ecx, dword [eax + 0x4868]
mov dl, byte [esi]
shl dl, cl
inc ecx
mov edi, ecx
sar edi, 3
add edi, esi
and ecx, 7
test dl, dl
mov dword [eax + 0x486c], edi
mov dword [eax + 0x4868], ecx
jns 0x4af7b6
mov edx, dword [esp + 0x34]
fmul dword [edx*4 + 0x4f453c]
fchs
fstp dword [ebp]
jmp 0x4af83e
mov ecx, dword [esp + 0x34]
fmul dword [ecx*4 + 0x4f453c]
fstp dword [ebp]
jmp 0x4af83e
test ecx, ecx
je 0x4af837
mov edx, dword [esp + 0x20]
fld st(0)
mov ecx, dword [esp + 0x24]
mov esi, dword [eax + 0x486c]
mov dword [esp + ecx*4 + 0x54], edx
mov ecx, dword [eax + 0x4868]
mov dl, byte [esi]
shl dl, cl
inc ecx
mov edi, ecx
sar edi, 3
add edi, esi
and ecx, 7
test dl, dl
mov dword [eax + 0x486c], edi
mov dword [eax + 0x4868], ecx
jns 0x4af81e
mov edx, dword [esp + 0x1c]
fmul dword [edx*4 + 0x4f4500]
mov ecx, dword [esp + 0x78]
dec ecx
mov dword [esp + 0x78], ecx
fchs
fstp dword [ebp]
jmp 0x4af83e
mov ecx, dword [esp + 0x1c]
fmul dword [ecx*4 + 0x4f4500]
mov ecx, dword [esp + 0x78]
dec ecx
mov dword [esp + 0x78], ecx
fstp dword [ebp]
jmp 0x4af83e
mov dword [ebp], 0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
shl ecx, 2
add ebp, ecx
mov ecx, dword [esp + 0x40]
dec edx
dec ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], edx
mov dword [esp + 0x40], ecx
jne 0x4af490
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x3c]
inc ecx
add esi, 4
cmp ecx, 2
mov dword [esp + 0x28], ecx
mov dword [esp + 0x3c], esi
jl 0x4af466
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x4afa56
lea esp, [esp]
mov ecx, dword [esp + 0x78]
test ecx, ecx
jle 0x4afa56
mov edx, dword [esp + 0x70]
mov ecx, dword [edx + 0x54]
mov ecx, dword [ecx*8 + 0x4e8fb4]
xor esi, esi
mov si, word [ecx]
test si, si
mov dword [esp + 0x3c], esi
jge 0x4af91c
jmp 0x4af8c0
add ecx, 2
mov dword [esp + 0x40], ecx
dec dword [esp + 0x78]
js 0x4af916
mov esi, dword [eax + 0x486c]
mov ecx, dword [eax + 0x4868]
mov dl, byte [esi]
shl dl, cl
inc ecx
mov edi, ecx
sar edi, 3
and ecx, 7
add edi, esi
test dl, dl
mov dword [eax + 0x4868], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 0x486c], edi
jns 0x4af906
movsx edx, word [esp + 0x3c]
neg edx
lea ecx, [ecx + edx*2]
xor esi, esi
mov si, word [ecx]
test si, si
mov dword [esp + 0x3c], esi
jl 0x4af8c0
jmp 0x4af91c
inc dword [esp + 0x78]
xor esi, esi
movsx ecx, si
xor edx, edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x40], ecx
lea esp, [esp]
test dl, 1
jne 0x4af9c9
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x4af9c5
mov ecx, dword [ebx]
fstp st(0)
mov esi, dword [esp + 0x68]
add ebx, 4
mov dword [esp + 0x14], ecx
mov ecx, dword [ebx]
add ebx, 4
lea ebp, [esi + ecx*4]
mov esi, dword [ebx]
mov ecx, dword [ebx + 4]
add ebx, 4
add ebx, 4
cmp esi, 3
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ecx
jne 0x4af99b
mov esi, dword [esp + 0x6c]
mov edi, dword [esi]
mov ecx, dword [esp + 0x2c]
shl edi, cl
mov ecx, dword [esp + 0x70]
mov ecx, dword [ecx + 0x64]
add esi, 4
fld dword [ecx + edi*4]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x18], 1
jmp 0x4af9c5
mov ecx, dword [esp + 0x6c]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x2c]
shl edi, cl
mov ecx, dword [esp + 0x70]
mov ecx, dword [ecx + esi*4 + 0x58]
mov dword [esp + 0x18], 3
fld dword [ecx + edi*4]
mov ecx, dword [esp + 0x6c]
add ecx, 4
mov dword [esp + 0x6c], ecx
dec dword [esp + 0x14]
mov ecx, edx
mov esi, 8
sar esi, cl
mov ecx, dword [esp + 0x40]
test ecx, esi
je 0x4afa29
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov dword [esp + ecx*4 + 0x54], edx
dec dword [esp + 0x78]
js 0x4afa48
mov esi, dword [eax + 0x486c]
mov dl, byte [esi]
mov ecx, dword [eax + 0x4868]
shl dl, cl
inc ecx
mov edi, ecx
sar edi, 3
add edi, esi
and ecx, 7
test dl, dl
mov edx, dword [esp + 0x28]
mov dword [eax + 0x486c], edi
mov dword [eax + 0x4868], ecx
jns 0x4afa24
fld st(0)
fchs
fstp dword [ebp]
jmp 0x4afa30
fst dword [ebp]
jmp 0x4afa30
mov dword [ebp], 0
mov ecx, dword [esp + 0x18]
inc edx
cmp edx, 4
lea ebp, [ebp + ecx*4]
mov dword [esp + 0x28], edx
jl 0x4af930
jmp 0x4afa4c
inc dword [esp + 0x78]
dec dword [esp + 0x30]
jne 0x4af890
mov edx, dword [esp + 0x44]
fstp st(0)
cmp ebx, edx
jae 0x4afab3
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
test esi, esi
jne 0x4afa95
mov esi, dword [ebx]
mov ecx, dword [ebx + 4]
mov edi, dword [esp + 0x68]
add ebx, 4
add ebx, 4
lea ebp, [edi + ecx*4]
mov ecx, dword [ebx]
add ebx, 4
cmp ecx, 3
mov edi, 1
je 0x4afa92
mov edi, 3
add ebx, 4
mov dword [ebp], 0
lea ecx, [edi*4]
add ebp, ecx
mov dword [ebp], 0
dec esi
add ebp, ecx
cmp ebx, edx
jb 0x4afa68
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x70]
lea edx, [ecx + 1]
mov dword [ebx + 0x30], edx
mov edx, dword [esp + 0x58]
cmp ecx, edx
lea esi, [edx + 1]
mov dword [ebx + 0x34], esi
mov esi, dword [esp + 0x5c]
lea edi, [esi + 1]
mov dword [ebx + 0x38], edi
mov edi, dword [esp + 0x60]
lea ebp, [edi + 1]
mov dword [ebx + 0x3c], ebp
jg 0x4afae5
mov ecx, edx
cmp ecx, esi
jg 0x4afaeb
mov ecx, esi
lea edx, [ecx + 1]
test edx, edx
mov ecx, dword [esp + 0x74]
je 0x4afb0a
imul ecx, ecx, 0xe
add ecx, edx
mov ecx, dword [ecx*4 + 0x50a320]
mov dword [ebx + 0x40], ecx
jmp 0x4b0086
imul ecx, ecx, 0x17
add ecx, edi
mov ecx, dword [ecx*4 + 0x509fe4]
mov dword [ebx + 0x40], ecx
jmp 0x4b0086
cmp dword [edx + 0x4c], edi
mov dword [esp + 0x34], 0x4e9058
jne 0x4afb33
mov dword [esp + 0x34], 0x5010a8
fld dword [0x4d8198]
lea ecx, [ebx + ebx*2]
mov ecx, dword [ecx*4 + 0x4fdad8]
add edx, 0x18
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + edx*4 + 0x48]
test ecx, ecx
mov edx, dword [esp + 0x38]
mov edx, dword [edx]
lea edx, [edx*8 + 0x4e8eb0]
mov dword [esp + 0x3c], edx
je 0x4afe8d
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x4afbd5
mov edx, dword [esp + 0x20]
fstp st(0)
mov ecx, dword [edx]
mov edi, dword [esp + 0x6c]
mov esi, dword [esp + 0x34]
mov ebx, dword [edi]
mov dword [esp + 0x18], ecx
add ebx, dword [esi]
mov ecx, dword [esp + 0x2c]
shl ebx, cl
mov ecx, dword [esp + 0x70]
mov ecx, dword [ecx + 0x64]
add edx, 4
fld dword [ecx + ebx*4]
mov ecx, dword [edx]
add esi, 4
add edi, 4
add edx, 4
mov dword [esp + 0x34], esi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x3c]
mov edi, dword [edx + 4]
movsx ebx, word [edi]
test ebx, ebx
mov dword [esp + 0x1c], ebx
jge 0x4afc3b
jmp 0x4afbf0
mov esi, dword [eax + 0x486c]
mov ecx, dword [eax + 0x4868]
mov dl, byte [esi]
shl dl, cl
add edi, 2
inc ecx
mov ebx, ecx
sar ebx, 3
add ebx, esi
and ecx, 7
test dl, dl
mov dword [eax + 0x486c], ebx
mov dword [eax + 0x4868], ecx
jns 0x4afc27
mov ecx, dword [esp + 0x1c]
neg ecx
lea edi, [edi + ecx*2]
movsx ebx, word [edi]
mov edx, dword [esp + 0x78]
dec edx
test ebx, ebx
mov dword [esp + 0x78], edx
mov dword [esp + 0x1c], ebx
jl 0x4afbf0
mov edi, ebx
sar edi, 4
and ebx, 0xf
cmp edi, 0xf
mov dword [esp + 0x1c], ebx
jne 0x4afcfd
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x3c]
mov edi, dword [edx]
mov edx, dword [esp + 0x78]
mov dword [esp + 0x14], ecx
or ecx, 0xffffffff
sub ecx, edi
add edx, ecx
test edi, edi
mov dword [esp + 0x78], edx
je 0x4afcbe
mov esi, dword [eax + 0x486c]
movzx edx, byte [esi + 1]
mov dh, byte [esi]
movzx ecx, byte [esi + 2]
mov ebp, dword [eax + 0x4868]
shl edx, 8
or edx, ecx
mov ecx, ebp
shl edx, cl
lea ecx, [edi + ebp]
mov ebp, dword [esp + 0x10]
mov ebx, ecx
and ecx, 7
mov dword [eax + 0x4868], ecx
sar ebx, 3
mov ecx, 0x18
sub ecx, edi
and edx, 0xffffff
add ebx, esi
shr edx, cl
mov dword [eax + 0x486c], ebx
mov edi, edx
mov esi, dword [eax + 0x486c]
fld st(0)
mov ecx, dword [eax + 0x4868]
mov dl, byte [esi]
shl dl, cl
inc ecx
mov ebx, ecx
sar ebx, 3
add ebx, esi
and ecx, 7
test dl, dl
mov dword [eax + 0x486c], ebx
mov ebx, dword [esp + 0x1c]
mov dword [eax + 0x4868], ecx
fmul dword [edi*4 + 0x4f453c]
jns 0x4afcf8
fchs
fstp dword [ebp]
jmp 0x4afd5b
test edi, edi
je 0x4afd54
mov edx, dword [esp + 0x28]
fld st(0)
mov esi, dword [eax + 0x486c]
mov ecx, dword [eax + 0x4868]
mov dword [esp + 0x14], edx
mov dl, byte [esi]
shl dl, cl
inc ecx
mov ebx, ecx
sar ebx, 3
add ebx, esi
and ecx, 7
test dl, dl
mov dword [eax + 0x486c], ebx
mov dword [eax + 0x4868], ecx
fmul dword [edi*4 + 0x4f4500]
jns 0x4afd3f
fchs
mov ecx, dword [esp + 0x78]
fstp dword [ebp]
mov ebx, dword [esp + 0x1c]
add ebp, 4
dec ecx
mov dword [esp + 0x78], ecx
jmp 0x4afd5e
mov dword [ebp], 0
add ebp, 4
cmp ebx, 0xf
mov dword [esp + 0x10], ebp
jne 0x4afe14
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x3c]
mov edi, dword [edx]
mov edx, dword [esp + 0x78]
mov dword [esp + 0x14], ecx
or ecx, 0xffffffff
sub ecx, edi
add edx, ecx
test edi, edi
mov dword [esp + 0x78], edx
je 0x4afdd9
mov esi, dword [eax + 0x486c]
movzx edx, byte [esi + 1]
mov dh, byte [esi]
movzx ecx, byte [esi + 2]
mov ebp, dword [eax + 0x4868]
shl edx, 8
or edx, ecx
mov ecx, ebp
shl edx, cl
lea ecx, [edi + ebp]
mov ebp, dword [esp + 0x10]
mov ebx, ecx
and ecx, 7
mov dword [eax + 0x4868], ecx
sar ebx, 3
mov ecx, 0x18
sub ecx, edi
and edx, 0xffffff
add ebx, esi
shr edx, cl
mov dword [eax + 0x486c], ebx
mov edi, edx
mov esi, dword [eax + 0x486c]
fld st(0)
mov ecx, dword [eax + 0x4868]
mov dl, byte [esi]
shl dl, cl
inc ecx
mov ebx, ecx
sar ebx, 3
add ebx, esi
and ecx, 7
test dl, dl
mov dword [eax + 0x486c], ebx
mov dword [eax + 0x4868], ecx
fmul dword [edi*4 + 0x4f453c]
jns 0x4afe0f
fchs
fstp dword [ebp]
jmp 0x4afe6e
test ebx, ebx
je 0x4afe67
mov edx, dword [esp + 0x28]
fld st(0)
mov esi, dword [eax + 0x486c]
mov ecx, dword [eax + 0x4868]
mov dword [esp + 0x14], edx
mov dl, byte [esi]
shl dl, cl
inc ecx
mov edi, ecx
sar edi, 3
add edi, esi
and ecx, 7
test dl, dl
mov dword [eax + 0x486c], edi
mov dword [eax + 0x4868], ecx
fmul dword [ebx*4 + 0x4f4500]
jns 0x4afe56
fchs
mov ecx, dword [esp + 0x78]
fstp dword [ebp]
add ebp, 4
dec ecx
mov dword [esp + 0x78], ecx
jmp 0x4afe71
mov dword [ebp], 0
add ebp, 4
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x44]
dec edx
dec ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], edx
mov dword [esp + 0x44], ecx
jne 0x4afb87
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x38]
inc ecx
add esi, 4
cmp ecx, 3
mov dword [esp + 0x24], ecx
mov dword [esp + 0x38], esi
jl 0x4afb62
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x4b0036
mov ebx, dword [esp + 0x20]
lea ebx, [ebx]
mov ecx, dword [esp + 0x78]
test ecx, ecx
jle 0x4b0036
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + 0x54]
mov ecx, dword [edx*8 + 0x4e8fb4]
mov di, word [ecx]
test di, di
jge 0x4aff40
add ecx, 2
mov dword [esp + 0x44], ecx
dec dword [esp + 0x78]
js 0x4aff3a
mov esi, dword [eax + 0x486c]
mov ecx, dword [eax + 0x4868]
mov dl, byte [esi]
shl dl, cl
inc ecx
mov ebx, ecx
sar ebx, 3
add ebx, esi
and ecx, 7
test dl, dl
mov dword [eax + 0x486c], ebx
mov dword [eax + 0x4868], ecx
jns 0x4aff28
mov edx, dword [esp + 0x44]
movsx ecx, di
neg ecx
lea ecx, [edx + ecx*2]
jmp 0x4aff2c
mov ecx, dword [esp + 0x44]
mov di, word [ecx]
test di, di
mov ebx, dword [esp + 0x20]
jl 0x4afee2
jmp 0x4aff40
inc dword [esp + 0x78]
xor edi, edi
movsx edx, di
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x44], edx
lea ecx, [ecx]
test cl, 1
jne 0x4affa6
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x4aff9e
mov ecx, dword [ebx]
fstp st(0)
mov edx, dword [ebx + 4]
mov edi, dword [esp + 0x6c]
mov esi, dword [esp + 0x34]
add ebx, 4
mov dword [esp + 0x18], ecx
mov ecx, dword [esi]
mov dword [esp + 0x28], edx
mov edx, dword [edi]
add edx, ecx
mov ecx, dword [esp + 0x2c]
shl edx, cl
mov ecx, dword [esp + 0x70]
mov ecx, dword [ecx + 0x64]
add esi, 4
fld dword [ecx + edx*4]
add ebx, 4
add edi, 4
mov dword [esp + 0x34], esi
mov dword [esp + 0x6c], edi
dec dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov edx, 8
sar edx, cl
mov ecx, dword [esp + 0x44]
test ecx, edx
je 0x4b0001
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x28]
dec ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x78], ecx
js 0x4b001f
mov esi, dword [eax + 0x486c]
mov ecx, dword [eax + 0x4868]
mov dl, byte [esi]
shl dl, cl
inc ecx
mov edi, ecx
sar edi, 3
add edi, esi
and ecx, 7
test dl, dl
mov dword [eax + 0x486c], edi
mov dword [eax + 0x4868], ecx
jns 0x4afffc
fld st(0)
fchs
fstp dword [ebp]
jmp 0x4b0008
fst dword [ebp]
jmp 0x4b0008
mov dword [ebp], 0
mov ecx, dword [esp + 0x24]
add ebp, 4
inc ecx
cmp ecx, 4
mov dword [esp + 0x24], ecx
jl 0x4aff50
jmp 0x4b0023
inc dword [esp + 0x78]
mov ecx, dword [esp + 0x30]
dec ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], ecx
jne 0x4afec0
mov ecx, dword [esp + 0x68]
fstp st(0)
sub ecx, ebp
add ecx, 0x900
sar ecx, 3
test ecx, ecx
je 0x4b0067
jmp 0x4b0050
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
dec ecx
jne 0x4b0050
mov ecx, dword [esp + 0x74]
mov esi, dword [esp + 0x14]
imul ecx, ecx, 0x17
mov edx, dword [esp + 0x70]
inc esi
add ecx, esi
mov dword [edx + 0x3c], esi
mov ecx, dword [ecx*4 + 0x509fe0]
mov dword [edx + 0x40], ecx
mov edi, dword [esp + 0x78]
cmp edi, 0x10
jle 0x4b00cc
mov esi, dword [eax + 0x486c]
mov ecx, dword [eax + 0x4868]
lea edx, [edi - 0x11]
shr edx, 4
inc edx
mov ebx, edx
neg ebx
shl ebx, 4
add edi, ebx
jmp 0x4b00b0
add ecx, 0x10
mov ebx, ecx
sar ebx, 3
add esi, ebx
and ecx, 7
dec edx
jne 0x4b00b0
mov dword [eax + 0x486c], esi
mov dword [eax + 0x4868], ecx
test edi, edi
jle 0x4b00ff
mov edx, dword [eax + 0x4868]
mov esi, dword [eax + 0x486c]
lea ecx, [edi + edx]
mov edx, ecx
sar edx, 3
add esi, edx
and ecx, 7
mov dword [eax + 0x486c], esi
mov dword [eax + 0x4868], ecx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret
jge 0x4b00f5
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x54
ret