Function at 0x4beb70
Capabilities:
Encrypt data using speck

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e090
mov eax, dword fs:[0]
push eax
sub esp, 0x678
mov eax, dword [0x59e080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x568], ecx
mov eax, dword [ebp - 0x568]
push eax
lea ecx, [ebp - 0x440]
call fcn.004aa930
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x678]
push ecx
lea ecx, [ebp - 0x440]
call fcn.004da6a0
mov edx, dword [eax]
mov dword [ebp - 0x544], edx
mov eax, dword [ebp - 0x544]
mov dword [ebp - 0x550], eax
lea ecx, [ebp - 0x684]
push ecx
lea ecx, [ebp - 0x440]
call fcn.004dd160
mov edx, dword [eax]
mov dword [ebp - 0x548], edx
mov eax, dword [ebp - 0x548]
mov dword [ebp - 0x554], eax
lea ecx, [ebp - 0x67c]
push ecx
lea ecx, [ebp - 0x440]
call fcn.004da6a0
mov edx, dword [eax]
mov dword [ebp - 0x54c], edx
mov eax, dword [ebp - 0x54c]
mov dword [ebp - 0x558], eax
mov ecx, dword [ebp - 0x550]
push ecx
mov edx, dword [ebp - 0x554]
push edx
mov eax, dword [ebp - 0x558]
push eax
mov edx, fcn.00563f43
lea ecx, [ebp - 0x680]
call fcn.004aa8e0
nop
push 0x208
push 0
lea ecx, [ebp - 0x220]
push ecx
call fcn.0055e280
add esp, 0xc
push 0x208
push 0
lea edx, [ebp - 0x428]
push edx
call fcn.0055e280
add esp, 0xc
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 0
xorps xmm0, xmm0
movsd qword [ebp - 0x504], xmm0
xorps xmm0, xmm0
movsd qword [ebp - 0x4f8], xmm0
xorps xmm0, xmm0
movsd qword [ebp - 0x4f8], xmm0
jmp 0x4becd0
movsd xmm0, qword [ebp - 0x4f8]
addsd xmm0, qword [0x580ac0]
movsd qword [ebp - 0x4f8], xmm0
movsd xmm0, qword [0x582cc0]
comisd xmm0, xmmword [ebp - 0x4f8]
jbe 0x4bed81
movsd xmm0, qword [0x582be0]
mulsd xmm0, qword [ebp - 0x4f8]
mulsd xmm0, qword [ebp - 0x4f8]
movsd xmm1, qword [ebp - 0x4f8]
mulsd xmm1, qword [ebp - 0x4f8]
subsd xmm0, xmm1
movsd xmm1, qword [0x582a98]
mulsd xmm1, qword [ebp - 0x4f8]
mulsd xmm1, qword [ebp - 0x4f8]
addsd xmm1, qword [0x582b40]
divsd xmm0, xmm1
addsd xmm0, qword [ebp - 0x504]
movsd qword [ebp - 0x504], xmm0
movsd xmm0, qword [ebp - 0x504]
comisd xmm0, xmmword [0x582bd8]
jbe 0x4bed7c
movsd xmm0, qword [0x582a50]
mulsd xmm0, qword [ebp - 0x4f8]
movsd xmm1, qword [ebp - 0x504]
subsd xmm1, xmm0
movsd qword [ebp - 0x504], xmm1
jmp 0x4becb8
xorps xmm0, xmm0
comisd xmm0, xmmword [ebp - 0x504]
jbe 0x4bedab
pop eax
push 0x72
insd dword es:[edi], dx
and dword [ebx + 0x21], edx
pushal
jbe 0x4bee0f
insb byte es:[edi], dx
jns 0x4bedc8
dec esi
cmp eax, 0x77454a56
aas
jns 0x4bede7
xchg cl, ch
xchg ebp, eax
adc al, 0
add bh, al
test dword [eax - 0x5f000005], edi
in eax, dx
dec ebx
add bh, al
test dword [ebx + edi*8 - 0x12710001], edi
dec ebx
add byte [ebx - 0x4477b], cl
dec dword [ecx - 0x4ef7b]
dec dword [ebx - 0x44373]
dec dword [ecx - 0x55f73]
inc esi
test dword [edi - 5], esp
invalid
mov dword [ebp - 0x448], 0x4beda0
mov dword [ebp - 0x444], 0x4bed8e
mov eax, dword [ebp - 0x448]
mov dword [ebp - 0x4f0], eax
mov ecx, dword [ebp - 0x444]
mov dword [ebp - 0x560], ecx
mov byte [ebp - 0x499], 0x16
mov dword [ebp - 0x468], 0
jmp 0x4bedf9
sti
invalid
add bl, ch
jnp 0x478684
mov edx, dword [ebp - 0x468]
add edx, 1
mov dword [ebp - 0x468], edx
inc dword [ebx - 0x6a76fe3e]
cwde
sti
invalid
cmp dword [ebp - 0x468], 0x100
jae 0x4bee1a
mov eax, dword [ebp - 0x468]
mov cl, byte [ebp - 0x468]
mov byte [ebp + eax - 0x674], cl
jmp 0x4bedea
invalid
mov dword [ebp - 0x4e4], 0
mov byte [ebp - 0x44c], 0
mov dword [ebp - 0x468], 0xff
jmp 0x4bee46
mov edx, dword [ebp - 0x468]
sub edx, 1
mov dword [ebp - 0x468], edx
cmp dword [ebp - 0x468], 0
jbe 0x4bf2c4
mov dword [ebp - 0x520], 0
mov dword [ebp - 0x518], 1
mov eax, dword [ebp - 0x518]
cmp eax, dword [ebp - 0x468]
jae 0x4bee87
mov ecx, dword [ebp - 0x518]
lea edx, [ecx + ecx + 1]
mov dword [ebp - 0x518], edx
jmp 0x4bee67
mov eax, dword [ebp - 0x4e4]
mov dword [ebp - 0x534], eax
cmp dword [ebp - 0x534], 3
ja case.default.0x4beea6
mov ecx, dword [ebp - 0x534]
jmp dword [ecx*4 + 0x4c0600]
movzx edx, byte [ebp - 0x44c]
movzx ebx, byte [ebp + edx - 0x674]
movsd xmm0, qword [ebp - 0x504]
call fcn.0051c6e0
and eax, 0xff
add ebx, eax
mov byte [ebp - 0x44c], bl
jmp 0x4bef8f
movzx eax, byte [ebp - 0x44c]
movzx ebx, byte [ebp + eax - 0x674]
movsd xmm0, qword [ebp - 0x504]
call fcn.0051c6e0
shr eax, 8
and eax, 0xff
add ebx, eax
mov byte [ebp - 0x44c], bl
jmp 0x4bef8f
movzx ecx, byte [ebp - 0x44c]
movzx ebx, byte [ebp + ecx - 0x674]
movsd xmm0, qword [ebp - 0x504]
call fcn.0051c6e0
shr eax, 0x10
and eax, 0xff
add ebx, eax
mov byte [ebp - 0x44c], bl
jmp 0x4bef8f
movzx edx, byte [ebp - 0x44c]
movzx ebx, byte [ebp + edx - 0x674]
movsd xmm0, qword [ebp - 0x504]
call fcn.0051c6e0
shr eax, 0x18
and eax, 0xff
add ebx, eax
mov byte [ebp - 0x44c], bl
jmp 0x4bef8f
movzx eax, byte [ebp - 0x44c]
movzx ecx, byte [ebp + eax - 0x674]
mov edx, dword [ebp - 0x560]
add edx, dword [ebp - 0x4e4]
movzx eax, byte [edx - 4]
add ecx, eax
mov byte [ebp - 0x44c], cl
mov ecx, dword [ebp - 0x4e4]
add ecx, 1
mov dword [ebp - 0x4e4], ecx
movzx edx, byte [ebp - 0x499]
cmp dword [ebp - 0x4e4], edx
jb 0x4bf1db
movss xmm0, dword [0x583214]
movss dword [ebp - 0x458], xmm0
movss xmm0, dword [0x58319c]
movss dword [ebp - 0x460], xmm0
movss xmm0, dword [0x5830f8]
movss dword [ebp - 0x464], xmm0
movss xmm0, dword [ebp - 0x460]
addss xmm0, dword [ebp - 0x464]
movss dword [ebp - 0x460], xmm0
movss xmm0, dword [ebp - 0x458]
subss xmm0, dword [ebp - 0x464]
movss dword [ebp - 0x458], xmm0
movss xmm0, dword [ebp - 0x458]
mulss xmm0, dword [ebp - 0x464]
movss dword [ebp - 0x458], xmm0
movss xmm0, dword [ebp - 0x464]
comiss xmm0, dword [ebp - 0x458]
jbe 0x4bf173
movss xmm0, dword [ebp - 0x458]
divss xmm0, dword [ebp - 0x464]
movss dword [ebp - 0x458], xmm0
movss xmm0, dword [ebp - 0x460]
divss xmm0, dword [ebp - 0x458]
movss dword [ebp - 0x460], xmm0
movss xmm0, dword [ebp - 0x460]
subss xmm0, dword [ebp - 0x458]
movss dword [ebp - 0x460], xmm0
movss xmm0, dword [ebp - 0x464]
subss xmm0, dword [ebp - 0x460]
movss dword [ebp - 0x464], xmm0
movss xmm0, dword [ebp - 0x464]
addss xmm0, dword [ebp - 0x460]
movss dword [ebp - 0x464], xmm0
movss xmm0, dword [ebp - 0x460]
subss xmm0, dword [ebp - 0x458]
movss dword [ebp - 0x460], xmm0
movss xmm0, dword [ebp - 0x464]
comiss xmm0, dword [ebp - 0x460]
jbe 0x4bf129
movss xmm0, dword [ebp - 0x458]
divss xmm0, dword [ebp - 0x464]
movss dword [ebp - 0x458], xmm0
movss xmm0, dword [ebp - 0x458]
subss xmm0, dword [ebp - 0x464]
movss dword [ebp - 0x458], xmm0
movss xmm0, dword [ebp - 0x460]
subss xmm0, dword [ebp - 0x458]
movss dword [ebp - 0x460], xmm0
jmp 0x4bf171
movss xmm0, dword [ebp - 0x464]
mulss xmm0, dword [ebp - 0x460]
movss dword [ebp - 0x464], xmm0
movss xmm0, dword [ebp - 0x460]
divss xmm0, dword [ebp - 0x458]
movss dword [ebp - 0x460], xmm0
movss xmm0, dword [ebp - 0x460]
addss xmm0, dword [ebp - 0x458]
movss dword [ebp - 0x460], xmm0
jmp 0x4bf1c5
movss xmm0, dword [ebp - 0x458]
addss xmm0, dword [ebp - 0x464]
movss dword [ebp - 0x458], xmm0
movss xmm0, dword [ebp - 0x458]
subss xmm0, dword [ebp - 0x464]
movss dword [ebp - 0x458], xmm0
movss xmm0, dword [ebp - 0x464]
mulss xmm0, dword [ebp - 0x460]
movss dword [ebp - 0x464], xmm0
mov dword [ebp - 0x4e4], 0
movzx eax, byte [ebp - 0x499]
movzx ecx, byte [ebp - 0x44c]
add ecx, eax
mov byte [ebp - 0x44c], cl
movzx edx, byte [ebp - 0x44c]
and edx, dword [ebp - 0x518]
mov dword [ebp - 0x4b4], edx
mov eax, dword [ebp - 0x520]
add eax, 1
mov dword [ebp - 0x520], eax
cmp dword [ebp - 0x520], 0xb
jbe 0x4bf21a
mov eax, dword [ebp - 0x4b4]
xor edx, edx
div dword [ebp - 0x468]
mov dword [ebp - 0x4b4], edx
mov ecx, dword [ebp - 0x4b4]
cmp ecx, dword [ebp - 0x468]
ja 0x4bee87
mov edx, dword [ebp - 0x468]
cmp edx, dword [ebp - 0x4b4]
je 0x4bf2bf
mov eax, dword [ebp - 0x4b4]
movzx ecx, byte [ebp + eax - 0x674]
mov edx, dword [ebp - 0x468]
movzx eax, byte [ebp + edx - 0x674]
xor eax, ecx
mov ecx, dword [ebp - 0x468]
mov byte [ebp + ecx - 0x674], al
mov edx, dword [ebp - 0x468]
movzx eax, byte [ebp + edx - 0x674]
mov ecx, dword [ebp - 0x4b4]
movzx edx, byte [ebp + ecx - 0x674]
xor edx, eax
mov eax, dword [ebp - 0x4b4]
mov byte [ebp + eax - 0x674], dl
mov ecx, dword [ebp - 0x4b4]
movzx edx, byte [ebp + ecx - 0x674]
mov eax, dword [ebp - 0x468]
movzx ecx, byte [ebp + eax - 0x674]
xor ecx, edx
mov edx, dword [ebp - 0x468]
mov byte [ebp + edx - 0x674], cl
jmp 0x4bee37
mov eax, 1
shl eax, 0
mov cl, byte [ebp + eax - 0x674]
mov byte [ebp - 0x449], cl
mov edx, 1
imul eax, edx, 3
mov cl, byte [ebp + eax - 0x674]
mov byte [ebp - 0x44a], cl
mov edx, 1
imul eax, edx, 5
mov cl, byte [ebp + eax - 0x674]
mov byte [ebp - 0x44f], cl
mov edx, 1
imul eax, edx, 7
mov cl, byte [ebp + eax - 0x674]
mov byte [ebp - 0x44b], cl
movzx edx, byte [ebp - 0x44c]
mov al, byte [ebp + edx - 0x674]
mov byte [ebp - 0x44d], al
mov dword [ebp - 0x538], 6
cmp dword [ebp - 0x538], 2
jle 0x4c01ee
mov ecx, dword [ebp - 0x538]
and ecx, 1
jne 0x4c01ee
mov dword [ebp - 0x474], 0
mov dword [ebp - 0x4e0], 0
mov edx, dword [ebp - 0x4e0]
add edx, 1
mov dword [ebp - 0x4e0], edx
mov dword [ebp - 0x4d4], 0
mov eax, dword [ebp - 0x474]
shl eax, 1
mov dword [ebp - 0x4d4], eax
mov dword [ebp - 0x4c0], 0
mov ecx, dword [ebp - 0x4f0]
add ecx, dword [ebp - 0x4d4]
movzx edx, byte [ecx]
add edx, dword [ebp - 0x4c0]
mov dword [ebp - 0x4c0], edx
mov dword [ebp - 0x4c4], 0
mov eax, dword [ebp - 0x4c4]
add eax, 0x37
mov dword [ebp - 0x4c4], eax
mov dword [ebp - 0x4ec], 0
mov ecx, dword [ebp - 0x474]
lea edx, [ecx + ecx + 1]
mov dword [ebp - 0x4ec], edx
mov dword [ebp - 0x4bc], 0
mov eax, dword [ebp - 0x4f0]
add eax, dword [ebp - 0x4ec]
movzx ecx, byte [eax]
add ecx, dword [ebp - 0x4bc]
mov dword [ebp - 0x4bc], ecx
mov dword [ebp - 0x4cc], 0
mov edx, dword [ebp - 0x4cc]
add edx, 0x77
mov dword [ebp - 0x4cc], edx
mov dword [ebp - 0x4d0], 0
mov eax, dword [ebp - 0x4c0]
sub eax, dword [ebp - 0x4c4]
add eax, dword [ebp - 0x4d0]
mov dword [ebp - 0x4d0], eax
mov dword [ebp - 0x4c8], 0
mov ecx, dword [ebp - 0x4bc]
sub ecx, dword [ebp - 0x4cc]
add ecx, dword [ebp - 0x4c8]
mov dword [ebp - 0x4c8], ecx
mov dword [ebp - 0x4dc], 0
mov edx, dword [ebp - 0x4d0]
shl edx, 4
mov dword [ebp - 0x4dc], edx
mov dword [ebp - 0x4e8], 0
mov eax, dword [ebp - 0x4c8]
mov dword [ebp - 0x4e8], eax
mov dword [ebp - 0x4d8], 0
mov ecx, dword [ebp - 0x4dc]
or ecx, dword [ebp - 0x4e8]
mov dword [ebp - 0x4d8], ecx
mov byte [ebp - 0x450], 0
mov dl, byte [ebp - 0x4d8]
mov byte [ebp - 0x450], dl
mov byte [ebp - 0x44e], 0
movzx eax, byte [ebp - 0x44d]
mov cl, byte [ebp + eax - 0x674]
mov byte [ebp - 0x44e], cl
movzx edx, byte [ebp - 0x449]
movzx eax, byte [ebp + edx - 0x674]
mov dword [ebp - 0x564], eax
mov cl, byte [ebp - 0x449]
add cl, 1
mov byte [ebp - 0x449], cl
movzx edx, byte [ebp - 0x44a]
add edx, dword [ebp - 0x564]
mov byte [ebp - 0x44a], dl
movzx eax, byte [ebp - 0x44a]
movzx ecx, byte [ebp - 0x44d]
mov dl, byte [ebp + eax - 0x674]
mov byte [ebp + ecx - 0x674], dl
movzx eax, byte [ebp - 0x44b]
movzx ecx, byte [ebp - 0x44a]
mov dl, byte [ebp + eax - 0x674]
mov byte [ebp + ecx - 0x674], dl
movzx eax, byte [ebp - 0x449]
movzx ecx, byte [ebp - 0x44b]
mov dl, byte [ebp + eax - 0x674]
mov byte [ebp + ecx - 0x674], dl
movzx eax, byte [ebp - 0x449]
mov cl, byte [ebp - 0x44e]
mov byte [ebp + eax - 0x674], cl
movzx edx, byte [ebp - 0x44e]
movzx eax, byte [ebp + edx - 0x674]
movzx ecx, byte [ebp - 0x44f]
add ecx, eax
mov byte [ebp - 0x44f], cl
movzx edx, byte [ebp - 0x450]
movzx eax, byte [ebp - 0x44a]
movzx ecx, byte [ebp + eax - 0x674]
movzx eax, byte [ebp - 0x449]
movzx eax, byte [ebp + eax - 0x674]
add ecx, eax
and ecx, 0xff
movzx ecx, byte [ebp + ecx - 0x674]
xor edx, ecx
movzx eax, byte [ebp - 0x44b]
movzx ecx, byte [ebp + eax - 0x674]
movzx eax, byte [ebp - 0x44d]
movzx eax, byte [ebp + eax - 0x674]
add ecx, eax
movzx eax, byte [ebp - 0x44f]
movzx eax, byte [ebp + eax - 0x674]
add ecx, eax
and ecx, 0xff
movzx ecx, byte [ebp + ecx - 0x674]
movzx eax, byte [ebp + ecx - 0x674]
xor edx, eax
mov byte [ebp - 0x44b], dl
mov cl, byte [ebp - 0x450]
mov byte [ebp - 0x44d], cl
mov dl, byte [ebp - 0x44b]
mov byte [ebp - 0x451], dl
cmp dword [ebp - 0x474], 0
jle 0x4bf657
movsx ax, byte [ebp - 0x451]
mov ecx, dword [ebp - 0x474]
mov word [ebp + ecx*2 - 0x1a], ax
mov edx, dword [ebp - 0x474]
add edx, 1
mov dword [ebp - 0x474], edx
mov eax, dword [ebp - 0x4e0]
add eax, 1
mov dword [ebp - 0x4e0], eax
mov ecx, dword [ebp - 0x474]
shl ecx, 1
mov dword [ebp - 0x4d4], ecx
mov edx, dword [ebp - 0x4f0]
add edx, dword [ebp - 0x4d4]
movzx eax, byte [edx]
mov dword [ebp - 0x4c0], eax
mov dword [ebp - 0x4c4], 0x37
mov ecx, dword [ebp - 0x474]
lea edx, [ecx + ecx + 1]
mov dword [ebp - 0x4ec], edx
mov eax, dword [ebp - 0x4f0]
add eax, dword [ebp - 0x4ec]
movzx ecx, byte [eax]
mov dword [ebp - 0x4bc], ecx
mov dword [ebp - 0x4cc], 0x77
mov edx, dword [ebp - 0x4c0]
sub edx, dword [ebp - 0x4c4]
mov dword [ebp - 0x4d0], edx
mov eax, dword [ebp - 0x4bc]
sub eax, dword [ebp - 0x4cc]
mov dword [ebp - 0x4c8], eax
mov ecx, dword [ebp - 0x4d0]
shl ecx, 4
mov dword [ebp - 0x4dc], ecx
mov edx, dword [ebp - 0x4c8]
mov dword [ebp - 0x4e8], edx
mov eax, dword [ebp - 0x4dc]
or eax, dword [ebp - 0x4e8]
mov dword [ebp - 0x4d8], eax
mov cl, byte [ebp - 0x4d8]
mov byte [ebp - 0x450], cl
movzx edx, byte [ebp - 0x44d]
mov al, byte [ebp + edx - 0x674]
mov byte [ebp - 0x44e], al
movzx ecx, byte [ebp - 0x449]
movzx edx, byte [ebp + ecx - 0x674]
mov dword [ebp - 0x55c], edx
mov al, byte [ebp - 0x449]
add al, 1
mov byte [ebp - 0x449], al
movzx ecx, byte [ebp - 0x44a]
add ecx, dword [ebp - 0x55c]
mov byte [ebp - 0x44a], cl
movzx edx, byte [ebp - 0x44a]
movzx eax, byte [ebp - 0x44d]
mov cl, byte [ebp + edx - 0x674]
mov byte [ebp + eax - 0x674], cl
movzx edx, byte [ebp - 0x44b]
movzx eax, byte [ebp - 0x44a]
mov cl, byte [ebp + edx - 0x674]
mov byte [ebp + eax - 0x674], cl
movzx edx, byte [ebp - 0x449]
movzx eax, byte [ebp - 0x44b]
mov cl, byte [ebp + edx - 0x674]
mov byte [ebp + eax - 0x674], cl
movzx edx, byte [ebp - 0x449]
mov al, byte [ebp - 0x44e]
mov byte [ebp + edx - 0x674], al
movzx ecx, byte [ebp - 0x44e]
movzx edx, byte [ebp + ecx - 0x674]
movzx eax, byte [ebp - 0x44f]
add eax, edx
mov byte [ebp - 0x44f], al
movzx ecx, byte [ebp - 0x450]
movzx edx, byte [ebp - 0x44a]
movzx eax, byte [ebp + edx - 0x674]
movzx edx, byte [ebp - 0x449]
movzx edx, byte [ebp + edx - 0x674]
add eax, edx
and eax, 0xff
movzx eax, byte [ebp + eax - 0x674]
xor ecx, eax
movzx edx, byte [ebp - 0x44b]
movzx eax, byte [ebp + edx - 0x674]
movzx edx, byte [ebp - 0x44d]
movzx edx, byte [ebp + edx - 0x674]
add eax, edx
movzx edx, byte [ebp - 0x44f]
movzx edx, byte [ebp + edx - 0x674]
add eax, edx
and eax, 0xff
movzx eax, byte [ebp + eax - 0x674]
movzx edx, byte [ebp + eax - 0x674]
xor ecx, edx
mov byte [ebp - 0x44b], cl
mov al, byte [ebp - 0x450]
mov byte [ebp - 0x44d], al
mov cl, byte [ebp - 0x44b]
mov byte [ebp - 0x451], cl
cmp dword [ebp - 0x474], 0
jle 0x4bf8b6
movsx dx, byte [ebp - 0x451]
mov eax, dword [ebp - 0x474]
mov word [ebp + eax*2 - 0x1a], dx
mov ecx, dword [ebp - 0x474]
add ecx, 1
mov dword [ebp - 0x474], ecx
mov edx, dword [ebp - 0x4e0]
add edx, 1
mov dword [ebp - 0x4e0], edx
mov eax, dword [ebp - 0x474]
shl eax, 1
mov dword [ebp - 0x4d4], eax
mov ecx, dword [ebp - 0x4f0]
add ecx, dword [ebp - 0x4d4]
movzx edx, byte [ecx]
mov dword [ebp - 0x4c0], edx
mov dword [ebp - 0x4c4], 0x37
mov eax, dword [ebp - 0x474]
lea ecx, [eax + eax + 1]
mov dword [ebp - 0x4ec], ecx
mov edx, dword [ebp - 0x4f0]
add edx, dword [ebp - 0x4ec]
movzx eax, byte [edx]
mov dword [ebp - 0x4bc], eax
mov dword [ebp - 0x4cc], 0x77
mov ecx, dword [ebp - 0x4c0]
sub ecx, dword [ebp - 0x4c4]
mov dword [ebp - 0x4d0], ecx
mov edx, dword [ebp - 0x4bc]
sub edx, dword [ebp - 0x4cc]
mov dword [ebp - 0x4c8], edx
mov eax, dword [ebp - 0x4d0]
shl eax, 4
mov dword [ebp - 0x4dc], eax
movsd xmm0, qword [0x583080]
movsd qword [ebp - 0x470], xmm0
movsd xmm0, qword [0x583048]
movsd qword [ebp - 0x4ac], xmm0
movsd xmm0, qword [0x582fe8]
movsd qword [ebp - 0x498], xmm0
movsd xmm0, qword [0x582f48]
movsd qword [ebp - 0x47c], xmm0
movsd xmm0, qword [0x582e90]
movsd qword [ebp - 0x4a4], xmm0
movsd xmm0, qword [0x582de8]
movsd qword [ebp - 0x490], xmm0
movsd xmm0, qword [0x582cb0]
movsd qword [ebp - 0x488], xmm0
movsd xmm0, qword [ebp - 0x490]
mulsd xmm0, qword [ebp - 0x488]
movsd qword [ebp - 0x490], xmm0
movsd xmm0, qword [ebp - 0x470]
mulsd xmm0, qword [ebp - 0x488]
movsd qword [ebp - 0x470], xmm0
movsd xmm0, qword [ebp - 0x4a4]
mulsd xmm0, qword [ebp - 0x488]
movsd qword [ebp - 0x4a4], xmm0
movsd xmm0, qword [ebp - 0x498]
mulsd xmm0, qword [ebp - 0x488]
movsd qword [ebp - 0x498], xmm0
movsd xmm0, qword [ebp - 0x47c]
mulsd xmm0, qword [ebp - 0x488]
movsd qword [ebp - 0x47c], xmm0
movsd xmm0, qword [ebp - 0x470]
mulsd xmm0, qword [ebp - 0x488]
movsd qword [ebp - 0x470], xmm0
movsd xmm0, qword [ebp - 0x498]
mulsd xmm0, qword [ebp - 0x488]
movsd qword [ebp - 0x498], xmm0
movsd xmm0, qword [ebp - 0x488]
comisd xmm0, xmmword [ebp - 0x470]
jbe 0x4bff64
movsd xmm0, qword [ebp - 0x470]
divsd xmm0, qword [ebp - 0x4ac]
movsd qword [ebp - 0x470], xmm0
movsd xmm0, qword [ebp - 0x490]
subsd xmm0, qword [ebp - 0x488]
movsd qword [ebp - 0x490], xmm0
movsd xmm0, qword [ebp - 0x47c]
mulsd xmm0, qword [ebp - 0x4a4]
movsd qword [ebp - 0x47c], xmm0
movsd xmm0, qword [ebp - 0x4a4]
mulsd xmm0, qword [ebp - 0x490]
movsd qword [ebp - 0x4a4], xmm0
movsd xmm0, qword [ebp - 0x470]
divsd xmm0, qword [ebp - 0x4ac]
movsd qword [ebp - 0x470], xmm0
movsd xmm0, qword [ebp - 0x4ac]
divsd xmm0, qword [ebp - 0x498]
movsd qword [ebp - 0x4ac], xmm0
movsd xmm0, qword [ebp - 0x490]
subsd xmm0, qword [ebp - 0x488]
movsd qword [ebp - 0x490], xmm0
movsd xmm0, qword [ebp - 0x498]
subsd xmm0, qword [ebp - 0x4a4]
movsd qword [ebp - 0x498], xmm0
movsd xmm0, qword [ebp - 0x4a4]
mulsd xmm0, qword [ebp - 0x488]
movsd qword [ebp - 0x4a4], xmm0
movsd xmm0, qword [ebp - 0x498]
divsd xmm0, qword [ebp - 0x4a4]
movsd qword [ebp - 0x498], xmm0
movsd xmm0, qword [ebp - 0x498]
divsd xmm0, qword [ebp - 0x4a4]
movsd qword [ebp - 0x498], xmm0
movsd xmm0, qword [ebp - 0x470]
addsd xmm0, qword [ebp - 0x498]
movsd qword [ebp - 0x470], xmm0
movsd xmm0, qword [ebp - 0x490]
divsd xmm0, qword [ebp - 0x470]
movsd qword [ebp - 0x490], xmm0
movsd xmm0, qword [ebp - 0x47c]
subsd xmm0, qword [ebp - 0x490]
movsd qword [ebp - 0x47c], xmm0
movsd xmm0, qword [ebp - 0x47c]
comisd xmm0, xmmword [ebp - 0x490]
jbe 0x4bfeb7
movsd xmm0, qword [ebp - 0x490]
subsd xmm0, qword [ebp - 0x488]
movsd qword [ebp - 0x490], xmm0
movsd xmm0, qword [ebp - 0x498]
addsd xmm0, qword [ebp - 0x47c]
movsd qword [ebp - 0x498], xmm0
movsd xmm0, qword [ebp - 0x470]
divsd xmm0, qword [ebp - 0x4ac]
movsd qword [ebp - 0x470], xmm0
movsd xmm0, qword [ebp - 0x488]
addsd xmm0, qword [ebp - 0x470]
movsd qword [ebp - 0x488], xmm0
movsd xmm0, qword [ebp - 0x4ac]
divsd xmm0, qword [ebp - 0x498]
movsd qword [ebp - 0x4ac], xmm0
movsd xmm0, qword [ebp - 0x490]
subsd xmm0, qword [ebp - 0x488]
movsd qword [ebp - 0x490], xmm0
movsd xmm0, qword [ebp - 0x470]
addsd xmm0, qword [ebp - 0x4ac]
movsd qword [ebp - 0x470], xmm0
movsd xmm0, qword [ebp - 0x4a4]
subsd xmm0, qword [ebp - 0x490]
movsd qword [ebp - 0x4a4], xmm0
movsd xmm0, qword [ebp - 0x470]
addsd xmm0, qword [ebp - 0x4ac]
movsd qword [ebp - 0x470], xmm0
movsd xmm0, qword [ebp - 0x4a4]
divsd xmm0, qword [ebp - 0x490]
movsd qword [ebp - 0x4a4], xmm0
movsd xmm0, qword [ebp - 0x470]
addsd xmm0, qword [ebp - 0x4ac]
movsd qword [ebp - 0x470], xmm0
movsd xmm0, qword [ebp - 0x47c]
addsd xmm0, qword [ebp - 0x4a4]
movsd qword [ebp - 0x47c], xmm0
movsd xmm0, qword [ebp - 0x488]
subsd xmm0, qword [ebp - 0x470]
movsd qword [ebp - 0x488], xmm0
movsd xmm0, qword [ebp - 0x488]
divsd xmm0, qword [ebp - 0x470]
movsd qword [ebp - 0x488], xmm0
movsd xmm0, qword [ebp - 0x488]
comisd xmm0, xmmword [ebp - 0x4ac]
jbe 0x4bfe0a
movsd xmm0, qword [ebp - 0x470]
addsd xmm0, qword [ebp - 0x498]
movsd qword [ebp - 0x470], xmm0
movsd xmm0, qword [ebp - 0x4ac]
addsd xmm0, qword [ebp - 0x47c]
movsd qword [ebp - 0x4ac], xmm0
movsd xmm0, qword [ebp - 0x4ac]
mulsd xmm0, qword [ebp - 0x47c]
movsd qword [ebp - 0x4ac], xmm0
movsd xmm0, qword [ebp - 0x498]
mulsd xmm0, qword [ebp - 0x4a4]
movsd qword [ebp - 0x498], xmm0
movsd xmm0, qword [ebp - 0x470]
subsd xmm0, qword [ebp - 0x498]
movsd qword [ebp - 0x470], xmm0
movsd xmm0, qword [ebp - 0x4a4]
subsd xmm0, qword [ebp - 0x488]
movsd qword [ebp - 0x4a4], xmm0
movsd xmm0, qword [ebp - 0x4a4]
addsd xmm0, qword [ebp - 0x488]
movsd qword [ebp - 0x4a4], xmm0
jmp 0x4bfeb2
movsd xmm0, qword [ebp - 0x47c]
divsd xmm0, qword [ebp - 0x490]
movsd qword [ebp - 0x47c], xmm0
movsd xmm0, qword [ebp - 0x488]
subsd xmm0, qword [ebp - 0x4ac]
movsd qword [ebp - 0x488], xmm0
movsd xmm0, qword [ebp - 0x470]
divsd xmm0, qword [ebp - 0x498]
movsd qword [ebp - 0x470], xmm0
movsd xmm0, qword [ebp - 0x47c]
addsd xmm0, qword [ebp - 0x490]
movsd qword [ebp - 0x47c], xmm0
movsd xmm0, qword [ebp - 0x4ac]
subsd xmm0, qword [ebp - 0x47c]
movsd qword [ebp - 0x4ac], xmm0
movsd xmm0, qword [ebp - 0x47c]
subsd xmm0, qword [ebp - 0x490]
movsd qword [ebp - 0x47c], xmm0
movsd xmm0, qword [ebp - 0x47c]
addsd xmm0, qword [ebp - 0x490]
movsd qword [ebp - 0x47c], xmm0
jmp 0x4bff5f
movsd xmm0, qword [ebp - 0x47c]
subsd xmm0, qword [ebp - 0x4a4]
movsd qword [ebp - 0x47c], xmm0
movsd xmm0, qword [ebp - 0x470]
addsd xmm0, qword [ebp - 0x4ac]
movsd qword [ebp - 0x470], xmm0
movsd xmm0, qword [ebp - 0x470]
subsd xmm0, qword [ebp - 0x4ac]
movsd qword [ebp - 0x470], xmm0
movsd xmm0, qword [ebp - 0x498]
addsd xmm0, qword [ebp - 0x47c]
movsd qword [ebp - 0x498], xmm0
movsd xmm0, qword [ebp - 0x498]
divsd xmm0, qword [ebp - 0x47c]
movsd qword [ebp - 0x498], xmm0
movsd xmm0, qword [ebp - 0x498]
mulsd xmm0, qword [ebp - 0x47c]
movsd qword [ebp - 0x498], xmm0
movsd xmm0, qword [ebp - 0x490]
mulsd xmm0, qword [ebp - 0x488]
movsd qword [ebp - 0x490], xmm0
jmp 0x4c0018
movsd xmm0, qword [ebp - 0x490]
subsd xmm0, qword [ebp - 0x470]
movsd qword [ebp - 0x490], xmm0
movsd xmm0, qword [ebp - 0x4ac]
addsd xmm0, qword [ebp - 0x47c]
movsd qword [ebp - 0x4ac], xmm0
movsd xmm0, qword [ebp - 0x4a4]
addsd xmm0, qword [ebp - 0x488]
movsd qword [ebp - 0x4a4], xmm0
movsd xmm0, qword [ebp - 0x488]
subsd xmm0, qword [ebp - 0x4ac]
movsd qword [ebp - 0x488], xmm0
movsd xmm0, qword [ebp - 0x47c]
mulsd xmm0, qword [ebp - 0x490]
movsd qword [ebp - 0x47c], xmm0
movsd xmm0, qword [ebp - 0x47c]
addsd xmm0, qword [ebp - 0x490]
movsd qword [ebp - 0x47c], xmm0
movsd xmm0, qword [ebp - 0x47c]
mulsd xmm0, qword [ebp - 0x490]
movsd qword [ebp - 0x47c], xmm0
mov ecx, dword [ebp - 0x4c8]
mov dword [ebp - 0x4e8], ecx
mov edx, dword [ebp - 0x4dc]
or edx, dword [ebp - 0x4e8]
mov dword [ebp - 0x4d8], edx
mov al, byte [ebp - 0x4d8]
mov byte [ebp - 0x450], al
movzx ecx, byte [ebp - 0x44d]
mov dl, byte [ebp + ecx - 0x674]
mov byte [ebp - 0x44e], dl
movzx eax, byte [ebp - 0x449]
movzx ecx, byte [ebp + eax - 0x674]
mov dword [ebp - 0x56c], ecx
mov dl, byte [ebp - 0x449]
add dl, 1
mov byte [ebp - 0x449], dl
movzx eax, byte [ebp - 0x44a]
add eax, dword [ebp - 0x56c]
mov byte [ebp - 0x44a], al
movzx ecx, byte [ebp - 0x44a]
movzx edx, byte [ebp - 0x44d]
mov al, byte [ebp + ecx - 0x674]
mov byte [ebp + edx - 0x674], al
movzx ecx, byte [ebp - 0x44b]
movzx edx, byte [ebp - 0x44a]
mov al, byte [ebp + ecx - 0x674]
mov byte [ebp + edx - 0x674], al
movzx ecx, byte [ebp - 0x449]
movzx edx, byte [ebp - 0x44b]
mov al, byte [ebp + ecx - 0x674]
mov byte [ebp + edx - 0x674], al
movzx ecx, byte [ebp - 0x449]
mov dl, byte [ebp - 0x44e]
mov byte [ebp + ecx - 0x674], dl
movzx eax, byte [ebp - 0x44e]
movzx ecx, byte [ebp + eax - 0x674]
movzx edx, byte [ebp - 0x44f]
add edx, ecx
mov byte [ebp - 0x44f], dl
movzx eax, byte [ebp - 0x450]
movzx ecx, byte [ebp - 0x44a]
movzx edx, byte [ebp + ecx - 0x674]
movzx ecx, byte [ebp - 0x449]
movzx ecx, byte [ebp + ecx - 0x674]
add edx, ecx
and edx, 0xff
movzx edx, byte [ebp + edx - 0x674]
xor eax, edx
movzx ecx, byte [ebp - 0x44b]
movzx edx, byte [ebp + ecx - 0x674]
movzx ecx, byte [ebp - 0x44d]
movzx ecx, byte [ebp + ecx - 0x674]
add edx, ecx
movzx ecx, byte [ebp - 0x44f]
movzx ecx, byte [ebp + ecx - 0x674]
add edx, ecx
and edx, 0xff
movzx edx, byte [ebp + edx - 0x674]
movzx ecx, byte [ebp + edx - 0x674]
xor eax, ecx
mov byte [ebp - 0x44b], al
mov dl, byte [ebp - 0x450]
mov byte [ebp - 0x44d], dl
mov al, byte [ebp - 0x44b]
mov byte [ebp - 0x451], al
cmp dword [ebp - 0x474], 0
jle 0x4c01c1
movsx cx, byte [ebp - 0x451]
mov edx, dword [ebp - 0x474]
mov word [ebp + edx*2 - 0x1a], cx
mov eax, 2
shl eax, 1
mov dword [ebp - 0x53c], eax
cmp dword [ebp - 0x53c], 6
jae 0x4c01d9
jmp 0x4c01df
call fcn.0051c285
nop
xor ecx, ecx
mov edx, dword [ebp - 0x53c]
mov word [ebp + edx - 0x18], cx
jmp 0x4c0240
mov dword [ebp - 0x510], 0
jmp 0x4c0209
mov eax, dword [ebp - 0x510]
add eax, 1
mov dword [ebp - 0x510], eax
cmp dword [ebp - 0x510], 3
jge 0x4c0240
mov ecx, dword [ebp - 0x510]
shl ecx, 1
mov dword [ebp - 0x52c], ecx
cmp dword [ebp - 0x52c], 6
jae 0x4c022b
jmp 0x4c0231
call fcn.0051c285
nop
xor edx, edx
mov eax, dword [ebp - 0x52c]
mov word [ebp + eax - 0x18], dx
jmp 0x4c01fa
push 0
push 0
lea ecx, [ebp - 0x428]
push ecx
lea edx, [ebp - 0x220]
push edx
lea ecx, [ebp - 0x440]
call fcn.004da6c0
push eax
call fcn.005641d8
add esp, 0x14
lea eax, [ebp - 0x18]
mov dword [ebp - 0x50c], eax
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x508], ecx
mov edx, dword [ebp - 0x508]
mov ax, word [edx]
mov word [ebp - 0x522], ax
mov ecx, dword [ebp - 0x50c]
cmp ax, word [ecx]
jne 0x4c02e1
cmp word [ebp - 0x522], 0
je 0x4c02d5
mov edx, dword [ebp - 0x508]
mov ax, word [edx + 2]
mov word [ebp - 0x51c], ax
mov ecx, dword [ebp - 0x50c]
cmp ax, word [ecx + 2]
jne 0x4c02e1
add dword [ebp - 0x508], 4
add dword [ebp - 0x50c], 4
cmp word [ebp - 0x51c], 0
jne 0x4c027b
mov dword [ebp - 0x530], 0
jmp 0x4c02ec
sbb edx, edx
or edx, 1
mov dword [ebp - 0x530], edx
mov eax, dword [ebp - 0x530]
mov dword [ebp - 0x570], eax
cmp dword [ebp - 0x570], 0
jne 0x4c037e
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x4fc], ecx
mov edx, dword [ebp - 0x4fc]
add edx, 2
mov dword [ebp - 0x574], edx
mov eax, dword [ebp - 0x4fc]
mov cx, word [eax]
mov word [ebp - 0x51a], cx
add dword [ebp - 0x4fc], 2
cmp word [ebp - 0x51a], 0
jne 0x4c031c
mov edx, dword [ebp - 0x4fc]
sub edx, dword [ebp - 0x574]
sar edx, 1
mov dword [ebp - 0x540], edx
cmp dword [ebp - 0x540], 2
jae 0x4c037e
mov byte [ebp - 0x4b5], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.004aa980
mov al, byte [ebp - 0x4b5]
jmp 0x4c05e2
mov byte [ebp - 0x459], 0
mov byte [ebp - 0x47e], 0
mov byte [ebp - 0x47d], 0
mov byte [ebp - 0x480], 0
mov dword [ebp - 0x514], 0
mov dword [ebp - 0x528], 0
mov byte [ebp - 0x49a], 0
lea ecx, [ebp - 0x440]
call fcn.004dd2e0
mov dword [ebp - 0x4b0], eax
jmp 0x4c03d7
mov eax, dword [ebp - 0x4b0]
sub eax, 1
mov dword [ebp - 0x4b0], eax
cmp dword [ebp - 0x4b0], 0
jle 0x4c05be
mov ecx, dword [ebp - 0x4b0]
push ecx
lea ecx, [ebp - 0x440]
call fcn.004aa9e0
movzx edx, word [eax]
cmp edx, 0x2e
jne 0x4c0407
mov byte [ebp - 0x459], 1
jmp 0x4c03c8
movzx eax, byte [ebp - 0x459]
test eax, eax
je 0x4c044c
mov ecx, dword [ebp - 0x4b0]
push ecx
lea ecx, [ebp - 0x440]
call fcn.004aa9e0
movzx edx, word [eax]
cmp edx, 0x29
jne 0x4c043e
mov byte [ebp - 0x459], 0
mov byte [ebp - 0x47d], 1
jmp 0x4c03c8
mov byte [ebp - 0x459], 0
mov byte [ebp - 0x47e], 1
movzx eax, byte [ebp - 0x47d]
test eax, eax
je 0x4c04eb
mov ecx, dword [ebp - 0x4b0]
push ecx
lea ecx, [ebp - 0x440]
call fcn.004aa9e0
movzx edx, word [eax]
cmp edx, 0x28
jne 0x4c048f
mov byte [ebp - 0x47d], 0
mov byte [ebp - 0x47e], 1
mov byte [ebp - 0x480], 1
jmp 0x4c03c8
mov eax, dword [ebp - 0x4b0]
push eax
lea ecx, [ebp - 0x440]
call fcn.004aa9e0
mov cx, word [eax]
movzx edx, cx
push edx
call fcn.00563e54
add esp, 4
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x4b6], al
movzx eax, byte [ebp - 0x4b6]
test eax, eax
je 0x4c04e6
cmp dword [ebp - 0x528], 3
jge 0x4c04e6
mov ecx, dword [ebp - 0x528]
add ecx, 1
mov dword [ebp - 0x528], ecx
jmp 0x4c03c8
jmp 0x4c05be
movzx edx, byte [ebp - 0x480]
test edx, edx
je 0x4c0523
mov byte [ebp - 0x480], 0
mov eax, dword [ebp - 0x4b0]
push eax
lea ecx, [ebp - 0x440]
call fcn.004aa9e0
mov cx, word [eax]
call fcn.004da670
movzx ecx, al
test ecx, ecx
jne 0x4c0523
jmp 0x4c03c8
movzx edx, byte [ebp - 0x47e]
test edx, edx
je 0x4c05b9
mov eax, dword [ebp - 0x4b0]
push eax
lea ecx, [ebp - 0x440]
call fcn.004aa9e0
movzx ecx, word [eax]
cmp ecx, 0x5f
jne 0x4c0560
cmp dword [ebp - 0x514], 3
jge 0x4c0557
jmp 0x4c05be
mov byte [ebp - 0x49a], 1
jmp 0x4c05be
mov edx, dword [ebp - 0x4b0]
push edx
lea ecx, [ebp - 0x440]
call fcn.004aa9e0
mov cx, word [eax]
call fcn.004da670
mov byte [ebp - 0x47f], al
movzx eax, byte [ebp - 0x47f]
xor ecx, ecx
cmp dword [ebp - 0x514], 0xa
setl cl
and eax, ecx
mov byte [ebp - 0x47f], al
movzx edx, byte [ebp - 0x47f]
test edx, edx
jne 0x4c05aa
jmp 0x4c05be
mov eax, dword [ebp - 0x514]
add eax, 1
mov dword [ebp - 0x514], eax
jmp 0x4c03c8
mov cl, byte [ebp - 0x49a]
mov byte [ebp - 0x4b7], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.004aa980
mov al, byte [ebp - 0x4b7]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051bf16
mov esp, ebp
pop ebp
ret