Function at 0x51e8c0
Capabilities:
Encode data using xor
Encrypt data using speck
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x6c
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov edi, dword [ebp + 8]
mov eax, dword [0x742040]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x51e8fa
mov eax, dword [edi + 0x114]
mov dword [ecx], eax
cmp dword [edi + 0x5c], 0
js 0x51f527
mov eax, dword [ebp - 0x44]
cmp dword [eax], 0
je 0x51f52e
test edx, edx
je 0x51f6ee
cmp dword [edx], 0
je 0x51f6ee
cmp dword [edi + 0x30], 0
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], edx
jne 0x51f5e7
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
xor ebx, ebx
inc ebx
lea ecx, [edi + 8]
mov dword [ebp - 0x2c], ecx
mov dword [edi + 0x10], eax
lea eax, [edi + 0xcc]
mov dword [ebp - 0x50], eax
lea eax, [edi + 0x240]
mov dword [ebp - 0x58], eax
lea eax, [edi + 0x23c]
mov dword [ebp - 0x74], eax
lea eax, [edi + 0x250]
mov dword [ebp - 0x54], eax
lea eax, [edi + 0xfc]
mov dword [ebp - 0x70], eax
lea eax, [edi + 0xf8]
mov dword [ebp - 0x6c], eax
lea eax, [edi + 0x78]
mov dword [ebp - 0x64], eax
lea eax, [edi + 0x88]
mov dword [ebp - 0x60], eax
lea eax, [edi + 0x98]
mov dword [ebp - 0x5c], eax
lea eax, [edi + 0x338]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x1c], edi
jmp case.default.0x51ef0e
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
jmp 0x51e9ee
mov ecx, dword [edi + 0xc]
lea eax, [ecx - 0x1b]
cmp eax, 6
jae 0x51e9a9
mov edx, dword [edi + 0x14]
mov ebx, 2
test edx, edx
je case.default.0x51ef0e
mov ebx, dword [edi + 8]
mov esi, dword [edi + 0x10]
mov eax, ebx
shr eax, 8
mov dword [edi + 8], eax
movzx eax, byte [esi]
shld eax, ebx, 0x18
mov dword [edi + 8], eax
dec edx
mov dword [edi + 0x14], edx
inc esi
mov dword [edi + 0x10], esi
add ecx, 0xfffffff8
shr eax, cl
add ecx, 6
mov dword [edi + 0xc], ecx
mov ecx, eax
and ecx, 3
mov dword [edi + 0xf0], ecx
shr eax, 2
and eax, 0xf
shl eax, cl
mov dword [edi + 0xf4], eax
mov esi, dword [edi + 0xcc]
mov ecx, dword [edi + 0x18]
mov ebx, dword [edi + 0x20]
call dword [0x73c768]
push esi
push ebx
call ecx
add esp, 8
mov dword [edi + 0x244], eax
mov ebx, 0xffffffeb
test eax, eax
je case.default.0x51ef0e
mov dword [edi + 4], 0
mov dword [edi], 6
xor eax, eax
mov ecx, dword [ebp - 0x50]
mov ecx, dword [ecx]
jmp 0x51ea71
mov edx, dword [ebp - 0x2c]
mov edx, dword [edx]
shr edx, cl
add ecx, 2
mov dword [edi + 0xc], ecx
and dl, 3
mov ecx, dword [edi + 0x244]
mov byte [ecx + eax], dl
inc eax
mov ecx, dword [edi + 0xcc]
cmp eax, ecx
jge 0x51eae0
mov ecx, dword [edi + 0xc]
lea edx, [ecx - 0x1f]
cmp edx, 2
jae 0x51ea51
mov esi, dword [edi + 0x14]
test esi, esi
je 0x51f81a
mov ebx, dword [edi + 8]
mov dword [ebp - 0x24], ebx
mov edx, dword [ebp - 0x1c]
mov edi, dword [edx + 0x10]
mov edx, ebx
shr edx, 8
mov ebx, dword [ebp - 0x1c]
mov dword [ebx + 8], edx
movzx edx, byte [edi]
mov ebx, dword [ebp - 0x24]
shld edx, ebx, 0x18
mov ebx, dword [ebp - 0x1c]
mov dword [ebx + 8], edx
dec esi
mov ebx, dword [ebp - 0x1c]
mov dword [ebx + 0x14], esi
inc edi
mov esi, dword [ebp - 0x1c]
mov dword [esi + 0x10], edi
mov edi, dword [ebp - 0x1c]
add ecx, 0xfffffff8
jmp 0x51ea56
xor eax, eax
inc eax
shl eax, cl
mov ebx, ecx
shr ebx, 5
mov edx, dword [ebp - 0x54]
or dword [edx + ebx*4], eax
mov edx, dword [ebp - 0x24]
jmp 0x51eb87
mov dword [edi], 0x16
shl ecx, 6
mov edx, dword [ebp - 0x74]
push edi
push dword [ebp - 0x58]
call fcn.00520410
add esp, 8
mov ebx, eax
cmp eax, 1
jne case.default.0x51ef0e
mov eax, dword [ebp - 0x54]
xorps xmm0, xmm0
movups xmmword [eax + 0x10], xmm0
movups xmmword [eax], xmm0
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x51eb90
mov eax, dword [ebp - 0x58]
mov edi, dword [eax]
lea edx, [edi + 2]
xor ecx, ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x40], ecx
shl ecx, 6
mov dword [ebp - 0x28], ecx
mov al, byte [edi + ecx]
mov byte [ebp - 0x30], al
xor edi, edi
xor esi, esi
mov dword [ebp - 0x24], edx
mov ecx, edi
or ecx, dword [ebp - 0x28]
mov bh, byte [edx + edi - 1]
mov al, byte [ebp - 0x30]
xor bh, al
mov edx, dword [ebp - 0x24]
mov dl, byte [edx + edi]
xor dl, al
or dl, bh
mov ebx, dword [ebp - 0x20]
mov dh, byte [ebx + ecx]
xor dh, al
or dl, dh
mov cl, byte [ebx + ecx + 3]
xor cl, al
or cl, dl
mov edx, dword [ebp - 0x24]
movzx ecx, cl
or esi, ecx
cmp edi, 0x3c
lea edi, [edi + 4]
jb 0x51eb3f
mov edi, dword [ebp - 0x20]
test esi, esi
mov ecx, dword [ebp - 0x40]
je 0x51eac8
inc ecx
add edx, 0x40
cmp ecx, dword [ebp - 0x3c]
jne 0x51eb29
mov edi, dword [ebp - 0x1c]
mov dword [edi], 0x17
mov edx, dword [edi + 0xf0]
lea eax, [edx + 1]
mov esi, 0x18
mov ecx, eax
shl esi, cl
mov ecx, edi
mov edi, dword [edi + 0xf4]
test byte [ecx + 0x230], 0x20
jne 0x51f54b
lea eax, [edi + esi]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov edi, dword [ebp - 0x1c]
mov ecx, dword [edi + 0xd4]
shl ecx, 2
mov edx, dword [ebp - 0x6c]
push edi
push dword [ebp - 0x70]
call fcn.00520410
add esp, 8
mov ebx, eax
cmp eax, 1
jne case.default.0x51ef0e
push dword [edi + 0x23c]
mov eax, 0x100
push eax
push eax
mov esi, dword [ebp - 0x64]
push esi
push edi
call fcn.004c5a80
add esp, 0x14
mov dword [ebp - 0x28], eax
push dword [edi + 0xd0]
mov eax, 0x2c0
push eax
push eax
push dword [ebp - 0x60]
push edi
call fcn.004c5a80
add esp, 0x14
mov ebx, eax
and ebx, dword [ebp - 0x28]
push dword [edi + 0xf8]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x5c]
push edi
call fcn.004c5a80
add esp, 0x14
and eax, ebx
test al, 1
je 0x51f5f4
mov dword [edi + 4], 0
mov dword [edi], 0x18
xor eax, eax
jmp 0x51ee47
mov dword [edi], 0x19
mov eax, dword [edi + 0xdc]
mov ecx, eax
shl ecx, 6
mov edx, dword [edi + 0x240]
lea esi, [edx + ecx]
mov dword [edi + 0x70], esi
mov esi, eax
shr esi, 5
mov esi, dword [edi + esi*4 + 0x250]
xor ebx, ebx
bt esi, eax
setb bl
mov dword [edi + 0xb0], ebx
movzx ecx, byte [edx + ecx]
mov edx, dword [edi + 0x78]
mov ecx, dword [edx + ecx*4]
mov edx, dword [edi + 0x88]
mov dword [edi + 0x100], ecx
mov ecx, dword [edi + 0x244]
movzx eax, byte [ecx + eax]
and eax, 3
shl eax, 9
lea eax, [eax + 0x6e4342]
mov dword [edi + 0x6c], eax
mov eax, dword [edi + 0xfc]
mov dword [edi + 0x74], eax
mov eax, dword [edx]
mov dword [edi + 0x68], eax
mov ecx, edi
call fcn.004bf0e0
mov ebx, 0xffffffe5
test eax, eax
je case.default.0x51ef0e
mov edx, dword [edi + 0xf0]
mov ebx, dword [edi + 0xf4]
movzx eax, word [edi + 0xa2]
mov dword [ebp - 0x3c], eax
test ebx, ebx
je 0x51f314
xor esi, esi
mov eax, esi
mov byte [edi + esi + 0x280], 0
inc esi
mov dword [edi + eax*4 + 0x4d0], esi
cmp ebx, esi
jne 0x51ed0b
add esi, 0x10
cmp esi, dword [ebp - 0x3c]
jae 0x51ed99
xor edi, edi
xor eax, eax
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x40], edi
lea eax, [edi + 2]
mov ecx, dword [ebp - 0x20]
shl eax, cl
add eax, 0xfffffffc
mov ecx, edx
shl eax, cl
add eax, ebx
mov dword [ebp - 0x30], eax
xor eax, eax
inc eax
mov ecx, edx
mov dword [ebp - 0x24], esi
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi + 0x270], bl
mov edx, dword [ebp - 0x30]
lea esi, [edx + eax]
mov dword [ebp - 0x28], esi
mov ebx, eax
shr ebx, cl
mov esi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x24]
mov dword [edx + edi*4 + 0x490], esi
mov esi, dword [ebp - 0x24]
inc esi
inc eax
test ebx, ebx
je 0x51ed50
mov edi, dword [ebp - 0x40]
add dword [ebp - 0x20], edi
xor edi, 1
cmp esi, dword [ebp - 0x3c]
mov edx, ecx
mov ebx, dword [ebp - 0x78]
jb 0x51ed34
mov edi, dword [ebp - 0x1c]
mov dword [edi], 7
mov ecx, edi
call fcn.00520860
mov ebx, eax
cmp eax, 2
jne case.default.0x51ef0e
mov ecx, edi
call fcn.004bf190
mov ebx, eax
jmp case.default.0x51ef0e
push dword [ebp - 0x2c]
call fcn.004c5c40
add esp, 4
mov ebx, 2
test eax, eax
je case.default.0x51ef0e
mov eax, dword [edi + 0x230]
mov dword [ebp - 0x24], eax
and eax, 0xffffffdf
mov dword [edi + 0x230], eax
mov esi, dword [edi + 8]
mov edx, dword [edi + 0xc]
lea ecx, [edx + 1]
mov dword [edi + 0xc], ecx
bt esi, edx
jae 0x51f53c
mov ebx, esi
shr ebx, cl
lea ecx, [edx + 4]
mov dword [edi + 0xc], ecx
and ebx, 7
je 0x51f70b
add ebx, 0x11
mov dword [edi + 0x234], ebx
test al, 0x20
jne 0x51f600
mov dword [edi], 2
xor ebx, ebx
inc ebx
jmp case.default.0x51ef0e
cmp eax, 2
mov esi, dword [ebp - 0x64]
jne 0x51f5d3
mov eax, 2
mov esi, dword [ebp - 0x5c]
cmp dword [edi + 0x270], 1
je 0x51f338
mov ecx, dword [esi + 4]
mov dword [edi + 0x970], ecx
mov dword [edi + 0x96c], 0
mov dword [edi + 0x270], 1
xor ecx, ecx
movzx edx, word [esi + 0xc]
cmp ecx, edx
jge 0x51eedc
mov eax, dword [edi + 0x970]
mov dword [ebp - 0x14], 0xffffffff
movzx edx, word [esi + 0xa]
movzx ecx, word [esi + 8]
push edi
lea ebx, [ebp - 0x14]
push ebx
push eax
call fcn.0051f8d0
add esp, 0xc
cmp eax, 1
jne 0x51edbb
mov eax, dword [edi + 0x96c]
mov ecx, dword [edi + 0x970]
mov edx, dword [esi]
mov dword [edx + eax*4], ecx
mov eax, dword [ebp - 0x14]
lea eax, [ecx + eax*4]
mov dword [edi + 0x970], eax
mov ecx, dword [edi + 0x96c]
inc ecx
mov dword [edi + 0x96c], ecx
movzx edx, word [esi + 0xc]
cmp ecx, edx
jl 0x51ee81
mov eax, dword [edi + 4]
mov dword [edi + 0x270], 0
lea ecx, [eax + 1]
mov dword [edi + 4], ecx
xor ebx, ebx
inc ebx
cmp eax, 2
jge 0x51ec63
cmp ebx, 1
jne 0x51f46b
mov edi, dword [ebp - 0x1c]
mov eax, dword [edi]
xor ebx, ebx
inc ebx
cmp eax, 0x1a
ja case.default.0x51ef0e
jmp dword [eax*4 + 0x6e2914]
mov eax, dword [edi + 4]
cmp eax, 3
jge 0x51ef5c
mov ecx, dword [ebp - 0x50]
lea eax, [ecx + eax*4]
mov ecx, edi
mov edx, dword [ebp - 0x2c]
push eax
call fcn.004bef10
add esp, 4
mov ebx, eax
cmp eax, 1
jne case.default.0x51ef0e
mov eax, dword [edi + 4]
inc dword [edi + eax*4 + 0xcc]
mov eax, dword [edi + 4]
cmp dword [edi + eax*4 + 0xcc], 1
ja 0x51f156
inc eax
mov dword [edi + 4], eax
xor ebx, ebx
inc ebx
jmp case.default.0x51ef0e
mov dword [edi], 5
xor ebx, ebx
inc ebx
jmp case.default.0x51ef0e
mov eax, dword [edi + 4]
cmp eax, 1
jne 0x51ee33
xor eax, eax
inc eax
mov esi, dword [ebp - 0x60]
jmp 0x51ee47
mov eax, dword [edi + 0x234]
xor edx, edx
inc edx
mov ecx, eax
shl edx, cl
add edx, 0xfffffff0
mov dword [edi + 0x38], edx
mov ecx, dword [edi + 0x18]
mov esi, dword [edi + 0x20]
call dword [0x73c768]
push 0x3030
push esi
call ecx
add esp, 8
mov dword [edi + 0xa8], eax
mov ebx, 0xffffffe2
test eax, eax
je case.default.0x51ef0e
add eax, 0x1da0
mov dword [edi + 0xac], eax
mov dword [edi], 3
push edi
call fcn.004c57e0
add esp, 4
mov dword [edi], 4
mov ecx, edi
mov edx, dword [ebp - 0x2c]
call fcn.004be940
mov ebx, eax
cmp eax, 1
jne case.default.0x51ef0e
mov eax, dword [edi + 0x230]
test al, 6
jne 0x51f2e3
test al, 4
jne 0x51f2d2
mov edi, dword [ebp - 0x1c]
cmp dword [edi + 0xb8], 0
je 0x51f05b
mov ecx, edi
call fcn.004beea0
test byte [edi + 0x230], 2
jne 0x51f60e
mov dword [edi + 4], 0
mov eax, dword [ebp - 0x68]
mov dword [edi + 0x314], eax
xorps xmm0, xmm0
movups xmmword [edi + 0x270], xmm0
mov dword [edi], 0x12
xor eax, eax
jmp 0x51ef1d
mov eax, dword [edi + 0xb8]
test eax, eax
jg 0x51f792
mov dword [edi], 0xe
xor ebx, ebx
inc ebx
jmp case.default.0x51ef0e
mov dword [edi], 3
xor ebx, ebx
inc ebx
jmp case.default.0x51ef0e
mov ebx, 0xfffffff6
cmp dword [edi + 0xb8], 0
js case.default.0x51ef0e
push edi
call fcn.004c5860
add esp, 4
test byte [edi + 0x230], 1
je 0x51f069
mov eax, dword [edi + 0xc]
mov edx, eax
neg edx
and edx, 7
je 0x51f0c5
mov esi, dword [edi + 8]
mov ecx, eax
shr esi, cl
add eax, edx
mov dword [edi + 0xc], eax
mov ebx, 0xfffffff1
test dword [edx*4 + 0x6e4b80], esi
jne case.default.0x51ef0e
cmp dword [edi + 0x30], 0
jne 0x51f10a
mov ecx, 0x20
sub ecx, eax
mov esi, ecx
shr esi, 3
and ecx, 0xfffffff8
mov edx, dword [edi + 0x14]
add edx, esi
mov dword [edi + 0x14], edx
sub dword [edi + 0x10], esi
cmp ecx, 0x20
je 0x51f535
mov esi, dword [ebp - 0x2c]
mov esi, dword [esi]
shl esi, cl
mov dword [edi + 8], esi
add ecx, eax
mov dword [edi + 0xc], ecx
mov eax, dword [ebp - 0x34]
mov dword [eax], edx
mov eax, dword [edi + 0x10]
mov ecx, dword [ebp - 0x38]
mov dword [ecx], eax
mov dword [edi], 0x1a
cmp dword [edi + 0x60], 0
je 0x51f136
mov ecx, edi
mov edx, dword [ebp - 0x44]
push 1
push dword [ebp - 0x4c]
push dword [ebp - 0x48]
call fcn.004be840
add esp, 0xc
mov ebx, eax
cmp eax, 1
jne case.default.0x51ef0e
xor edx, edx
inc edx
mov ecx, edi
call fcn.004be810
mov esi, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005412b6
mov eax, esi
add esp, 0x6c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [edi], 0x13
mov ecx, dword [edi + eax*4 + 0xcc]
add ecx, 2
imul eax, eax, 0x9e0
add eax, dword [edi + 0xa8]
mov edx, ecx
push edi
push 0
push eax
call fcn.0051f8d0
add esp, 0xc
mov ebx, eax
cmp eax, 1
jne case.default.0x51ef0e
mov dword [edi], 0x14
imul eax, dword [edi + 4], 0x630
add eax, dword [edi + 0xac]
mov ecx, 0x1a
mov edx, 0x1a
push edi
push 0
push eax
call fcn.0051f8d0
add esp, 0xc
mov ebx, eax
cmp eax, 1
jne case.default.0x51ef0e
mov dword [edi], 0x15
mov ecx, dword [edi + 4]
mov dword [ebp - 0x24], ecx
imul ebx, ecx, 0x630
add ebx, dword [edi + 0xac]
mov dword [ebp - 0x18], 0xffffffff
cmp dword [edi + 0x22c], 0
jne 0x51f51c
mov ecx, dword [edi + 0xc]
lea edx, [ecx - 0x12]
cmp edx, 0xf
jae 0x51f2c8
mov esi, dword [edi + 0x14]
dec esi
mov edi, ecx
mov dword [ebp - 0x20], ebx
cmp esi, 0xffffffff
je 0x51f7f9
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 8]
mov ebx, dword [eax + 0x10]
mov edx, ecx
shr edx, 8
mov dword [eax + 8], edx
movzx edx, byte [ebx]
shld edx, ecx, 0x18
mov dword [eax + 8], edx
lea ecx, [edi - 8]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x14], esi
inc ebx
mov dword [eax + 0x10], ebx
dec esi
add edi, 0xffffffe6
cmp edi, 0xf
mov edi, ecx
mov ebx, dword [ebp - 0x20]
jb 0x51f203
shr edx, cl
movzx esi, dl
lea eax, [ebx + esi*4]
movzx ebx, byte [eax]
cmp ebx, 9
jae 0x51f76b
mov edi, dword [ebp - 0x1c]
movzx edx, bl
add edx, ecx
mov dword [edi + 0xc], edx
movzx edx, word [eax + 2]
movzx eax, byte [edx*4 + 0x6e4ff0]
movzx ecx, word [edx*4 + 0x6e4fee]
mov dword [ebp - 0x20], ecx
mov ecx, dword [edi + 0xc]
mov ebx, 0x20
sub ebx, ecx
cmp ebx, eax
jb 0x51f83f
mov edx, dword [ebp - 0x2c]
mov edx, dword [edx]
shr edx, cl
and edx, dword [eax*4 + 0x6e4b80]
add edx, dword [ebp - 0x20]
add ecx, eax
mov edi, dword [ebp - 0x1c]
mov dword [edi + 0xc], ecx
mov eax, dword [ebp - 0x24]
mov dword [edi + eax*4 + 0xc0], edx
mov dword [edi + 0x22c], 0
inc dword [edi + 4]
mov dword [edi], 0x12
xor ebx, ebx
inc ebx
jmp case.default.0x51ef0e
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
jmp 0x51f242
mov edi, dword [ebp - 0x1c]
mov dword [edi], 0xc
xor ebx, ebx
inc ebx
jmp case.default.0x51ef0e
mov ecx, dword [edi + 0xc]
mov edx, ecx
neg edx
and edx, 7
je 0x51effe
mov esi, dword [edi + 8]
shr esi, cl
add ecx, edx
mov dword [edi + 0xc], ecx
mov ebx, 0xfffffff2
test dword [edx*4 + 0x6e4b80], esi
je 0x51effe
jmp case.default.0x51ef0e
mov esi, 0x10
jmp 0x51ed24
mov eax, dword [edi + 4]
jmp 0x51ea4a
mov eax, dword [edi + 4]
jmp 0x51f15c
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
jmp 0x51eae6
mov ecx, dword [edi + 0x96c]
jmp 0x51ee73
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
push edi
push dword [ebp - 0x4c]
call fcn.0066fea0
add esp, 8
mov ebx, eax
cmp eax, 1
jne case.default.0x51ef0e
jmp 0x51f05b
mov ecx, dword [edi + 0xc]
lea eax, [ecx - 0x1b]
cmp eax, 6
jae 0x51f3a8
mov edi, dword [ebp - 0x1c]
mov edx, dword [edi + 0x14]
mov ebx, 2
test edx, edx
je case.default.0x51ef0e
mov ebx, dword [edi + 8]
mov esi, dword [edi + 0x10]
mov eax, ebx
shr eax, 8
mov dword [edi + 8], eax
movzx eax, byte [esi]
shld eax, ebx, 0x18
mov dword [edi + 8], eax
dec edx
mov dword [edi + 0x14], edx
inc esi
mov dword [edi + 0x10], esi
add ecx, 0xfffffff8
jmp 0x51f3ad
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
shr eax, cl
and eax, 0x3f
mov edi, dword [ebp - 0x1c]
mov dword [edi + 0x234], eax
add ecx, 6
mov dword [edi + 0xc], ecx
lea ecx, [eax - 0x1f]
mov ebx, 0xfffffff3
cmp ecx, 0xffffffeb
jb case.default.0x51ef0e
mov dword [edi], 2
jmp 0x51ef84
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 0x10]
mov edx, dword [ebp - 0x38]
mov dword [edx], eax
mov eax, dword [ecx + 0x14]
mov ecx, dword [ebp - 0x34]
mov dword [ecx], eax
mov ebx, 2
test eax, eax
je 0x51f483
mov esi, dword [ebp - 0x38]
mov edx, dword [ebp - 0x1c]
mov eax, dword [esi]
mov al, byte [eax]
mov ecx, dword [edx + 0x30]
mov byte [edx + ecx + 0x28], al
inc dword [edx + 0x30]
inc dword [esi]
mov eax, dword [ebp - 0x34]
dec dword [eax]
jne 0x51f403
jmp 0x51f483
mov edi, dword [ebp - 0x1c]
mov eax, dword [edi + 0xc]
mov ecx, 0x20
sub ecx, eax
mov esi, ecx
shr esi, 3
mov edx, dword [edi + 0x14]
add edx, esi
mov dword [edi + 0x14], edx
sub dword [edi + 0x10], esi
and ecx, 0xfffffff8
xor esi, esi
cmp ecx, 0x20
je 0x51f44a
mov esi, dword [ebp - 0x2c]
mov esi, dword [esi]
shl esi, cl
mov edi, dword [ebp - 0x1c]
mov dword [edi + 8], esi
add ecx, eax
mov dword [edi + 0xc], ecx
mov eax, dword [ebp - 0x34]
mov dword [eax], edx
mov eax, dword [edi + 0x10]
mov ecx, dword [ebp - 0x38]
mov dword [ecx], eax
jmp 0x51f483
mov ebx, 2
jmp 0x51f483
cmp ebx, 2
je 0x51f491
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x30], 0
je 0x51f41c
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x30], 0
mov ecx, dword [ebp - 0x1c]
mov edx, ebx
jmp 0x51f13b
mov ebx, eax
jmp 0x51f483
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x60], 0
je 0x51f4b4
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x44]
push 1
push dword [ebp - 0x4c]
push dword [ebp - 0x48]
call fcn.004be840
add esp, 0xc
test eax, eax
js 0x51f48d
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x30]
test eax, eax
je 0x51f3dd
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x14], 0
je 0x51f4fa
mov ecx, dword [ebp - 0x34]
cmp dword [ecx], 0
je 0x51f464
mov edx, dword [ebp - 0x38]
mov ecx, dword [edx]
mov cl, byte [ecx]
mov edi, dword [ebp - 0x1c]
mov byte [edi + eax + 0x28], cl
mov eax, dword [edi + 0x30]
inc eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x14], eax
inc dword [edx]
mov eax, dword [ebp - 0x34]
dec dword [eax]
xor ebx, ebx
inc ebx
jmp case.default.0x51ef0e
mov edi, dword [ebp - 0x1c]
mov dword [edi + 0x30], 0
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
mov dword [edi + 0x10], eax
xor ebx, ebx
inc ebx
jmp case.default.0x51ef0e
mov edx, dword [edi + 0xbc]
jmp 0x51f265
xor esi, esi
jmp 0x51f142
xor edx, edx
jmp 0x51e921
xor esi, esi
jmp 0x51f0f5
mov dword [edi + 0x234], 0x10
jmp 0x51ee1d
lea ecx, [edi + 0x10]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], SafeArrayGetElemsize
cmp edi, 0x7ffffffb
ja 0x51f5c2
mov esi, 0x7ffffffc
sub esi, edi
xor ebx, ebx
dec ebx
mov dword [ebp - 0x28], ebx
mov ecx, edx
shl dword [ebp - 0x28], cl
shr esi, cl
add esi, 4
mov ecx, 0xfffffffb
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x20], esi
shr esi, 1
inc ebx
add ecx, 2
cmp dword [ebp - 0x20], 3
mov dword [ebp - 0x20], esi
ja 0x51f582
mov esi, dword [ebp - 0x30]
bt esi, ebx
mov ebx, 0
setb bl
add ebx, ecx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], ecx
cmp ebx, 0xffffffff
je 0x51f5c2
mov esi, ebx
mov ecx, edx
shl esi, cl
mov ecx, dword [ebp - 0x28]
not ecx
or esi, ecx
lea ecx, [edi + esi]
add ecx, 0x11
mov dword [ebp - 0x20], ecx
mov edx, 0x3e
mov ecx, eax
shl edx, cl
add dword [ebp - 0x24], edx
jmp 0x51ebcc
test eax, eax
je 0x51ee47
mov ecx, edi
mov edx, 0xffffffe1
jmp 0x51f13b
lea eax, [edi + 0x28]
mov ebx, 2
jmp 0x51e941
mov ecx, edi
mov edx, 0xffffffea
jmp 0x51f13b
mov dword [edi], 1
xor ebx, ebx
inc ebx
jmp case.default.0x51ef0e
mov dword [edi], 0xb
xor ebx, ebx
inc ebx
jmp case.default.0x51ef0e
mov ecx, edi
mov edx, dword [ebp - 0x44]
push 0
push dword [ebp - 0x4c]
push dword [ebp - 0x48]
call fcn.004be840
add esp, 0xc
mov ebx, eax
cmp eax, 1
jne case.default.0x51ef0e
mov ecx, edi
call fcn.00670000
mov cl, byte [edi + 0x234]
xor ebx, ebx
inc ebx
mov eax, ebx
shl eax, cl
cmp dword [edi + 0x40], eax
jne 0x51f65e
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 0x38]
mov dword [ecx + 0x3c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
cmp eax, 0x10
je 0x51f684
cmp eax, 0xf
je 0x51f692
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 4], 0
je 0x51f6c6
mov edi, dword [ebp - 0x1c]
mov dword [edi], 8
jmp case.default.0x51ef0e
mov edi, dword [ebp - 0x1c]
mov dword [edi], 0xa
jmp case.default.0x51ef0e
mov edi, dword [ebp - 0x1c]
mov eax, dword [edi + 0x24c]
test eax, eax
je 0x51f6ab
mov ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jne 0x51f8a7
cmp dword [edi + 0xb8], 0
mov eax, 0xe
mov ecx, 7
cmove ecx, eax
mov dword [edi], ecx
jmp case.default.0x51ef0e
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0xb8], 0
je 0x51f6e0
mov edi, dword [ebp - 0x1c]
mov dword [edi], 9
jmp case.default.0x51ef0e
mov edi, dword [ebp - 0x1c]
mov dword [edi], 0xe
jmp case.default.0x51ef0e
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005412b6
mov ecx, edi
mov edx, 0xffffffec
add esp, 0x6c
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.004be810
mov ebx, esi
shr ebx, cl
lea ecx, [edx + 7]
mov dword [edi + 0xc], ecx
and ebx, 7
je 0x51f72a
cmp ebx, 1
je 0x51f73c
or ebx, 8
mov edi, dword [ebp - 0x1c]
jmp 0x51ee17
mov edi, dword [ebp - 0x1c]
mov dword [edi + 0x234], 0x11
jmp 0x51ee1d
mov ebx, 0xfffffff3
test byte [ebp - 0x24], 0x20
mov edi, dword [ebp - 0x1c]
je case.default.0x51ef0e
add edx, 8
mov dword [edi + 0xc], edx
bt esi, ecx
jb case.default.0x51ef0e
mov eax, dword [ebp - 0x24]
mov dword [edi + 0x230], eax
jmp 0x51ee1d
add ecx, 8
mov edi, dword [ebp - 0x1c]
mov dword [edi + 0xc], ecx
shr edx, 8
and edx, dword [ebx*4 + 0x6e4b60]
and edx, 0x7f
lea edx, [eax + edx*4]
movzx eax, word [eax + 2]
lea eax, [edx + eax*4]
mov bl, byte [eax]
jmp 0x51f259
mov ecx, dword [edi + 0xc]
inc eax
lea edx, [ecx - 0x19]
cmp edx, 7
ja 0x51f7db
mov edx, dword [ebp - 0x1c]
mov edi, dword [edx + 0x14]
test edi, edi
je 0x51f81d
mov edx, dword [ebp - 0x1c]
mov esi, dword [edx + 8]
mov dword [ebp - 0x24], esi
mov esi, dword [edx + 0x10]
mov dword [ebp - 0x20], esi
mov ebx, dword [ebp - 0x24]
shr ebx, 8
mov dword [edx + 8], ebx
movzx ebx, byte [esi]
mov esi, dword [ebp - 0x24]
shld ebx, esi, 0x18
mov dword [edx + 8], ebx
dec edi
mov dword [edx + 0x14], edi
mov esi, dword [ebp - 0x20]
inc esi
mov dword [edx + 0x10], esi
add ecx, 0xfffffff8
add ecx, 8
mov edi, dword [ebp - 0x1c]
mov dword [edi + 0xc], ecx
lea edx, [eax - 2]
mov dword [edi + 0xb8], edx
dec eax
cmp eax, 1
jle 0x51f05b
jmp 0x51f796
lea esi, [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x2c]
push esi
call fcn.004c0000
add esp, 4
test eax, eax
je 0x51f81d
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
jmp 0x51f265
mov dword [edi + 4], eax
mov ebx, 2
jmp case.default.0x51ef0e
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x3c]
mov dword [edi + 0xbc], eax
mov dword [edi + 0x22c], 1
jmp 0x51f81d
mov dword [ebp - 0x3c], edx
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx + 0x14]
dec edx
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 0xffffffff
je 0x51f827
mov edx, dword [ebp - 0x1c]
mov edi, dword [edx + 8]
mov dword [ebp - 0x40], edi
mov edi, dword [edx + 0x10]
mov dword [ebp - 0x30], edi
mov edi, dword [ebp - 0x40]
shr edi, 8
mov dword [edx + 8], edi
mov edx, dword [ebp - 0x30]
movzx edx, byte [edx]
mov edi, dword [ebp - 0x40]
shld edx, edi, 0x18
mov edi, dword [ebp - 0x1c]
mov dword [edi + 8], edx
add ecx, 0xfffffff8
mov esi, edi
mov dword [edi + 0xc], ecx
mov edi, dword [ebp - 0x28]
mov dword [esi + 0x14], edi
inc dword [ebp - 0x30]
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x1c]
mov dword [esi + 0x10], edi
dec dword [ebp - 0x28]
add ebx, 8
cmp ebx, eax
jae 0x51f28f
jmp 0x51f84c
mov edx, dword [edi + 0x34]
mov ecx, edi
call fcn.00670030
add eax, dword [edi + 0x34]
mov dword [edi + 0x34], eax
cmp eax, dword [edi + 0x40]
jge case.default.0x51ef0e
jmp 0x51f6ab