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

Disassembly:
sub esp, 0x50
mov ecx, dword [esp + 0x60]
push ebx
mov ebx, dword [esp + 0x6c]
mov edx, 0x120
mov eax, dword [ecx + 0x50]
push ebp
inc eax
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 4]
sub eax, ebx
mov ebx, dword [ecx + 0x48]
mov dword [esp + 0x70], eax
mov eax, dword [ecx + 8]
push esi
mov esi, dword [ecx + 0x44]
sub edx, eax
push edi
sar edx, 1
xor edi, edi
cmp eax, esi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x2c], edx
jg 0x510140
mov esi, eax
xor edx, edx
mov dword [esp + 0x44], esi
xor eax, eax
jmp 0x510158
cmp eax, ebx
mov dword [esp + 0x44], esi
jg 0x510150
sub eax, esi
mov edx, eax
xor eax, eax
jmp 0x510158
mov edx, ebx
sub eax, ebx
sub edx, esi
xor edi, edi
cmp esi, edi
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
jge 0x510168
mov dword [esp + 0x44], edi
cmp edx, edi
jge 0x510170
mov dword [esp + 0x48], edi
cmp eax, edi
jge 0x510178
mov dword [esp + 0x4c], edi
mov edx, dword [ecx + 0x10]
mov eax, 2
cmp edx, eax
jne 0x5108c4
mov edx, dword [ecx + 0x14]
mov dword [esp + 0x18], edi
fld dword [0x868570]
cmp edx, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
je 0x5101d1
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x5c], 0xffffffff
lea eax, [eax + eax*2]
shl eax, 2
mov ebx, dword [eax + 0x8eb438]
mov eax, dword [eax + 0x8f6ff0]
mov dword [esp + 0x40], eax
jmp 0x5101fe
or eax, 0xffffffff
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x74]
lea eax, [eax + eax*2]
shl eax, 2
mov edx, dword [eax + 0x8f6ff4]
mov ebx, dword [eax + 0x8eb43c]
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x64]
add ecx, 0x18
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
mov edx, dword [edx]
mov ecx, dword [esp + ecx*4 + 0x44]
test ecx, ecx
lea edx, [edx*8 + 0x8b7ab0]
mov dword [esp + 0x34], edx
je 0x510602
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x5102bb
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
add ebx, 4
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x68]
add ebx, 4
add ebx, 4
lea ebp, [ecx + edx*4]
mov edx, dword [ebx - 4]
mov ecx, dword [ebx]
add ebx, 4
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x28]
cmp edx, 3
mov dword [esp + 0x10], ebp
fstp st(0)
mov dword [esp + 0x20], edx
jne 0x510299
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x18], 1
mov esi, dword [edx]
shl esi, cl
mov ecx, dword [esp + 0x70]
add edx, 4
mov dword [esp + 0x6c], edx
mov ecx, dword [ecx + 0x64]
fld dword [ecx + esi*4]
jmp 0x5102bb
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x18], 3
mov edi, dword [esi]
shl edi, cl
mov ecx, dword [esp + 0x70]
add esi, 4
mov dword [esp + 0x6c], esi
mov edx, dword [ecx + edx*4 + 0x58]
fld dword [edx + edi*4]
mov ecx, dword [esp + 0x34]
mov edi, dword [ecx + 4]
movsx ecx, word [edi]
test ecx, ecx
mov dword [esp + 0x64], ecx
jge 0x51031c
mov esi, dword [eax + 0x486c]
mov ecx, dword [eax + 0x4868]
add edi, 2
mov dl, byte [esi]
shl dl, cl
inc ecx
mov ebp, ecx
and ecx, 7
sar ebp, 3
add ebp, esi
mov dword [eax + 0x4868], ecx
test dl, dl
mov dword [eax + 0x486c], ebp
jns 0x510304
mov ecx, dword [esp + 0x64]
neg ecx
lea edi, [edi + ecx*2]
movsx ecx, word [edi]
mov esi, dword [esp + 0x78]
mov dword [esp + 0x64], ecx
dec esi
test ecx, ecx
mov dword [esp + 0x78], esi
jl 0x5102cd
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x64]
mov ecx, edx
and edx, 0xf
sar ecx, 4
cmp ecx, 0xf
mov dword [esp + 0x30], ecx
mov dword [esp + 0x64], edx
jne 0x510407
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [esp + ecx*4 + 0x50], edx
mov edx, dword [esp + 0x34]
or ecx, 0xffffffff
mov edi, dword [edx]
mov edx, dword [esp + 0x78]
sub ecx, edi
add edx, ecx
test edi, edi
mov dword [esp + 0x78], edx
jne 0x510364
mov dword [esp + 0x30], edi
jmp 0x5103b5
mov esi, dword [eax + 0x486c]
mov ebp, dword [eax + 0x4868]
xor edx, edx
xor ecx, ecx
mov dl, byte [esi + 1]
mov cl, byte [esi + 2]
mov dh, byte [esi]
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
mov ecx, 0x18
sar ebp, 3
and edx, 0xffffff
sub ecx, edi
add ebp, esi
shr edx, cl
mov dword [eax + 0x486c], ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x30], edx
mov esi, dword [eax + 0x486c]
mov ecx, dword [eax + 0x4868]
fld st(0)
mov dl, byte [esi]
shl dl, cl
inc ecx
mov edi, ecx
and ecx, 7
sar edi, 3
add edi, esi
mov dword [eax + 0x4868], ecx
test dl, dl
mov dword [eax + 0x486c], edi
jns 0x5103f7
mov edx, dword [esp + 0x30]
fmul dword [edx*4 + 0x8eefe4]
fchs
fstp dword [ebp]
jmp 0x51047a
mov ecx, dword [esp + 0x30]
fmul dword [ecx*4 + 0x8eefe4]
fstp dword [ebp]
jmp 0x51047a
test ecx, ecx
je 0x510473
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov esi, dword [eax + 0x486c]
mov dword [esp + ecx*4 + 0x50], edx
mov ecx, dword [eax + 0x4868]
mov dl, byte [esi]
shl dl, cl
inc ecx
mov edi, ecx
and ecx, 7
sar edi, 3
add edi, esi
mov dword [eax + 0x4868], ecx
test dl, dl
mov dword [eax + 0x486c], edi
fld st(0)
jns 0x51045f
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x78]
dec ecx
fmul dword [edx*4 + 0x8eefa8]
mov dword [esp + 0x78], ecx
fchs
fstp dword [ebp]
jmp 0x51047a
mov ecx, dword [esp + 0x30]
fmul dword [ecx*4 + 0x8eefa8]
dec dword [esp + 0x78]
fstp dword [ebp]
jmp 0x51047a
mov dword [ebp], 0
mov edx, dword [esp + 0x18]
lea ecx, [edx*4]
add ebp, ecx
mov ecx, dword [esp + 0x64]
cmp ecx, 0xf
mov dword [esp + 0x10], ebp
jne 0x510566
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x78]
mov dword [esp + edx*4 + 0x50], ecx
mov ecx, dword [esp + 0x34]
or edx, 0xffffffff
mov edi, dword [ecx]
sub edx, edi
add esi, edx
test edi, edi
mov dword [esp + 0x78], esi
jne 0x5104c3
mov dword [esp + 0x64], edi
jmp 0x510514
mov esi, dword [eax + 0x486c]
mov ebp, dword [eax + 0x4868]
xor edx, edx
xor ecx, ecx
mov dl, byte [esi + 1]
mov cl, byte [esi + 2]
mov dh, byte [esi]
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
mov ecx, 0x18
sar ebp, 3
and edx, 0xffffff
sub ecx, edi
add ebp, esi
shr edx, cl
mov dword [eax + 0x486c], ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x64], edx
mov esi, dword [eax + 0x486c]
mov ecx, dword [eax + 0x4868]
fld st(0)
mov dl, byte [esi]
shl dl, cl
inc ecx
mov edi, ecx
and ecx, 7
sar edi, 3
add edi, esi
mov dword [eax + 0x4868], ecx
test dl, dl
mov dword [eax + 0x486c], edi
jns 0x510556
mov edx, dword [esp + 0x64]
fmul dword [edx*4 + 0x8eefe4]
fchs
fstp dword [ebp]
jmp 0x5105d9
mov ecx, dword [esp + 0x64]
fmul dword [ecx*4 + 0x8eefe4]
fstp dword [ebp]
jmp 0x5105d9
test ecx, ecx
je 0x5105d2
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov esi, dword [eax + 0x486c]
mov dword [esp + ecx*4 + 0x50], edx
mov ecx, dword [eax + 0x4868]
mov dl, byte [esi]
shl dl, cl
inc ecx
mov edi, ecx
and ecx, 7
sar edi, 3
add edi, esi
mov dword [eax + 0x4868], ecx
test dl, dl
mov dword [eax + 0x486c], edi
fld st(0)
jns 0x5105be
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x78]
dec ecx
fmul dword [edx*4 + 0x8eefa8]
mov dword [esp + 0x78], ecx
fchs
fstp dword [ebp]
jmp 0x5105d9
mov ecx, dword [esp + 0x64]
fmul dword [ecx*4 + 0x8eefa8]
dec dword [esp + 0x78]
fstp dword [ebp]
jmp 0x5105d9
mov dword [ebp], 0
mov edx, dword [esp + 0x18]
lea ecx, [edx*4]
mov edx, dword [esp + 0x14]
add ebp, ecx
mov ecx, dword [esp + 0x3c]
dec edx
dec ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], edx
mov dword [esp + 0x3c], ecx
jne 0x510236
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x38]
inc ecx
add esi, 4
cmp ecx, 2
mov dword [esp + 0x24], ecx
mov dword [esp + 0x38], esi
jl 0x510211
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x5107ee
mov ecx, dword [esp + 0x78]
test ecx, ecx
jle 0x5107ee
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + 0x54]
mov ecx, dword [edx*8 + 0x8b7bb4]
mov si, word [ecx]
test si, si
mov dword [esp + 0x3c], esi
jge 0x5106bb
add ecx, 2
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x78]
dec ecx
mov dword [esp + 0x78], ecx
js 0x5106b0
mov esi, dword [eax + 0x486c]
mov ecx, dword [eax + 0x4868]
mov dl, byte [esi]
shl dl, cl
inc ecx
mov edi, ecx
and ecx, 7
sar edi, 3
add edi, esi
mov dword [eax + 0x4868], ecx
test dl, dl
mov dword [eax + 0x486c], edi
jns 0x51069e
movsx ecx, word [esp + 0x3c]
mov edx, dword [esp + 0x64]
neg ecx
lea ecx, [edx + ecx*2]
jmp 0x5106a2
mov ecx, dword [esp + 0x64]
mov si, word [ecx]
test si, si
mov dword [esp + 0x3c], esi
jl 0x510651
jmp 0x5106bb
mov ecx, dword [esp + 0x78]
inc ecx
xor esi, esi
mov dword [esp + 0x78], ecx
movsx ecx, si
xor edx, edx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x24], edx
test dl, 1
jne 0x510757
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x510753
mov ecx, dword [ebx]
mov esi, dword [esp + 0x68]
add ebx, 4
mov dword [esp + 0x14], ecx
fstp st(0)
mov ecx, dword [ebx]
add ebx, 4
add ebx, 4
lea ebp, [esi + ecx*4]
mov esi, dword [ebx - 4]
mov ecx, dword [ebx]
add ebx, 4
cmp esi, 3
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], ecx
jne 0x51072f
mov esi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x18], 1
mov edi, dword [esi]
shl edi, cl
mov ecx, dword [esp + 0x70]
add esi, 4
mov dword [esp + 0x6c], esi
mov ecx, dword [ecx + 0x64]
fld dword [ecx + edi*4]
jmp 0x510753
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x18], 3
mov edi, dword [ecx]
mov ecx, dword [esp + 0x28]
shl edi, cl
mov ecx, dword [esp + 0x70]
mov ecx, dword [ecx + esi*4 + 0x58]
fld dword [ecx + edi*4]
add dword [esp + 0x6c], 4
dec dword [esp + 0x14]
mov esi, 8
mov ecx, edx
sar esi, cl
mov ecx, dword [esp + 0x64]
test ecx, esi
je 0x5107bc
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [esp + ecx*4 + 0x50], edx
mov ecx, dword [esp + 0x78]
dec ecx
mov dword [esp + 0x78], ecx
js 0x5107db
mov esi, dword [eax + 0x486c]
mov ecx, dword [eax + 0x4868]
mov dl, byte [esi]
shl dl, cl
inc ecx
mov edi, ecx
and ecx, 7
sar edi, 3
add edi, esi
mov dword [eax + 0x4868], ecx
test dl, dl
mov edx, dword [esp + 0x24]
mov dword [eax + 0x486c], edi
jns 0x5107b7
fld st(0)
fchs
fstp dword [ebp]
jmp 0x5107c3
fst dword [ebp]
jmp 0x5107c3
mov dword [ebp], 0
mov ecx, dword [esp + 0x18]
inc edx
cmp edx, 4
mov dword [esp + 0x24], edx
lea ebp, [ebp + ecx*4]
jl 0x5106c8
jmp 0x5107df
inc dword [esp + 0x78]
mov ecx, dword [esp + 0x2c]
dec ecx
mov dword [esp + 0x2c], ecx
jne 0x51062b
mov edx, dword [esp + 0x40]
cmp ebx, edx
fstp st(0)
jae 0x51084b
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
test esi, esi
jne 0x51082d
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 edi, 1
mov ecx, dword [ebx]
add ebx, 4
cmp ecx, 3
je 0x51082a
mov edi, 3
add ebx, 4
lea ecx, [edi*4]
mov dword [ebp], 0
add ebp, ecx
dec esi
mov dword [ebp], 0
add ebp, ecx
cmp ebx, edx
jb 0x510800
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x70]
lea edx, [ecx + 1]
mov dword [ebx + 0x30], edx
mov edx, dword [esp + 0x54]
cmp ecx, edx
lea esi, [edx + 1]
mov dword [ebx + 0x34], esi
mov esi, dword [esp + 0x58]
lea edi, [esi + 1]
mov dword [ebx + 0x38], edi
mov edi, dword [esp + 0x5c]
lea ebp, [edi + 1]
mov dword [ebx + 0x3c], ebp
jg 0x51087d
mov ecx, edx
cmp ecx, esi
jg 0x510883
mov ecx, esi
inc ecx
test ecx, ecx
je 0x5108a7
mov edx, dword [esp + 0x74]
lea esi, [edx*8]
sub esi, edx
lea ecx, [ecx + esi*2]
mov ecx, dword [ecx*4 + 0x915e20]
mov dword [ebx + 0x40], ecx
jmp 0x510e3a
mov ecx, dword [esp + 0x74]
lea edx, [ecx + ecx*2]
shl edx, 3
sub edx, ecx
add edx, edi
mov ecx, dword [edx*4 + 0x915ae4]
mov dword [ebx + 0x40], ecx
jmp 0x510e3a
mov eax, dword [ecx + 0x4c]
mov dword [esp + 0x30], 0x8b7c58
cmp eax, edi
jne 0x5108db
mov dword [esp + 0x30], 0x8f7890
mov eax, dword [esp + 0x74]
add ecx, 0x18
fld dword [0x868570]
lea eax, [eax + eax*2]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], edi
mov edx, dword [eax*4 + 0x8eb440]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
mov edx, dword [edx]
mov ecx, dword [esp + ecx*4 + 0x44]
test ecx, ecx
lea edx, [edx*8 + 0x8b7ab0]
mov dword [esp + 0x38], edx
je 0x510c3b
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x510988
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x6c]
mov esi, dword [esp + 0x30]
mov ecx, dword [edx]
mov ebx, dword [edi]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi]
add ebx, ecx
mov ecx, dword [esp + 0x28]
shl ebx, cl
mov ecx, dword [esp + 0x70]
add edx, 4
fstp st(0)
mov ecx, dword [ecx + 0x64]
add esi, 4
add edi, 4
add edx, 4
fld dword [ecx + ebx*4]
mov ecx, dword [edx - 4]
mov dword [esp + 0x30], esi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x38]
mov edi, dword [edx + 4]
movsx ebx, word [edi]
test ebx, ebx
mov dword [esp + 0x64], ebx
jge 0x5109e5
mov esi, dword [eax + 0x486c]
mov ecx, dword [eax + 0x4868]
add edi, 2
mov dl, byte [esi]
shl dl, cl
inc ecx
mov ebx, ecx
and ecx, 7
sar ebx, 3
add ebx, esi
mov dword [eax + 0x4868], ecx
test dl, dl
mov dword [eax + 0x486c], ebx
jns 0x5109d1
mov ecx, dword [esp + 0x64]
neg ecx
lea edi, [edi + ecx*2]
movsx ebx, word [edi]
mov edx, dword [esp + 0x78]
mov dword [esp + 0x64], ebx
dec edx
test ebx, ebx
mov dword [esp + 0x78], edx
jl 0x51099a
mov edi, ebx
and ebx, 0xf
sar edi, 4
cmp edi, 0xf
mov dword [esp + 0x64], ebx
jne 0x510aa9
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x14], ecx
or ecx, 0xffffffff
mov edi, dword [edx]
mov edx, dword [esp + 0x78]
sub ecx, edi
add edx, ecx
test edi, edi
mov dword [esp + 0x78], edx
je 0x510a6a
mov esi, dword [eax + 0x486c]
mov ebp, dword [eax + 0x4868]
xor edx, edx
xor ecx, ecx
mov dl, byte [esi + 1]
mov cl, byte [esi + 2]
mov dh, byte [esi]
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
mov ecx, 0x18
sar ebx, 3
and edx, 0xffffff
sub ecx, edi
add ebx, esi
shr edx, cl
mov dword [eax + 0x486c], ebx
mov edi, edx
mov esi, dword [eax + 0x486c]
mov ecx, dword [eax + 0x4868]
fld st(0)
mov dl, byte [esi]
shl dl, cl
inc ecx
mov ebx, ecx
and ecx, 7
sar ebx, 3
add ebx, esi
mov dword [eax + 0x4868], ecx
mov dword [eax + 0x486c], ebx
mov ebx, dword [esp + 0x64]
fmul dword [edi*4 + 0x8eefe4]
test dl, dl
jns 0x510aa4
fchs
fstp dword [ebp]
jmp 0x510b07
test edi, edi
je 0x510b00
mov edx, dword [esp + 0x24]
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
and ecx, 7
sar ebx, 3
add ebx, esi
mov dword [eax + 0x4868], ecx
fld st(0)
mov dword [eax + 0x486c], ebx
fmul dword [edi*4 + 0x8eefa8]
test dl, dl
jns 0x510aeb
fchs
fstp dword [ebp]
mov ecx, dword [esp + 0x78]
mov ebx, dword [esp + 0x64]
add ebp, 4
dec ecx
mov dword [esp + 0x78], ecx
jmp 0x510b0a
mov dword [ebp], 0
add ebp, 4
cmp ebx, 0xf
mov dword [esp + 0x10], ebp
jne 0x510bc2
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x14], ecx
or ecx, 0xffffffff
mov edi, dword [edx]
mov edx, dword [esp + 0x78]
sub ecx, edi
add edx, ecx
test edi, edi
mov dword [esp + 0x78], edx
je 0x510b87
mov esi, dword [eax + 0x486c]
mov ebp, dword [eax + 0x4868]
xor edx, edx
xor ecx, ecx
mov dl, byte [esi + 1]
mov cl, byte [esi + 2]
mov dh, byte [esi]
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
mov ecx, 0x18
sar ebx, 3
and edx, 0xffffff
sub ecx, edi
add ebx, esi
shr edx, cl
mov dword [eax + 0x486c], ebx
mov edi, edx
mov esi, dword [eax + 0x486c]
mov ecx, dword [eax + 0x4868]
fld st(0)
mov dl, byte [esi]
shl dl, cl
inc ecx
mov ebx, ecx
and ecx, 7
sar ebx, 3
add ebx, esi
mov dword [eax + 0x4868], ecx
mov dword [eax + 0x486c], ebx
fmul dword [edi*4 + 0x8eefe4]
test dl, dl
jns 0x510bbd
fchs
fstp dword [ebp]
jmp 0x510c1c
test ebx, ebx
je 0x510c15
mov edx, dword [esp + 0x24]
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
and ecx, 7
sar edi, 3
add edi, esi
mov dword [eax + 0x4868], ecx
fld st(0)
mov dword [eax + 0x486c], edi
fmul dword [ebx*4 + 0x8eefa8]
test dl, dl
jns 0x510c04
fchs
fstp dword [ebp]
mov ecx, dword [esp + 0x78]
add ebp, 4
dec ecx
mov dword [esp + 0x78], ecx
jmp 0x510c1f
mov dword [ebp], 0
add ebp, 4
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
dec edx
dec ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], edx
mov dword [esp + 0x40], ecx
jne 0x510937
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x34]
inc ecx
add esi, 4
cmp ecx, 3
mov dword [esp + 0x20], ecx
mov dword [esp + 0x34], esi
jl 0x510912
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x510dea
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x78]
test ecx, ecx
jle 0x510dea
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + 0x54]
mov ecx, dword [edx*8 + 0x8b7bb4]
mov di, word [ecx]
test di, di
jge 0x510cf2
add ecx, 2
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x78]
dec ecx
mov dword [esp + 0x78], ecx
js 0x510ce7
mov esi, dword [eax + 0x486c]
mov ecx, dword [eax + 0x4868]
mov dl, byte [esi]
shl dl, cl
inc ecx
mov ebx, ecx
and ecx, 7
sar ebx, 3
add ebx, esi
mov dword [eax + 0x4868], ecx
test dl, dl
mov dword [eax + 0x486c], ebx
jns 0x510cd5
mov edx, dword [esp + 0x64]
movsx ecx, di
neg ecx
lea ecx, [edx + ecx*2]
jmp 0x510cd9
mov ecx, dword [esp + 0x64]
mov di, word [ecx]
mov ebx, dword [esp + 0x1c]
test di, di
jl 0x510c8a
jmp 0x510cf2
mov ecx, dword [esp + 0x78]
inc ecx
xor edi, edi
mov dword [esp + 0x78], ecx
movsx edx, di
xor ecx, ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x20], ecx
test cl, 1
jne 0x510d5a
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x510d4d
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov edi, dword [esp + 0x6c]
mov esi, dword [esp + 0x30]
add ebx, 4
mov dword [esp + 0x18], ecx
mov ecx, dword [esi]
mov dword [esp + 0x24], edx
mov edx, dword [edi]
add ebx, 4
add edx, ecx
mov ecx, dword [esp + 0x28]
shl edx, cl
mov ecx, dword [esp + 0x70]
add esi, 4
fstp st(0)
mov ecx, dword [ecx + 0x64]
add edi, 4
mov dword [esp + 0x30], esi
mov dword [esp + 0x6c], edi
fld dword [ecx + edx*4]
mov ecx, dword [esp + 0x18]
dec ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x20]
mov edx, 8
sar edx, cl
mov ecx, dword [esp + 0x64]
test ecx, edx
je 0x510db5
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x24]
dec ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x78], ecx
js 0x510dd3
mov esi, dword [eax + 0x486c]
mov ecx, dword [eax + 0x4868]
mov dl, byte [esi]
shl dl, cl
inc ecx
mov edi, ecx
and ecx, 7
sar edi, 3
add edi, esi
mov dword [eax + 0x4868], ecx
test dl, dl
mov dword [eax + 0x486c], edi
jns 0x510db0
fld st(0)
fchs
fstp dword [ebp]
jmp 0x510dbc
fst dword [ebp]
jmp 0x510dbc
mov dword [ebp], 0
mov ecx, dword [esp + 0x20]
add ebp, 4
inc ecx
cmp ecx, 4
mov dword [esp + 0x20], ecx
jl 0x510cff
jmp 0x510dd7
inc dword [esp + 0x78]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x1c], ebx
dec ecx
mov dword [esp + 0x2c], ecx
jne 0x510c68
mov ecx, dword [esp + 0x68]
sub ecx, ebp
add ecx, 0x900
sar ecx, 3
fstp st(0)
je 0x510e14
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
dec ecx
jne 0x510dfd
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x70]
lea esi, [ecx + 1]
mov ecx, dword [esp + 0x74]
mov dword [edx + 0x3c], esi
lea edi, [ecx + ecx*2]
shl edi, 3
sub edi, ecx
add edi, esi
mov ecx, dword [edi*4 + 0x915ae0]
mov dword [edx + 0x40], ecx
mov edi, dword [esp + 0x78]
cmp edi, 0x10
jle 0x510e7b
lea edx, [edi - 0x11]
mov esi, dword [eax + 0x486c]
shr edx, 4
mov ecx, dword [eax + 0x4868]
inc edx
mov ebx, edx
neg ebx
shl ebx, 4
add edi, ebx
add ecx, 0x10
mov ebx, ecx
and ecx, 7
sar ebx, 3
add esi, ebx
dec edx
jne 0x510e5f
mov dword [eax + 0x486c], esi
mov dword [eax + 0x4868], ecx
test edi, edi
jle 0x510eae
mov edx, dword [eax + 0x4868]
mov esi, dword [eax + 0x486c]
lea ecx, [edx + edi]
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, 0x50
ret
jge 0x510ea4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x50
ret