Function at 0x10125bc4
Capabilities:
Encode data using xor
Encrypt data using speck

Disassembly:
mov edx, dword [esp + 0x18]
sub esp, 0x2c
mov ecx, dword [esp + 0x40]
push ebp
mov ebp, dword [esp + 0x34]
push esi
push edi
mov edi, 1
lea esi, [ebp + 8]
test edx, edx
je 0x10125ab6
mov eax, dword [ebp + 0x114]
mov dword [edx], eax
cmp dword [ebp + 0x5c], 0
jge 0x10125ac5
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x2c
ret
mov eax, dword [esp + 0x48]
mov eax, dword [eax]
test eax, eax
je 0x10125aea
test ecx, ecx
je 0x10125ad8
cmp dword [ecx], 0
jne 0x10125aea
push 0xffffffffffffffec
push ebp
call fcn.1012b010
add esp, 8
pop edi
pop esi
pop ebp
add esp, 0x2c
ret
xor edx, edx
test eax, eax
cmovne edx, ecx
cmp dword [ebp + 0x30], 0
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x44]
jne 0x10125b0c
mov eax, dword [ecx]
mov dword [esi + 0xc], eax
mov eax, dword [edx]
jmp 0x10125b14
mov edi, 2
lea eax, [ebp + 0x28]
mov dword [esi + 8], eax
lea eax, [ebp + 0x240]
push ebx
mov dword [esp + 0x28], eax
mov ebx, 0x20
cmp edi, 1
je 0x10125bb1
cmp edi, 2
jne 0x101269b8
cmp dword [ebp + 0x60], 0
je 0x10125b62
push 1
push dword [esp + 0x58]
push dword [esp + 0x20]
push dword [esp + 0x58]
push ebp
call fcn.1012b070
add esp, 0x14
test eax, eax
js 0x1012696b
mov edx, dword [esp + 0x48]
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x1012697f
cmp dword [esi + 0xc], 0
mov eax, dword [esp + 0x44]
jne 0x10125b8a
mov dword [ebp + 0x30], 0
mov eax, dword [eax]
mov dword [esi + 0xc], eax
mov eax, dword [edx]
mov dword [esi + 8], eax
jmp 0x10125bac
cmp dword [eax], 0
je 0x1012696d
mov eax, dword [edx]
mov al, byte [eax]
mov byte [ecx + ebp + 0x28], al
inc dword [ebp + 0x30]
mov eax, dword [ebp + 0x30]
mov ecx, dword [esp + 0x44]
mov dword [esi + 0xc], eax
inc dword [edx]
dec dword [ecx]
mov edi, 1
mov eax, dword [ebp]
cmp eax, 0x1a
ja case.default.0x10125bbd
jmp dword [eax*4 + 0x10126a54]
push esi
call fcn.1012b290
add esp, 4
test eax, eax
jne 0x10125bdf
mov edx, dword [esp + 0x48]
mov edi, 2
jmp case.default.0x10125bbd
mov ebx, dword [ebp + 0x230]
mov eax, ebx
and eax, 0xffffffdf
mov dword [ebp + 0x230], eax
mov ecx, dword [esi + 4]
mov edx, dword [esi]
mov eax, edx
shr eax, cl
and eax, dword [0x1017641c]
lea ecx, [ecx + 1]
mov dword [esi + 4], ecx
jne 0x10125c13
mov dword [ebp + 0x234], 0x10
jmp 0x10125c8d
mov eax, edx
shr eax, cl
lea ecx, [ecx + 3]
and eax, dword [0x10176424]
mov dword [esi + 4], ecx
je 0x10125c30
add eax, 0x11
mov dword [ebp + 0x234], eax
jmp 0x10125c8d
mov eax, edx
shr eax, cl
add ecx, 3
and eax, dword [0x10176424]
mov dword [esi + 4], ecx
cmp eax, 1
jne 0x10125c74
test bl, 0x20
je 0x10125c5d
shr edx, cl
lea eax, [ecx + 1]
and edx, dword [0x1017641c]
mov dword [esi + 4], eax
cmp edx, 1
jne 0x10125c6b
mov edx, dword [esp + 0x48]
mov edi, 0xfffffff3
jmp 0x10125b22
or dword [ebp + 0x230], 0x20
jmp 0x10125c8d
test eax, eax
je 0x10125c83
add eax, 8
mov dword [ebp + 0x234], eax
jmp 0x10125c8d
mov dword [ebp + 0x234], 0x11
mov al, byte [ebp + 0x230]
mov edi, 1
mov edx, dword [esp + 0x48]
and al, 0x20
movzx eax, al
neg eax
sbb eax, eax
add eax, 2
mov dword [ebp], eax
jmp 0x10125b22
mov edi, dword [esi + 4]
mov eax, ebx
sub eax, edi
cmp eax, 6
jae 0x10125cf9
nop dword [eax]
mov edx, dword [esi + 0xc]
test edx, edx
je 0x10125bd1
mov ecx, dword [esi + 8]
shr dword [esi], 8
movzx eax, byte [ecx]
add dword [esi + 4], 0xfffffff8
mov edi, dword [esi + 4]
shl eax, 0x18
or dword [esi], eax
lea eax, [edx - 1]
mov dword [esi + 0xc], eax
lea eax, [ecx + 1]
mov dword [esi + 8], eax
mov eax, ebx
sub eax, edi
cmp eax, 6
jb 0x10125cc0
mov edx, dword [esp + 0x48]
mov eax, dword [esi]
mov ecx, edi
shr eax, cl
and eax, dword [0x10176430]
mov dword [ebp + 0x234], eax
add dword [esi + 4], 6
mov eax, dword [ebp + 0x234]
sub eax, 0xa
cmp eax, 0x14
ja 0x10125d5d
mov dword [ebp], 2
mov ecx, dword [ebp + 0x234]
mov eax, 1
shl eax, cl
sub eax, 0x10
push 0x3030
push dword [ebp + 0x20]
mov dword [ebp + 0x38], eax
mov eax, dword [ebp + 0x18]
call eax
add esp, 8
mov dword [ebp + 0xa8], eax
test eax, eax
jne 0x10125d67
mov edx, dword [esp + 0x48]
lea edi, [eax - 0x1e]
jmp case.default.0x10125bbd
mov edi, 0xfffffff3
jmp case.default.0x10125bbd
add eax, 0x1da0
mov dword [ebp], 3
mov dword [ebp + 0xac], eax
push ebp
call fcn.1012bdd0
add esp, 4
mov dword [ebp], 4
push esi
push ebp
call fcn.10127a20
mov edx, dword [esp + 0x50]
mov edi, eax
add esp, 8
cmp edi, 1
jne 0x10125b30
test byte [ebp + 0x230], 6
je 0x10125dd8
mov ecx, dword [esi + 4]
mov ebx, ecx
neg ebx
and ebx, 7
je 0x10125dd8
mov edx, dword [esi]
lea eax, [ebx + ecx]
shr edx, cl
test dword [ebx*4 + 0x10176418], edx
mov dword [esi + 4], eax
je 0x10125dd8
mov edx, dword [esp + 0x48]
mov edi, 0xfffffff2
jmp 0x10125b22
test byte [ebp + 0x230], 4
je 0x10125df1
mov edx, dword [esp + 0x48]
mov dword [ebp], 0xc
jmp 0x10125b22
cmp dword [ebp + 0xb8], 0
jne 0x10125e0a
mov edx, dword [esp + 0x48]
mov dword [ebp], 0xe
jmp 0x10125b22
push ebp
call fcn.10125940
mov edx, dword [esp + 0x4c]
add esp, 4
test byte [ebp + 0x230], 2
je case.0x10125bbd.17
mov dword [ebp], 0xb
jmp 0x10125b22
mov dword [ebp + 4], 0
lea eax, [ebp + 0x338]
mov dword [ebp + 0x27c], 0
mov dword [ebp + 0x314], eax
mov dword [ebp + 0x278], 0
mov dword [ebp + 0x270], 0
mov dword [ebp + 0x274], 0
mov dword [ebp], 0x12
mov eax, dword [ebp + 4]
cmp eax, 3
jl 0x10125e82
mov dword [ebp], 5
jmp 0x10125b22
lea eax, [eax*4 + 0xcc]
add eax, ebp
push eax
push esi
push ebp
call fcn.10128040
mov edx, dword [esp + 0x54]
mov edi, eax
add esp, 0xc
mov ebx, 0x20
cmp edi, 1
jne 0x10125b30
mov eax, dword [ebp + 4]
inc dword [ebp + eax*4 + 0xcc]
mov eax, dword [ebp + 4]
cmp dword [ebp + eax*4 + 0xcc], 2
jae 0x10125eca
inc eax
mov dword [ebp + 4], eax
jmp case.default.0x10125bbd
mov dword [ebp], 0x13
mov eax, dword [ebp + 4]
push ebp
push 0
mov ecx, dword [ebp + eax*4 + 0xcc]
imul eax, eax, 0x9e0
add ecx, 2
add eax, dword [ebp + 0xa8]
push eax
push ecx
push ecx
call fcn.101290e0
mov edx, dword [esp + 0x5c]
mov edi, eax
add esp, 0x14
mov ebx, 0x20
cmp edi, 1
jne 0x10125b30
mov dword [ebp], 0x14
imul eax, dword [ebp + 4], 0x630
push ebp
push 0
add eax, dword [ebp + 0xac]
push eax
push 0x1a
push 0x1a
call fcn.101290e0
mov edx, dword [esp + 0x5c]
mov edi, eax
add esp, 0x14
mov ebx, 0x20
cmp edi, 1
jne 0x10125b30
mov dword [ebp], 0x15
mov eax, dword [ebp + 4]
imul ecx, eax, 0x630
lea eax, [eax*4 + 0xc0]
add eax, ebp
add ecx, dword [ebp + 0xac]
cmp dword [ebp + 0x22c], 0
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
jne 0x1012603c
mov ebx, dword [esi + 4]
mov eax, 0x20
sub eax, ebx
cmp eax, 0xf
jae 0x10125fc8
nop word [eax + eax]
mov edx, dword [esi + 0xc]
test edx, edx
je 0x1012601b
mov ecx, dword [esi + 8]
shr dword [esi], 8
movzx eax, byte [ecx]
add dword [esi + 4], 0xfffffff8
mov ebx, dword [esi + 4]
shl eax, 0x18
or dword [esi], eax
lea eax, [edx - 1]
mov dword [esi + 0xc], eax
lea eax, [ecx + 1]
mov dword [esi + 8], eax
mov eax, 0x20
sub eax, ebx
cmp eax, 0xf
jb 0x10125f90
mov eax, dword [esi]
mov ecx, ebx
shr eax, cl
and eax, dword [0x10176454]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], eax
movzx eax, al
lea edx, [ecx + eax*4]
mov al, byte [edx]
cmp al, 8
jbe 0x1012600d
shr dword [esp + 0x14], 8
add ebx, 8
movzx eax, al
mov dword [esi + 4], ebx
mov ecx, dword [eax*4 + 0x101763f8]
movzx eax, word [edx + 2]
and ecx, dword [esp + 0x14]
add ecx, eax
mov al, byte [edx + ecx*4]
lea edx, [edx + ecx*4]
movzx eax, al
add eax, ebx
mov dword [esi + 4], eax
movzx ecx, word [edx + 2]
jmp 0x10126042
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push eax
push esi
push ecx
call fcn.1012a130
add esp, 0xc
test eax, eax
je 0x101260f9
mov ecx, dword [esp + 0x10]
jmp 0x10126046
mov ecx, dword [ebp + 0xbc]
mov dword [esp + 0x10], ecx
movzx eax, word [ecx*4 + 0x10176e60]
movzx edx, byte [ecx*4 + 0x10176e62]
mov ebx, dword [esi + 4]
mov dword [esp + 0x20], eax
mov eax, 0x20
sub eax, ebx
mov dword [esp + 0x24], edx
cmp eax, edx
jae 0x101260a7
nop dword [eax]
mov edx, dword [esi + 0xc]
test edx, edx
je 0x101260e5
mov ecx, dword [esi + 8]
shr dword [esi], 8
movzx eax, byte [ecx]
add dword [esi + 4], 0xfffffff8
mov ebx, dword [esi + 4]
shl eax, 0x18
or dword [esi], eax
lea eax, [edx - 1]
mov edx, dword [esp + 0x24]
mov dword [esi + 0xc], eax
lea eax, [ecx + 1]
mov dword [esi + 8], eax
mov eax, 0x20
sub eax, ebx
cmp eax, edx
jb 0x10126070
mov eax, dword [esi]
mov ecx, ebx
shr eax, cl
mov ecx, dword [edx*4 + 0x10176418]
and ecx, eax
lea eax, [ebx + edx]
mov edx, dword [esp + 0x48]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x20]
add eax, ecx
mov ecx, dword [esp + 0x1c]
mov dword [ecx], eax
inc dword [ebp + 4]
mov dword [ebp + 0x22c], 0
mov dword [ebp], 0x12
jmp 0x10125b22
mov eax, dword [esp + 0x10]
mov dword [ebp + 0xbc], eax
mov dword [ebp + 0x22c], 1
mov edx, dword [esp + 0x48]
mov edi, 2
jmp 0x10125b22
push ebp
push dword [esp + 0x58]
push dword [esp + 0x20]
push dword [esp + 0x58]
call fcn.10126b50
mov edx, dword [esp + 0x58]
mov edi, eax
add esp, 0x10
cmp edi, 1
jne 0x10125b30
mov dword [ebp], 0xe
jmp case.default.0x10125bbd
cmp dword [ebp + 0xb8], 0
jle 0x1012619e
mov edx, dword [esi + 4]
mov eax, ebx
sub eax, edx
cmp eax, 8
jae 0x10126185
nop dword [eax]
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x101260f9
mov ecx, dword [esi + 8]
add edx, 0xfffffff8
shr dword [esi], 8
movzx eax, byte [ecx]
shl eax, 0x18
or dword [esi], eax
lea eax, [ebx - 1]
mov dword [esi + 0xc], eax
mov ebx, 0x20
lea eax, [ecx + 1]
mov dword [esi + 4], edx
mov dword [esi + 8], eax
mov eax, ebx
sub eax, edx
cmp eax, 8
jb 0x10126150
lea eax, [edx + 8]
mov dword [esi + 4], eax
dec dword [ebp + 0xb8]
cmp dword [ebp + 0xb8], 0
jg 0x10126140
mov edx, dword [esp + 0x48]
mov dword [ebp], 0xe
jmp case.default.0x10125bbd
mov edi, dword [esi + 4]
mov eax, ebx
sub eax, edi
cmp eax, 6
jae 0x101261f5
nop word [eax + eax]
mov edx, dword [esi + 0xc]
test edx, edx
je 0x10125bd1
mov ecx, dword [esi + 8]
shr dword [esi], 8
movzx eax, byte [ecx]
add dword [esi + 4], 0xfffffff8
mov edi, dword [esi + 4]
shl eax, 0x18
or dword [esi], eax
lea eax, [edx - 1]
mov dword [esi + 0xc], eax
lea eax, [ecx + 1]
mov dword [esi + 8], eax
mov eax, ebx
sub eax, edi
cmp eax, 6
jb 0x101261c0
mov edx, dword [esi]
lea eax, [edi + 6]
mov ecx, edi
shr edx, cl
and edx, dword [0x10176430]
mov dword [esi + 4], eax
mov ecx, edx
and ecx, dword [0x10176420]
mov eax, dword [ebp + 0x18]
shr edx, 2
shl edx, cl
mov dword [ebp + 0xf0], ecx
mov dword [ebp + 0xf4], edx
push dword [ebp + 0xcc]
push dword [ebp + 0x20]
call eax
add esp, 8
mov dword [ebp + 0x244], eax
test eax, eax
jne 0x10126247
mov edx, dword [esp + 0x48]
lea edi, [eax - 0x15]
jmp case.default.0x10125bbd
mov dword [ebp + 4], 0
mov dword [ebp], 6
mov ebx, dword [ebp + 4]
cmp ebx, dword [ebp + 0xcc]
jge 0x101262cb
mov edi, dword [esi + 4]
mov eax, 0x20
sub eax, edi
cmp eax, 2
jae 0x101262a7
nop
mov edx, dword [esi + 0xc]
test edx, edx
je 0x10126410
mov ecx, dword [esi + 8]
add edi, 0xfffffff8
shr dword [esi], 8
movzx eax, byte [ecx]
shl eax, 0x18
or dword [esi], eax
lea eax, [edx - 1]
mov dword [esi + 0xc], eax
lea eax, [ecx + 1]
mov dword [esi + 8], eax
mov eax, 0x20
sub eax, edi
mov dword [esi + 4], edi
cmp eax, 2
jb 0x10126270
mov edx, dword [esi]
lea eax, [edi + 2]
mov ecx, edi
shr edx, cl
and edx, dword [0x10176420]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x244]
mov byte [ebx + eax], dl
inc ebx
cmp ebx, dword [ebp + 0xcc]
jl 0x10126260
mov dword [ebp], 0x16
push ebp
lea eax, [ebp + 0x240]
push eax
lea eax, [ebp + 0x23c]
push eax
mov eax, dword [ebp + 0xcc]
shl eax, 6
push eax
call fcn.10126f90
mov edx, dword [esp + 0x58]
mov edi, eax
add esp, 0x10
mov ebx, 0x20
cmp edi, 1
jne 0x10125b30
xorps xmm0, xmm0
xor ebx, ebx
movups xmmword [ebp + 0x250], xmm0
mov dword [esp + 0x14], ebx
movups xmmword [ebp + 0x260], xmm0
cmp dword [ebp + 0xcc], ebx
jbe 0x101263c6
nop word [eax + eax]
mov eax, dword [esp + 0x28]
mov ecx, ebx
shl ecx, 6
xor esi, esi
mov eax, dword [eax]
lea ebp, [esi + 0x10]
mov bl, byte [eax + ecx]
lea edi, [eax + 2]
add edi, ecx
nop dword [eax + eax]
movzx edx, byte [edi - 2]
lea edi, [edi + 4]
movzx ecx, byte [edi - 5]
movzx eax, bl
xor edx, eax
movzx eax, bl
xor ecx, eax
movzx eax, bl
or edx, ecx
movzx ecx, byte [edi - 3]
xor ecx, eax
movzx eax, bl
or edx, ecx
movzx ecx, byte [edi - 4]
xor ecx, eax
or edx, ecx
or esi, edx
sub ebp, 1
jne 0x10126350
mov ebp, dword [esp + 0x40]
mov ebx, dword [esp + 0x14]
test esi, esi
jne 0x101263b2
mov eax, ebx
mov ecx, ebx
shr eax, 5
and ecx, 0x1f
lea edx, [eax*4]
mov eax, dword [edx + ebp + 0x250]
bts eax, ecx
mov dword [edx + ebp + 0x250], eax
inc ebx
mov dword [esp + 0x14], ebx
cmp ebx, dword [ebp + 0xcc]
jb 0x10126330
lea esi, [ebp + 8]
mov dword [ebp], 0x17
mov edx, dword [ebp + 0xf0]
mov eax, 0x18
mov edi, dword [ebp + 0xf4]
lea ebx, [edx + 1]
mov ecx, ebx
mov dword [esp + 0x24], ebx
shl eax, cl
add eax, 0x10
add eax, edi
test byte [ebp + 0x230], 0x20
mov dword [esp + 0x20], eax
mov ebx, eax
je 0x10126488
cmp edi, 0x7ffffffc
jb 0x10126421
mov ebx, 0x8000000c
jmp 0x10126474
mov edx, dword [esp + 0x48]
mov edi, 2
mov dword [ebp + 4], ebx
jmp 0x10125b22
mov ecx, edx
mov ebx, 1
shl ebx, cl
mov edx, 0x7ffffffc
mov ecx, dword [ebp + 0xf0]
sub edx, edi
shr edx, cl
xor eax, eax
add edx, 4
dec ebx
mov ecx, edx
shr ecx, 1
je 0x1012644a
inc eax
shr ecx, 1
jne 0x10126445
lea ecx, [eax - 1]
shr edx, cl
lea eax, [eax*2 - 4]
and edx, 1
or edx, eax
jne 0x10126462
lea ebx, [edi + 0x10]
jmp 0x10126474
mov ecx, dword [ebp + 0xf0]
lea eax, [edx - 1]
shl eax, cl
or ebx, eax
add ebx, 0x11
add ebx, edi
mov ecx, dword [esp + 0x24]
mov eax, 0x3e
shl eax, cl
add eax, 0x10
add eax, edi
mov dword [esp + 0x20], eax
push ebp
lea eax, [ebp + 0xfc]
push eax
mov eax, dword [ebp + 0xd4]
lea ecx, [ebp + 0xf8]
push ecx
shl eax, 2
push eax
call fcn.10126f90
mov edx, dword [esp + 0x58]
mov edi, eax
add esp, 0x10
cmp edi, 1
jne 0x10125b22
push dword [ebp + 0x23c]
lea eax, [ebp + 0x78]
push 0x100
push 0x100
push eax
push ebp
call fcn.1012ba70
push dword [ebp + 0xd0]
lea ecx, [ebp + 0x88]
mov edi, eax
push 0x2c0
push 0x2c0
push ecx
push ebp
and edi, 1
call fcn.1012ba70
push dword [ebp + 0xf8]
and edi, eax
lea eax, [ebp + 0x98]
push ebx
push dword [esp + 0x50]
push eax
push ebp
call fcn.1012ba70
add esp, 0x3c
test edi, eax
je 0x10126a2d
mov dword [ebp + 4], 0
mov dword [ebp], 0x18
mov eax, dword [ebp + 4]
sub eax, 0
je 0x1012654b
sub eax, 1
je 0x10126544
sub eax, 1
jne 0x10126a40
mov edx, 0x98
jmp 0x10126550
mov edx, 0x88
jmp 0x10126550
mov edx, 0x78
cmp dword [ebp + 0x270], 1
lea ecx, [ebp + 0x96c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], ecx
je 0x10126583
mov eax, dword [edx + ebp + 4]
mov dword [ebp + 0x970], eax
mov dword [ecx], 0
mov dword [ebp + 0x270], 1
jmp 0x10126587
mov dword [esp + 0x20], ecx
movzx eax, word [edx + ebp + 0xc]
cmp dword [ecx], eax
jge 0x101265ed
push ebp
lea eax, [esp + 0x30]
push eax
push dword [ebp + 0x970]
movzx eax, word [edx + ebp + 0xa]
push eax
movzx eax, word [edx + ebp + 8]
push eax
call fcn.101290e0
mov edi, eax
add esp, 0x14
cmp edi, 1
jne 0x10126962
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp + 0x970]
mov edx, dword [edi]
mov ecx, dword [ecx + ebp]
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
inc dword [edi]
shl eax, 2
add dword [ebp + 0x970], eax
movzx eax, word [edx + ebp + 0xc]
cmp dword [edi], eax
jl 0x10126590
mov edx, dword [esp + 0x48]
mov edi, 1
mov dword [ebp + 0x270], 0
inc dword [ebp + 4]
cmp dword [ebp + 4], 3
lea ebx, [edi + 0x1f]
jl case.default.0x10125bbd
mov dword [ebp], 0x19
mov edi, dword [ebp + 0xdc]
mov edx, edi
mov eax, edi
shl edx, 6
add edx, dword [ebp + 0x240]
mov ecx, edi
shr eax, 5
and ecx, 0x1f
mov dword [ebp + 0x70], edx
push ebp
mov eax, dword [ebp + eax*4 + 0x250]
shr eax, cl
and eax, 1
mov dword [ebp + 0xb0], eax
movzx ecx, byte [edx]
mov eax, dword [ebp + 0x78]
mov eax, dword [eax + ecx*4]
mov dword [ebp + 0x100], eax
mov eax, dword [ebp + 0x244]
movzx eax, byte [eax + edi]
and eax, 3
shl eax, 9
add eax, 0x10176ec8
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0xfc]
mov dword [ebp + 0x74], eax
mov eax, dword [ebp + 0x88]
mov eax, dword [eax]
mov dword [ebp + 0x68], eax
call fcn.10126ac0
add esp, 4
test eax, eax
jne 0x1012669b
mov edx, dword [esp + 0x48]
lea edi, [eax - 0x1b]
jmp 0x10125b22
mov ecx, dword [ebp + 0xf4]
lea eax, [ebp + 0x270]
mov edx, dword [ebp + 0xf0]
mov edi, 1
mov dword [esp + 0x14], ecx
mov ebx, 1
movzx ecx, word [ebp + 0xa2]
mov dword [esp + 0x24], ecx
mov ecx, edx
shl edi, cl
xor ecx, ecx
mov dword [esp + 0x38], edx
lea edx, [ebx + 0xf]
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x14], ecx
jbe 0x10126725
mov edx, 0xfffffff1
lea ecx, [eax + 0x10]
sub edx, eax
lea esi, [eax + 0x260]
mov eax, dword [esp + 0x14]
mov edi, eax
mov dword [esp + 0x30], edx
mov ebp, edx
lea edx, [eax + 0x10]
mov byte [ecx], 0
lea eax, [ecx + ebp]
mov dword [esi], eax
lea esi, [esi + 4]
lea ecx, [ecx + 1]
sub edi, ebx
jne 0x10126704
mov ebp, dword [esp + 0x40]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
lea esi, [ebp + 8]
cmp edx, dword [esp + 0x24]
jae 0x10126787
mov ebp, dword [esp + 0x34]
nop
mov esi, dword [esp + 0x14]
lea eax, [ecx + 2]
mov ecx, ebx
inc esi
shl eax, cl
mov ecx, dword [esp + 0x38]
sub eax, 4
shl eax, cl
xor ecx, ecx
add esi, eax
test edi, edi
je 0x1012676d
lea edi, [ebp + 0x220]
lea edi, [edi + edx*4]
lea eax, [esi + ecx]
mov byte [edx + ebp], bl
inc ecx
mov dword [edi], eax
inc edx
lea edi, [edi + 4]
cmp ecx, dword [esp + 0x1c]
jb 0x10126756
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
add ebx, ecx
xor ecx, 1
mov dword [esp + 0x20], ecx
cmp edx, dword [esp + 0x24]
jb 0x10126730
mov ebp, dword [esp + 0x40]
lea esi, [ebp + 8]
mov dword [ebp], 7
push ebp
call fcn.101282a0
mov edx, dword [esp + 0x4c]
mov edi, eax
add esp, 4
mov ebx, 0x20
cmp edi, 2
jne case.default.0x10125bbd
push ebp
call fcn.1012a1f0
mov edx, dword [esp + 0x4c]
add esp, 4
mov edi, eax
jmp case.default.0x10125bbd
push 0
push dword [esp + 0x58]
push dword [esp + 0x20]
push dword [esp + 0x58]
push ebp
call fcn.1012b070
mov edx, dword [esp + 0x5c]
mov edi, eax
add esp, 0x14
cmp edi, 1
jne 0x10125b30
push ebp
call fcn.1012b040
mov ecx, dword [ebp + 0x234]
mov eax, 1
shl eax, cl
add esp, 4
cmp dword [ebp + 0x40], eax
jne 0x10126806
mov eax, dword [ebp + 0x38]
mov dword [ebp + 0x3c], eax
mov eax, dword [ebp]
cmp eax, 0xf
jne 0x1012682e
cmp dword [ebp + 0xb8], 0
mov eax, 0xe
mov edx, dword [esp + 0x48]
mov ecx, 7
cmovne eax, ecx
mov dword [ebp], eax
jmp case.default.0x10125bbd
cmp eax, 0x10
jne 0x10126844
mov edx, dword [esp + 0x48]
mov eax, 0xa
mov dword [ebp], eax
jmp case.default.0x10125bbd
cmp dword [ebp + 4], 0
jne 0x1012686a
cmp dword [ebp + 0xb8], 0
mov eax, 0xe
mov edx, dword [esp + 0x48]
mov ecx, 9
cmovne eax, ecx
mov dword [ebp], eax
jmp case.default.0x10125bbd
mov edx, dword [esp + 0x48]
mov eax, 8
mov dword [ebp], eax
jmp case.default.0x10125bbd
cmp dword [ebp + 0xb8], 0
jge 0x1012688e
mov edi, 0xfffffff6
jmp case.default.0x10125bbd
push ebp
call fcn.1012bb90
add esp, 4
test byte [ebp + 0x230], 1
jne 0x101268b0
mov edx, dword [esp + 0x48]
mov dword [ebp], 3
jmp case.default.0x10125bbd
mov ebx, dword [esi + 4]
mov ecx, 0
mov edx, ebx
neg edx
and edx, 7
je 0x101268d5
mov eax, dword [esi]
mov ecx, ebx
shr eax, cl
mov ecx, dword [edx*4 + 0x10176418]
and ecx, eax
add ebx, edx
mov dword [esi + 4], ebx
test ecx, ecx
je 0x101268e7
mov edx, dword [esp + 0x48]
mov edi, 0xfffffff1
jmp 0x10125b22
cmp dword [ebp + 0x30], 0
jne 0x10126937
mov eax, dword [esi + 0xc]
mov ecx, 0x20
sub ecx, ebx
shr ecx, 3
sub dword [esi + 8], ecx
add eax, ecx
mov dword [esp + 0x38], eax
mov dword [esi + 0xc], eax
lea edx, [ecx*8]
cmp edx, 0x20
jne 0x1012691a
mov dword [esi], 0
jmp 0x1012691e
mov ecx, edx
shl dword [esi], cl
mov ecx, dword [esp + 0x44]
lea eax, [ebx + edx]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x38]
mov dword [ecx], eax
mov ecx, dword [esp + 0x48]
mov eax, dword [esi + 8]
mov dword [ecx], eax
mov dword [ebp], 0x1a
cmp dword [ebp + 0x60], 0
je 0x1012696d
push 1
push dword [esp + 0x58]
push dword [esp + 0x20]
push dword [esp + 0x58]
push ebp
call fcn.1012b070
mov edi, eax
add esp, 0x14
cmp edi, 1
je 0x1012696d
mov edx, dword [esp + 0x48]
jmp 0x10125b22
mov edi, eax
push edi
push ebp
call fcn.1012b010
add esp, 8
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x2c
ret
mov eax, dword [esi + 8]
mov ebx, dword [esp + 0x44]
mov dword [edx], eax
mov eax, dword [esi + 0xc]
mov dword [ebx], eax
test eax, eax
je 0x1012696d
mov eax, dword [edx]
mov ecx, dword [ebp + 0x30]
mov al, byte [eax]
mov byte [ecx + ebp + 0x28], al
inc dword [ebp + 0x30]
inc dword [edx]
add dword [ebx], 0xffffffff
jne 0x10126991
push edi
push ebp
call fcn.1012b010
add esp, 8
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x2c
ret
cmp dword [ebp + 0x30], 0
je 0x101269d7
push edi
push ebp
mov dword [ebp + 0x30], 0
call fcn.1012b010
add esp, 8
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x2c
ret
mov edx, dword [esi + 4]
sub ebx, edx
shr ebx, 3
mov dword [esp + 0x54], ebx
mov eax, dword [esp + 0x54]
sub dword [esi + 8], eax
lea ecx, [ebx*8]
add ebx, dword [esi + 0xc]
mov dword [esi + 0xc], ebx
cmp ecx, 0x20
jne 0x10126a04
mov dword [esi], 0
jmp 0x10126a06
shl dword [esi], cl
lea eax, [edx + ecx]
mov ecx, dword [esp + 0x48]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x44]
push edi
push ebp
mov dword [eax], ebx
mov eax, dword [esi + 8]
mov dword [ecx], eax
call fcn.1012b010
add esp, 8
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x2c
ret
push 0xffffffffffffffea
push ebp
call fcn.1012b010
add esp, 8
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x2c
ret
push 0xffffffffffffffe1
push ebp
call fcn.1012b010
add esp, 8
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x2c
ret