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

Disassembly:
sub esp, 0x54
mov ecx, dword [esp + 0x64]
push ebx
mov ebx, dword [esp + 0x70]
push ebp
mov eax, dword [ecx + 0x50]
push esi
inc eax
mov esi, dword [esp + 0x68]
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 4]
sub eax, ebx
mov ebx, dword [ecx + 0x44]
mov ebp, dword [ecx + 0x48]
push edi
mov dword [esp + 0x7c], eax
mov eax, dword [ecx + 8]
mov edi, 0x120
lea edx, [esi + 0x900]
sub edi, eax
mov dword [esp + 0x18], edx
sar edi, 1
cmp eax, ebx
mov dword [esp + 0x30], edi
jg 0x510f14
mov dword [esp + 0x48], eax
xor ebx, ebx
xor edi, edi
xor eax, eax
jmp 0x510f2c
cmp eax, ebp
mov dword [esp + 0x48], ebx
jg 0x510f24
sub eax, ebx
mov edi, eax
xor eax, eax
jmp 0x510f2a
mov edi, ebp
sub edi, ebx
sub eax, ebp
xor ebx, ebx
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x4c], edi
cmp ebp, ebx
mov dword [esp + 0x50], eax
jge 0x510f40
mov dword [esp + 0x48], ebx
cmp edi, ebx
jge 0x510f48
mov dword [esp + 0x4c], ebx
cmp eax, ebx
jge 0x510f50
mov dword [esp + 0x50], ebx
mov edi, dword [ecx + 0x10]
mov eax, 2
cmp edi, eax
jne 0x511752
mov edi, dword [ecx + 0x14]
mov dword [esp + 0x10], ebx
fld dword [0x868570]
cmp edi, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], ebx
je 0x510fa9
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x60], 0xffffffff
lea eax, [eax + eax*2]
shl eax, 2
mov edi, dword [eax + 0x8eb438]
mov eax, dword [eax + 0x8f6ff0]
jmp 0x510fd2
or eax, 0xffffffff
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x78]
lea eax, [eax + eax*2]
shl eax, 2
mov edi, dword [eax + 0x8eb43c]
mov eax, dword [eax + 0x8f6ff4]
add ecx, 0x18
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x38], ecx
mov ebp, dword [esp + 0x38]
mov ecx, dword [esp + ebx*4 + 0x48]
test ecx, ecx
mov ebp, dword [ebp]
lea ebp, [ebp*8 + 0x8b7ab0]
mov dword [esp + 0x34], ebp
je 0x51143d
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x511098
mov ecx, dword [edi]
mov esi, dword [esp + 0x6c]
add edi, 4
mov dword [esp + 0x14], ecx
fstp st(0)
mov ecx, dword [edi]
mov ebx, dword [edi + 4]
add edi, 4
mov dword [esp + 0x20], ebx
add edi, 4
lea edx, [esi + ecx*4 + 0x900]
lea esi, [esi + ecx*4]
mov dword [esp + 0x18], edx
mov ecx, dword [edi]
add edi, 4
cmp ebx, 3
mov dword [esp + 0x24], ecx
jne 0x511074
mov ebx, dword [esp + 0x70]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x10], 1
mov ebp, dword [ebx]
shl ebp, cl
mov ecx, dword [esp + 0x74]
add ebx, 4
mov dword [esp + 0x70], ebx
mov ecx, dword [ecx + 0x64]
fld dword [ecx + ebp*4]
jmp 0x511098
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x10], 3
mov ebp, dword [ecx]
mov ecx, dword [esp + 0x2c]
shl ebp, cl
mov ecx, dword [esp + 0x74]
mov ecx, dword [ecx + ebx*4 + 0x58]
fld dword [ecx + ebp*4]
add dword [esp + 0x70], 4
mov ecx, dword [esp + 0x34]
mov ecx, dword [ecx + 4]
movsx ebx, word [ecx]
test ebx, ebx
mov dword [esp + 0x1c], ebx
jge 0x511102
mov ebx, dword [eax + 0x486c]
add ecx, 2
mov dword [esp + 0x68], ecx
mov ecx, dword [eax + 0x4868]
mov dl, byte [ebx]
shl dl, cl
inc ecx
mov ebp, ecx
and ecx, 7
sar ebp, 3
add ebp, ebx
mov dword [eax + 0x4868], ecx
test dl, dl
mov dword [eax + 0x486c], ebp
jns 0x5110eb
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x68]
neg ecx
lea ecx, [edx + ecx*2]
jmp 0x5110ef
mov ecx, dword [esp + 0x68]
dec dword [esp + 0x7c]
movsx ebx, word [ecx]
test ebx, ebx
mov dword [esp + 0x1c], ebx
jl 0x5110aa
mov edx, dword [esp + 0x18]
mov ecx, ebx
and ebx, 0xf
sar ecx, 4
cmp ecx, 0xf
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebx
jne 0x51120c
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x7c]
mov dword [esp + ebx*4 + 0x54], ecx
mov ecx, dword [esp + 0x34]
or ebx, 0xffffffff
mov ecx, dword [ecx]
sub ebx, ecx
mov dword [esp + 0x68], ecx
add ebp, ebx
test ecx, ecx
mov dword [esp + 0x7c], ebp
jne 0x51114a
mov dword [esp + 0x18], ecx
jmp 0x5111a5
mov ebp, dword [eax + 0x486c]
xor ebx, ebx
xor ecx, ecx
mov bl, byte [ebp + 1]
mov cl, byte [ebp + 2]
mov bh, byte [ebp]
shl ebx, 8
or ebx, ecx
mov ecx, dword [eax + 0x4868]
shl ebx, cl
and ebx, 0xffffff
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0x68]
add ecx, ebx
mov ebx, ecx
and ecx, 7
sar ebx, 3
add ebx, ebp
mov dword [eax + 0x4868], ecx
mov dword [eax + 0x486c], ebx
mov ebx, dword [esp + 0x68]
mov ecx, 0x18
sub ecx, ebx
mov ebx, dword [esp + 0x44]
shr ebx, cl
mov dword [esp + 0x18], ebx
mov ebp, dword [eax + 0x486c]
mov ecx, dword [eax + 0x4868]
fld st(0)
mov bl, byte [ebp]
shl bl, cl
inc ecx
mov byte [esp + 0x68], bl
mov ebx, ecx
and ecx, 7
sar ebx, 3
mov dword [eax + 0x4868], ecx
mov cl, byte [esp + 0x68]
add ebx, ebp
test cl, cl
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x486c], ebx
mov ebx, dword [esp + 0x1c]
fmul dword [ecx*4 + 0x8eefe4]
jns 0x5111fd
fld st(0)
fadd dword [esi]
fstp dword [edx]
fld dword [esi]
fsub st(1)
fstp dword [esi]
fstp st(0)
jmp 0x51129b
fld dword [esi]
fsub st(1)
fstp dword [edx]
fadd dword [esi]
fstp dword [esi]
jmp 0x51129b
test ecx, ecx
je 0x511297
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov ebp, dword [eax + 0x486c]
mov dword [esp + ebx*4 + 0x54], ecx
mov ecx, dword [eax + 0x4868]
mov bl, byte [ebp]
shl bl, cl
inc ecx
fld st(0)
mov byte [esp + 0x68], bl
mov ebx, ecx
and ecx, 7
sar ebx, 3
mov dword [eax + 0x4868], ecx
mov cl, byte [esp + 0x68]
add ebx, ebp
test cl, cl
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x486c], ebx
fmul dword [ecx*4 + 0x8eefa8]
jns 0x51127e
fld st(0)
fadd dword [esi]
mov ecx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x1c]
dec ecx
mov dword [esp + 0x7c], ecx
fstp dword [edx]
fld dword [esi]
fsub st(1)
fstp dword [esi]
fstp st(0)
jmp 0x51129b
fld dword [esi]
fsub st(1)
mov ecx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x1c]
dec ecx
mov dword [esp + 0x7c], ecx
fstp dword [edx]
fadd dword [esi]
fstp dword [esi]
jmp 0x51129b
mov ecx, dword [esi]
mov dword [edx], ecx
mov ecx, dword [esp + 0x10]
shl ecx, 2
add edx, ecx
add esi, ecx
cmp ebx, 0xf
jne 0x511399
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x7c]
mov dword [esp + ebx*4 + 0x54], ecx
mov ecx, dword [esp + 0x34]
or ebx, 0xffffffff
mov ecx, dword [ecx]
sub ebx, ecx
mov dword [esp + 0x68], ecx
add ebp, ebx
test ecx, ecx
mov dword [esp + 0x7c], ebp
jne 0x5112de
mov dword [esp + 0x1c], ecx
jmp 0x511339
mov ebp, dword [eax + 0x486c]
xor ebx, ebx
xor ecx, ecx
mov bl, byte [ebp + 1]
mov cl, byte [ebp + 2]
mov bh, byte [ebp]
shl ebx, 8
or ebx, ecx
mov ecx, dword [eax + 0x4868]
shl ebx, cl
and ebx, 0xffffff
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0x68]
add ecx, ebx
mov ebx, ecx
and ecx, 7
sar ebx, 3
add ebx, ebp
mov dword [eax + 0x4868], ecx
mov dword [eax + 0x486c], ebx
mov ebx, dword [esp + 0x68]
mov ecx, 0x18
sub ecx, ebx
mov ebx, dword [esp + 0x44]
shr ebx, cl
mov dword [esp + 0x1c], ebx
mov ebp, dword [eax + 0x486c]
mov ecx, dword [eax + 0x4868]
fld st(0)
mov bl, byte [ebp]
shl bl, cl
inc ecx
mov byte [esp + 0x68], bl
mov ebx, ecx
and ecx, 7
sar ebx, 3
mov dword [eax + 0x4868], ecx
mov cl, byte [esp + 0x68]
add ebx, ebp
test cl, cl
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x486c], ebx
fmul dword [ecx*4 + 0x8eefe4]
jns 0x51138d
fld st(0)
fadd dword [esi]
fstp dword [edx]
fld dword [esi]
fsub st(1)
fstp dword [esi]
fstp st(0)
jmp 0x511412
fld dword [esi]
fsub st(1)
fstp dword [edx]
fadd dword [esi]
fstp dword [esi]
jmp 0x511412
test ebx, ebx
je 0x51140e
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov ebp, dword [eax + 0x486c]
mov dword [esp + ebx*4 + 0x54], ecx
mov ecx, dword [eax + 0x4868]
mov bl, byte [ebp]
shl bl, cl
inc ecx
fld st(0)
mov byte [esp + 0x68], bl
mov ebx, ecx
and ecx, 7
sar ebx, 3
mov dword [eax + 0x4868], ecx
mov cl, byte [esp + 0x68]
add ebx, ebp
test cl, cl
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x486c], ebx
fmul dword [ecx*4 + 0x8eefa8]
jns 0x5113fe
fld st(0)
fadd dword [esi]
dec dword [esp + 0x7c]
fstp dword [edx]
fld dword [esi]
fsub st(1)
fstp dword [esi]
fstp st(0)
jmp 0x511412
fld dword [esi]
fsub st(1)
dec dword [esp + 0x7c]
fstp dword [edx]
fadd dword [esi]
fstp dword [esi]
jmp 0x511412
mov ecx, dword [esi]
mov dword [edx], ecx
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
shl ecx, 2
add edx, ecx
add esi, ecx
mov ecx, dword [esp + 0x40]
dec ebx
dec ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x40], ecx
jne 0x511007
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x38]
inc ebx
add ebp, 4
cmp ebx, 2
mov dword [esp + 0x28], ebx
mov dword [esp + 0x38], ebp
jl 0x510fe5
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x511674
mov ecx, dword [esp + 0x7c]
test ecx, ecx
jle 0x511674
mov ecx, dword [esp + 0x74]
mov ecx, dword [ecx + 0x54]
mov ecx, dword [ecx*8 + 0x8b7bb4]
mov bp, word [ecx]
test bp, bp
mov dword [esp + 0x38], ebp
jge 0x5114fb
add ecx, 2
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x7c]
dec ecx
mov dword [esp + 0x7c], ecx
js 0x5114f0
mov ebp, dword [eax + 0x486c]
mov ecx, dword [eax + 0x4868]
mov bl, byte [ebp]
shl bl, cl
inc ecx
mov byte [esp + 0x68], bl
mov ebx, ecx
and ecx, 7
sar ebx, 3
mov dword [eax + 0x4868], ecx
mov cl, byte [esp + 0x68]
add ebx, ebp
test cl, cl
mov dword [eax + 0x486c], ebx
jns 0x5114de
movsx ecx, word [esp + 0x38]
mov ebx, dword [esp + 0x40]
neg ecx
lea ecx, [ebx + ecx*2]
jmp 0x5114e2
mov ecx, dword [esp + 0x40]
mov bp, word [ecx]
test bp, bp
mov dword [esp + 0x38], ebp
jl 0x511488
jmp 0x5114fb
mov ecx, dword [esp + 0x7c]
inc ecx
xor ebp, ebp
mov dword [esp + 0x7c], ecx
movsx ebx, bp
xor ecx, ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x28], ecx
test cl, 1
jne 0x5115c8
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x5115b5
mov edx, dword [edi]
mov ecx, dword [edi + 4]
mov esi, dword [esp + 0x6c]
add edi, 4
add edi, 4
mov dword [esp + 0x14], edx
lea edx, [esi + ecx*4 + 0x900]
lea esi, [esi + ecx*4]
mov ebp, dword [edi]
mov ecx, dword [edi + 4]
add edi, 4
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x70]
add edi, 4
fstp st(0)
mov ebx, dword [ecx]
mov ecx, dword [esp + 0x2c]
shl ebx, cl
mov ecx, dword [esp + 0x74]
cmp ebp, 3
mov dword [esp + 0x20], ebp
jne 0x51158c
mov ecx, dword [ecx + 0x64]
mov dword [esp + 0x10], 1
fld dword [ecx + ebx*4]
mov ecx, dword [esp + 0x70]
add ecx, 4
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x14]
dec ecx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x28]
jmp 0x5115cc
mov ecx, dword [ecx + ebp*4 + 0x58]
mov dword [esp + 0x10], 3
fld dword [ecx + ebx*4]
mov ecx, dword [esp + 0x70]
add ecx, 4
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x14]
dec ecx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x28]
jmp 0x5115cc
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
dec ecx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x28]
jmp 0x5115cc
mov ebp, dword [esp + 0x20]
mov ebx, 8
sar ebx, cl
mov ecx, dword [esp + 0x44]
test ecx, ebx
je 0x51163e
mov ecx, dword [esp + 0x24]
mov dword [esp + ebp*4 + 0x54], ecx
mov ecx, dword [esp + 0x7c]
dec ecx
mov dword [esp + 0x7c], ecx
js 0x511661
mov ebp, dword [eax + 0x486c]
mov ecx, dword [eax + 0x4868]
mov bl, byte [ebp]
shl bl, cl
inc ecx
mov byte [esp + 0x68], bl
mov ebx, ecx
and ecx, 7
sar ebx, 3
mov dword [eax + 0x4868], ecx
mov cl, byte [esp + 0x68]
add ebx, ebp
test cl, cl
mov dword [eax + 0x486c], ebx
jns 0x511630
fld st(0)
fadd dword [esi]
fstp dword [edx]
fld dword [esi]
fsub st(1)
fstp dword [esi]
jmp 0x511642
fld dword [esi]
fsub st(1)
fstp dword [edx]
fld st(0)
fadd dword [esi]
fstp dword [esi]
jmp 0x511642
mov ecx, dword [esi]
mov dword [edx], ecx
mov ecx, dword [esp + 0x10]
shl ecx, 2
add edx, ecx
add esi, ecx
mov ecx, dword [esp + 0x28]
inc ecx
cmp ecx, 4
mov dword [esp + 0x28], ecx
jl 0x511508
jmp 0x511665
inc dword [esp + 0x7c]
mov ecx, dword [esp + 0x30]
dec ecx
mov dword [esp + 0x30], ecx
jne 0x511462
cmp edi, dword [esp + 0x3c]
fstp st(0)
jae 0x5116d9
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x6c]
test ebx, ebx
jne 0x5116bb
mov ebx, dword [edi]
mov ecx, dword [edi + 4]
add edi, 4
mov dword [esp + 0x10], 1
add edi, 4
lea edx, [ebp + ecx*4 + 0x900]
lea esi, [ebp + ecx*4]
mov ecx, dword [edi]
add edi, 4
cmp ecx, 3
je 0x5116b8
mov dword [esp + 0x10], 3
add edi, 4
mov ecx, dword [esi]
dec ebx
mov dword [edx], ecx
mov ecx, dword [esp + 0x10]
shl ecx, 2
add esi, ecx
add edx, ecx
mov ebp, dword [esi]
add esi, ecx
mov dword [edx], ebp
add edx, ecx
cmp edi, dword [esp + 0x3c]
jb 0x511680
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x74]
lea esi, [edx + 1]
mov dword [ecx + 0x30], esi
mov esi, dword [esp + 0x58]
cmp edx, esi
lea edi, [esi + 1]
mov dword [ecx + 0x34], edi
mov edi, dword [esp + 0x5c]
lea ebx, [edi + 1]
mov dword [ecx + 0x38], ebx
mov ebx, dword [esp + 0x60]
lea ebp, [ebx + 1]
mov dword [ecx + 0x3c], ebp
jg 0x51170b
mov edx, esi
cmp edx, edi
jg 0x511711
mov edx, edi
inc edx
test edx, edx
je 0x511735
mov esi, dword [esp + 0x78]
lea edi, [esi*8]
sub edi, esi
lea edx, [edx + edi*2]
mov edx, dword [edx*4 + 0x915e20]
mov dword [ecx + 0x40], edx
jmp 0x511d90
mov edx, dword [esp + 0x78]
lea esi, [edx + edx*2]
shl esi, 3
sub esi, edx
add esi, ebx
mov edx, dword [esi*4 + 0x915ae4]
mov dword [ecx + 0x40], edx
jmp 0x511d90
mov eax, dword [ecx + 0x4c]
mov dword [esp + 0x14], 0x8b7c58
cmp eax, ebx
jne 0x511769
mov dword [esp + 0x14], 0x8f7890
mov eax, dword [esp + 0x78]
add ecx, 0x18
fld dword [0x868570]
lea eax, [eax + eax*2]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov eax, dword [eax*4 + 0x8eb440]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x34], ecx
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
mov edi, dword [edi]
mov ecx, dword [esp + ecx*4 + 0x48]
test ecx, ecx
lea edi, [edi*8 + 0x8b7ab0]
mov dword [esp + 0x38], edi
je 0x511b7d
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x20]
test ecx, ecx
jne 0x511815
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x70]
fstp st(0)
mov edi, dword [ecx]
add ecx, 4
mov ebp, dword [ebx]
mov dword [esp + 0x20], edi
mov edi, dword [ecx]
add ecx, 4
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
mov ecx, dword [edi]
add edi, 4
add ebp, ecx
mov ecx, dword [esp + 0x2c]
shl ebp, cl
mov ecx, dword [esp + 0x74]
add ebx, 4
mov dword [esp + 0x14], edi
mov dword [esp + 0x70], ebx
mov ecx, dword [ecx + 0x64]
fld dword [ecx + ebp*4]
mov ecx, dword [esp + 0x38]
mov ebp, dword [ecx + 4]
movsx ecx, word [ebp]
test ecx, ecx
mov dword [esp + 0x68], ecx
jge 0x511879
mov edi, dword [eax + 0x486c]
mov ecx, dword [eax + 0x4868]
add ebp, 2
mov dl, byte [edi]
shl dl, cl
inc ecx
mov ebx, ecx
and ecx, 7
sar ebx, 3
add ebx, edi
mov dword [eax + 0x4868], ecx
test dl, dl
mov dword [eax + 0x486c], ebx
jns 0x511860
mov ecx, dword [esp + 0x68]
neg ecx
lea ebp, [ebp + ecx*2]
movsx ecx, word [ebp]
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x68], ecx
dec edi
test ecx, ecx
mov dword [esp + 0x7c], edi
jl 0x511828
mov edx, dword [esp + 0x18]
mov edi, ecx
and ecx, 0xf
sar edi, 4
cmp edi, 0xf
mov dword [esp + 0x40], edi
mov dword [esp + 0x68], ecx
jne 0x51196a
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x38]
mov ebp, dword [ecx]
or ecx, 0xffffffff
sub ecx, ebp
add edi, ecx
test ebp, ebp
mov dword [esp + 0x7c], edi
jne 0x5118b9
mov dword [esp + 0x3c], ebp
jmp 0x51190b
mov edi, dword [eax + 0x486c]
xor ebx, ebx
xor ecx, ecx
mov bl, byte [edi + 1]
mov cl, byte [edi + 2]
mov bh, byte [edi]
shl ebx, 8
or ebx, ecx
mov ecx, dword [eax + 0x4868]
shl ebx, cl
add ecx, ebp
and ebx, 0xffffff
mov dword [esp + 0x40], ebx
mov ebx, ecx
and ecx, 7
sar ebx, 3
mov dword [eax + 0x4868], ecx
mov ecx, 0x18
add ebx, edi
mov edi, dword [esp + 0x40]
sub ecx, ebp
mov dword [eax + 0x486c], ebx
shr edi, cl
mov dword [esp + 0x3c], edi
mov edi, dword [eax + 0x486c]
mov ebp, dword [eax + 0x4868]
mov ecx, ebp
mov bl, byte [edi]
shl bl, cl
lea ecx, [ebp + 1]
mov ebp, ecx
and ecx, 7
sar ebp, 3
mov dword [eax + 0x4868], ecx
mov ecx, dword [esp + 0x3c]
add ebp, edi
fld st(0)
mov dword [eax + 0x486c], ebp
fmul dword [ecx*4 + 0x8eefe4]
mov ecx, dword [esp + 0x68]
test bl, bl
jns 0x51195e
fld st(0)
fadd dword [esi]
fstp dword [edx]
fld dword [esi]
fsub st(1)
fstp dword [esi]
fstp st(0)
jmp 0x5119e5
fld dword [esi]
fsub st(1)
fstp dword [edx]
fadd dword [esi]
fstp dword [esi]
jmp 0x5119e5
test edi, edi
je 0x5119e1
mov ecx, dword [esp + 0x24]
mov edi, dword [eax + 0x486c]
mov ebp, dword [eax + 0x4868]
mov dword [esp + 0x28], ecx
mov bl, byte [edi]
mov ecx, ebp
shl bl, cl
lea ecx, [ebp + 1]
mov ebp, ecx
and ecx, 7
sar ebp, 3
mov dword [eax + 0x4868], ecx
mov ecx, dword [esp + 0x40]
add ebp, edi
fld st(0)
mov dword [eax + 0x486c], ebp
fmul dword [ecx*4 + 0x8eefa8]
test bl, bl
jns 0x5119c2
fld st(0)
fadd dword [esi]
fstp dword [edx]
fld dword [esi]
fsub st(1)
fstp dword [esi]
fstp st(0)
jmp 0x5119cc
fld dword [esi]
fsub st(1)
fstp dword [edx]
fadd dword [esi]
fstp dword [esi]
mov ecx, dword [esp + 0x7c]
add edx, 4
add esi, 4
dec ecx
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x68]
jmp 0x5119eb
mov edi, dword [esi]
mov dword [edx], edi
add edx, 4
add esi, 4
cmp ecx, 0xf
jne 0x511acb
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x38]
mov ebp, dword [ecx]
or ecx, 0xffffffff
sub ecx, ebp
add edi, ecx
test ebp, ebp
mov dword [esp + 0x7c], edi
jne 0x511a1b
mov dword [esp + 0x68], ebp
jmp 0x511a6d
mov edi, dword [eax + 0x486c]
xor ebx, ebx
xor ecx, ecx
mov bl, byte [edi + 1]
mov cl, byte [edi + 2]
mov bh, byte [edi]
shl ebx, 8
or ebx, ecx
mov ecx, dword [eax + 0x4868]
shl ebx, cl
add ecx, ebp
and ebx, 0xffffff
mov dword [esp + 0x68], ebx
mov ebx, ecx
and ecx, 7
sar ebx, 3
mov dword [eax + 0x4868], ecx
mov ecx, 0x18
add ebx, edi
mov edi, dword [esp + 0x68]
sub ecx, ebp
mov dword [eax + 0x486c], ebx
shr edi, cl
mov dword [esp + 0x68], edi
mov edi, dword [eax + 0x486c]
mov ebp, dword [eax + 0x4868]
mov ecx, ebp
mov bl, byte [edi]
shl bl, cl
lea ecx, [ebp + 1]
mov ebp, ecx
and ecx, 7
sar ebp, 3
mov dword [eax + 0x4868], ecx
mov ecx, dword [esp + 0x68]
add ebp, edi
fld st(0)
mov dword [eax + 0x486c], ebp
fmul dword [ecx*4 + 0x8eefe4]
test bl, bl
jns 0x511abc
fld st(0)
fadd dword [esi]
fstp dword [edx]
fld dword [esi]
fsub st(1)
fstp dword [esi]
fstp st(0)
jmp 0x511b5b
fld dword [esi]
fsub st(1)
fstp dword [edx]
fadd dword [esi]
fstp dword [esi]
jmp 0x511b5b
test ecx, ecx
je 0x511b57
mov ecx, dword [esp + 0x24]
mov edi, dword [eax + 0x486c]
mov ebp, dword [eax + 0x4868]
mov dword [esp + 0x28], ecx
mov bl, byte [edi]
mov ecx, ebp
shl bl, cl
lea ecx, [ebp + 1]
mov ebp, ecx
and ecx, 7
sar ebp, 3
mov dword [eax + 0x4868], ecx
mov ecx, dword [esp + 0x68]
add ebp, edi
fld st(0)
mov dword [eax + 0x486c], ebp
fmul dword [ecx*4 + 0x8eefa8]
test bl, bl
jns 0x511b39
fld st(0)
fadd dword [esi]
mov ecx, dword [esp + 0x7c]
add edx, 4
add esi, 4
dec ecx
mov dword [esp + 0x7c], ecx
fstp dword [edx - 4]
fld dword [esi - 4]
fsub st(1)
fstp dword [esi - 4]
fstp st(0)
jmp 0x511b61
fld dword [esi]
fsub st(1)
mov ecx, dword [esp + 0x7c]
add edx, 4
add esi, 4
dec ecx
mov dword [esp + 0x7c], ecx
fstp dword [edx - 4]
fadd dword [esi - 4]
fstp dword [esi - 4]
jmp 0x511b61
mov ecx, dword [esi]
mov dword [edx], ecx
add edx, 4
add esi, 4
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x44]
dec edi
dec ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x44], ecx
jne 0x5117c5
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x34]
inc ecx
add ebx, 4
cmp ecx, 3
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x34], ebx
jl 0x5117a0
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x511d40
mov ecx, dword [esp + 0x7c]
test ecx, ecx
jle 0x511d40
mov ecx, dword [esp + 0x74]
mov ecx, dword [ecx + 0x54]
mov ecx, dword [ecx*8 + 0x8b7bb4]
mov di, word [ecx]
test di, di
mov dword [esp + 0x44], edi
jge 0x511c3a
add ecx, 2
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x7c]
dec ecx
mov dword [esp + 0x7c], ecx
js 0x511c2f
mov edi, dword [eax + 0x486c]
mov ebp, dword [eax + 0x4868]
mov ecx, ebp
mov bl, byte [edi]
shl bl, cl
lea ecx, [ebp + 1]
mov ebp, ecx
and ecx, 7
sar ebp, 3
add ebp, edi
mov dword [eax + 0x4868], ecx
test bl, bl
mov dword [eax + 0x486c], ebp
jns 0x511c1d
movsx ecx, word [esp + 0x44]
mov edi, dword [esp + 0x68]
neg ecx
lea ecx, [edi + ecx*2]
jmp 0x511c21
mov ecx, dword [esp + 0x68]
mov di, word [ecx]
test di, di
mov dword [esp + 0x44], edi
jl 0x511bcc
jmp 0x511c3a
mov ecx, dword [esp + 0x7c]
inc ecx
xor edi, edi
mov dword [esp + 0x7c], ecx
movsx ecx, di
xor ebx, ebx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x1c], ebx
test bl, 1
jne 0x511c9e
mov ecx, dword [esp + 0x20]
test ecx, ecx
jne 0x511c9a
mov ecx, dword [esp + 0x10]
fstp st(0)
mov edi, dword [ecx]
add ecx, 4
mov dword [esp + 0x20], edi
mov edi, dword [ecx]
add ecx, 4
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x14]
mov ebp, dword [ecx]
mov ecx, dword [edi]
add edi, 4
add ebp, ecx
mov ecx, dword [esp + 0x2c]
shl ebp, cl
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x14], edi
mov ecx, dword [ecx + 0x64]
fld dword [ecx + ebp*4]
add dword [esp + 0x70], 4
dec dword [esp + 0x20]
mov edi, 8
mov ecx, ebx
sar edi, cl
mov ecx, dword [esp + 0x68]
test ecx, edi
je 0x511d13
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x7c]
dec ecx
test ecx, ecx
mov dword [esp + 0x7c], ecx
jle 0x511d2d
mov edi, dword [eax + 0x486c]
mov ebp, dword [eax + 0x4868]
mov ecx, ebp
mov bl, byte [edi]
shl bl, cl
lea ecx, [ebp + 1]
mov ebp, ecx
and ecx, 7
sar ebp, 3
add ebp, edi
mov dword [eax + 0x4868], ecx
test bl, bl
mov ebx, dword [esp + 0x1c]
mov dword [eax + 0x486c], ebp
jns 0x511d05
fld st(0)
fadd dword [esi]
fstp dword [edx]
fld dword [esi]
fsub st(1)
fstp dword [esi]
jmp 0x511d17
fld dword [esi]
fsub st(1)
fstp dword [edx]
fld st(0)
fadd dword [esi]
fstp dword [esi]
jmp 0x511d17
mov ecx, dword [esi]
mov dword [edx], ecx
add edx, 4
add esi, 4
inc ebx
cmp ebx, 4
mov dword [esp + 0x1c], ebx
jl 0x511c47
jmp 0x511d31
inc dword [esp + 0x7c]
mov ecx, dword [esp + 0x30]
dec ecx
mov dword [esp + 0x30], ecx
jne 0x511ba6
mov ecx, dword [esp + 0x6c]
sub ecx, edx
add ecx, 0x1200
sar ecx, 3
fstp st(0)
je 0x511d6a
mov edi, dword [esi]
add esi, 4
mov dword [edx], edi
add edx, 4
mov edi, dword [esi]
add esi, 4
mov dword [edx], edi
add edx, 4
dec ecx
jne 0x511d53
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x74]
lea ecx, [edx + 1]
mov edx, dword [esp + 0x78]
mov dword [esi + 0x3c], ecx
lea edi, [edx + edx*2]
shl edi, 3
sub edi, edx
add edi, ecx
mov ecx, dword [edi*4 + 0x915ae0]
mov dword [esi + 0x40], ecx
mov edi, dword [esp + 0x7c]
cmp edi, 0x10
jle 0x511dd1
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 0x511db5
mov dword [eax + 0x486c], esi
mov dword [eax + 0x4868], ecx
test edi, edi
jle 0x511e04
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, 0x54
ret
jge 0x511dfa
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x54
ret