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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov ecx, dword [ebp + 0x1c]
mov edx, 1
mov dword [ebp - 8], edx
push ebx
mov ebx, dword [ebp + 8]
push esi
lea esi, [ebx + 8]
mov dword [ebp - 0x38], esi
test ecx, ecx
je 0x5f7e38
mov eax, dword [ebx + 0x114]
mov dword [ecx], eax
cmp dword [ebx + 0x5c], 0
jge 0x5f7e46
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp + 0x18]
test ecx, ecx
je 0x5f7e6c
test eax, eax
je 0x5f7e5b
cmp dword [eax], 0
jne 0x5f7e6c
push 0xffffffffffffffec
push ebx
call fcn.005fcfc0
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
xor edi, edi
test ecx, ecx
cmovne edi, eax
cmp dword [ebx + 0x30], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
mov edi, dword [ebp + 0x10]
jne 0x5f7e8c
mov eax, dword [eax]
mov dword [esi + 0xc], eax
mov eax, dword [edi]
jmp 0x5f7e97
mov edx, 2
lea eax, [ebx + 0x28]
mov dword [ebp - 8], edx
mov dword [esi + 8], eax
lea eax, [ebx + 0x240]
mov dword [ebp - 0x24], eax
mov ecx, 0x20
cmp edx, 1
je 0x5f7f2b
cmp edx, 2
jne 0x5f8d49
cmp dword [ebx + 0x60], 0
je 0x5f7ed8
push 1
push dword [ebp + 0x1c]
push dword [ebp - 0x14]
push dword [ebp + 0x14]
push ebx
call fcn.005fd030
add esp, 0x14
test eax, eax
js 0x5f8dac
mov ecx, dword [ebx + 0x30]
test ecx, ecx
je 0x5f8d07
cmp dword [esi + 0xc], 0
mov eax, dword [ebp + 0xc]
jne 0x5f7eff
mov dword [ebx + 0x30], 0
mov eax, dword [eax]
mov dword [esi + 0xc], eax
mov eax, dword [edi]
mov dword [esi + 8], eax
jmp 0x5f7f20
cmp dword [eax], 0
je 0x5f8da9
mov eax, dword [edi]
mov al, byte [eax]
mov byte [ecx + ebx + 0x28], al
inc dword [ebx + 0x30]
mov eax, dword [ebx + 0x30]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
inc dword [edi]
dec dword [eax]
mov edx, 1
mov dword [ebp - 8], edx
lea ecx, [edx + 0x1f]
mov eax, dword [ebx]
cmp eax, 0x1a
ja case.default.0x5f7f36
jmp dword [eax*4 + 0x5f8df8]
push esi
call fcn.005fd5f0
add esp, 4
test eax, eax
jne 0x5f7f57
mov edx, 2
mov dword [ebp - 8], edx
jmp 0x5f7ea3
mov eax, dword [ebx + 0x230]
mov dword [ebp - 0x20], eax
and eax, 0xffffffdf
mov dword [ebx + 0x230], eax
mov ecx, dword [esi + 4]
mov edx, dword [esi]
mov eax, edx
shr eax, cl
and eax, dword [0x669d84]
lea ecx, [ecx + 1]
mov dword [esi + 4], ecx
jne 0x5f7f8c
mov dword [ebx + 0x234], 0x10
jmp 0x5f8006
mov eax, edx
shr eax, cl
lea ecx, [ecx + 3]
and eax, dword [0x669d8c]
mov dword [esi + 4], ecx
je 0x5f7fa9
add eax, 0x11
mov dword [ebx + 0x234], eax
jmp 0x5f8006
mov eax, edx
shr eax, cl
add ecx, 3
and eax, dword [0x669d8c]
mov dword [esi + 4], ecx
cmp eax, 1
jne 0x5f7fed
test byte [ebp - 0x20], 0x20
je 0x5f7fd7
shr edx, cl
lea eax, [ecx + 1]
and edx, dword [0x669d84]
mov dword [esi + 4], eax
cmp edx, 1
jne 0x5f7fe4
mov edx, 0xfffffff3
mov dword [ebp - 8], edx
jmp 0x5f7ea3
or dword [ebx + 0x230], 0x20
jmp 0x5f8006
test eax, eax
je 0x5f7ffc
add eax, 8
mov dword [ebx + 0x234], eax
jmp 0x5f8006
mov dword [ebx + 0x234], 0x11
mov edx, 1
mov dword [ebp - 8], edx
lea ecx, [edx + 0x1f]
test byte [ebx + 0x230], cl
je 0x5f8020
mov dword [ebx], edx
jmp case.default.0x5f7f36
mov dword [ebx], 2
jmp case.default.0x5f7f36
mov edi, dword [esi + 4]
mov eax, ecx
sub eax, edi
cmp eax, 6
jae 0x5f8075
mov edx, dword [esi + 0xc]
nop word [eax + eax]
test edx, edx
je 0x5f8481
mov ecx, dword [esi + 8]
dec edx
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, [ecx + 1]
mov dword [esi + 8], eax
mov ecx, 0x20
mov eax, ecx
mov dword [esi + 0xc], edx
sub eax, edi
cmp eax, 6
jb 0x5f8040
mov eax, dword [esi]
mov ecx, edi
shr eax, cl
and eax, dword [0x669d98]
mov dword [ebx + 0x234], eax
add dword [esi + 4], 6
mov eax, dword [ebx + 0x234]
sub eax, 0xa
cmp eax, 0x14
ja 0x5f80dc
mov edi, dword [ebp + 0x10]
mov dword [ebx], 2
mov ecx, dword [ebx + 0x234]
mov eax, 1
shl eax, cl
sub eax, 0x10
push 0x3030
push dword [ebx + 0x20]
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x18]
call eax
add esp, 8
mov dword [ebx + 0xa8], eax
test eax, eax
jne 0x5f80ec
mov edx, 0xffffffe2
mov dword [ebp - 8], edx
jmp 0x5f7ea3
mov edx, 0xfffffff3
mov dword [ebp - 8], edx
mov edi, dword [ebp + 0x10]
jmp 0x5f7ea3
add eax, 0x1da0
mov dword [ebx], 3
mov dword [ebx + 0xac], eax
push ebx
call fcn.005fe060
add esp, 4
mov dword [ebx], 4
push esi
push ebx
call fcn.005f9c90
mov edx, eax
add esp, 8
mov dword [ebp - 8], edx
mov ecx, 0x20
cmp edx, 1
jne 0x5f7ead
test byte [ebx + 0x230], 6
je 0x5f8166
mov ecx, dword [esi + 4]
mov edi, ecx
neg edi
and edi, 7
je 0x5f8166
mov edx, dword [esi]
mov eax, dword [edi*4 + 0x669d80]
shr edx, cl
and eax, edx
lea eax, [edi + ecx]
mov dword [esi + 4], eax
je 0x5f8163
mov edi, dword [ebp + 0x10]
mov edx, 0xfffffff2
mov dword [ebp - 8], edx
jmp 0x5f7ea3
mov edx, dword [ebp - 8]
test byte [ebx + 0x230], 4
je 0x5f817d
mov edi, dword [ebp + 0x10]
mov dword [ebx], 0xc
jmp 0x5f7ea3
cmp dword [ebx + 0xb8], 0
jne 0x5f8194
mov edi, dword [ebp + 0x10]
mov dword [ebx], 0xe
jmp 0x5f7ea3
push ebx
call fcn.005f7d20
mov edi, dword [ebp + 0x10]
add esp, 4
test byte [ebx + 0x230], 2
je case.0x5f7f36.17
mov edx, dword [ebp - 8]
mov dword [ebx], 0xb
jmp 0x5f7ea3
mov dword [ebx + 4], 0
lea eax, [ebx + 0x338]
mov dword [ebx + 0x27c], 0
mov dword [ebx + 0x314], eax
mov dword [ebx + 0x278], 0
mov dword [ebx + 0x270], 0
mov dword [ebx + 0x274], 0
mov dword [ebx], 0x12
mov eax, dword [ebx + 4]
cmp eax, 3
jl 0x5f820e
mov edx, dword [ebp - 8]
mov dword [ebx], 5
jmp 0x5f7ea3
add eax, 0x33
lea eax, [ebx + eax*4]
push eax
push esi
push ebx
call fcn.005fa1e0
mov edx, eax
add esp, 0xc
mov dword [ebp - 8], edx
mov ecx, 0x20
cmp edx, 1
jne 0x5f7ead
mov eax, dword [ebx + 4]
inc dword [ebx + eax*4 + 0xcc]
mov eax, dword [ebx + 4]
cmp dword [ebx + eax*4 + 0xcc], 2
jae 0x5f8252
inc eax
mov dword [ebx + 4], eax
jmp case.default.0x5f7f36
mov dword [ebx], 0x13
mov eax, dword [ebx + 4]
push ebx
push 0
mov ecx, dword [ebx + eax*4 + 0xcc]
imul eax, eax, 0x9e0
add ecx, 2
add eax, dword [ebx + 0xa8]
push eax
push ecx
push ecx
call fcn.005fb210
mov edx, eax
add esp, 0x14
mov dword [ebp - 8], edx
mov ecx, 0x20
cmp edx, 1
jne 0x5f7ead
mov dword [ebx], 0x14
imul eax, dword [ebx + 4], 0x630
push ebx
push 0
add eax, dword [ebx + 0xac]
push eax
push 0x1a
push 0x1a
call fcn.005fb210
mov edx, eax
add esp, 0x14
mov dword [ebp - 8], edx
mov ecx, 0x20
cmp edx, 1
jne 0x5f7ead
mov dword [ebx], 0x15
mov eax, dword [ebx + 4]
imul ecx, eax, 0x630
add eax, 0x30
lea eax, [ebx + eax*4]
add ecx, dword [ebx + 0xac]
cmp dword [ebx + 0x22c], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
jne 0x5f83b6
mov edi, dword [esi + 4]
mov eax, 0x20
sub eax, edi
cmp eax, 0xf
jae 0x5f8337
mov edx, dword [esi + 0xc]
test edx, edx
je 0x5f8387
mov ecx, dword [esi + 8]
dec edx
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, [ecx + 1]
mov dword [esi + 8], eax
mov eax, 0x20
sub eax, edi
mov dword [esi + 0xc], edx
cmp eax, 0xf
jb 0x5f8308
mov edx, dword [esi]
mov ecx, edi
shr edx, cl
and edx, dword [0x669dbc]
mov ecx, dword [ebp - 0x18]
movzx eax, dl
lea eax, [ecx + eax*4]
mov dword [ebp - 0x18], eax
mov al, byte [eax]
cmp al, 8
jbe 0x5f83a5
movzx eax, al
add edi, 8
mov dword [esi + 4], edi
shr edx, 8
mov ecx, dword [eax*4 + 0x669d60]
and ecx, edx
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + 2]
add ecx, eax
mov al, byte [edx + ecx*4]
movzx eax, al
add eax, edi
mov dword [esi + 4], eax
lea edx, [edx + ecx*4]
movzx ecx, word [edx + 2]
jmp 0x5f83bc
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0xc]
push eax
push esi
push ecx
call fcn.005fc1e0
add esp, 0xc
test eax, eax
je 0x5f847c
mov ecx, dword [ebp - 0xc]
jmp 0x5f83bf
mov edx, dword [ebp - 0x18]
movzx eax, al
add eax, edi
mov dword [esi + 4], eax
movzx ecx, word [edx + 2]
jmp 0x5f83bc
mov ecx, dword [ebx + 0xbc]
mov dword [ebp - 0xc], ecx
movzx edx, byte [ecx*4 + 0x669e0a]
movzx eax, word [ecx*4 + 0x669e08]
mov ecx, 0x20
mov edi, dword [esi + 4]
mov dword [ebp - 0x20], eax
mov eax, ecx
sub eax, edi
mov dword [ebp - 0x18], edx
cmp eax, edx
jae 0x5f841c
mov edx, dword [esi + 0xc]
test edx, edx
je 0x5f8459
mov ecx, dword [esi + 8]
dec edx
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, [ecx + 1]
mov dword [esi + 8], eax
mov ecx, 0x20
mov eax, ecx
mov dword [esi + 0xc], edx
sub eax, edi
cmp eax, dword [ebp - 0x18]
jb 0x5f83e8
mov edx, dword [ebp - 0x18]
mov eax, dword [esi]
mov ecx, edi
shr eax, cl
mov ecx, dword [edx*4 + 0x669d80]
and ecx, eax
lea eax, [edi + edx]
mov edx, dword [ebp - 8]
mov edi, dword [ebp + 0x10]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x20]
add eax, ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
inc dword [ebx + 4]
mov dword [ebx + 0x22c], 0
mov dword [ebx], 0x12
jmp 0x5f7ea3
mov eax, dword [ebp - 0xc]
mov edx, 2
mov edi, dword [ebp + 0x10]
mov dword [ebx + 0xbc], eax
mov dword [ebx + 0x22c], 1
mov dword [ebp - 8], edx
jmp case.default.0x5f7f36
mov ecx, 0x20
mov edi, dword [ebp + 0x10]
mov edx, 2
mov dword [ebp - 8], edx
jmp case.default.0x5f7f36
push ebx
push dword [ebp + 0x1c]
push dword [ebp - 0x14]
push dword [ebp + 0x14]
call fcn.005f8f50
mov edx, eax
add esp, 0x10
mov dword [ebp - 8], edx
mov ecx, 0x20
cmp edx, 1
jne 0x5f7ead
mov dword [ebx], 0xe
jmp case.default.0x5f7f36
cmp dword [ebx + 0xb8], 0
jle 0x5f8529
nop word [eax + eax]
mov edi, dword [esi + 4]
mov eax, ecx
sub eax, edi
cmp eax, 8
jae 0x5f8511
mov edx, dword [esi + 0xc]
nop
test edx, edx
je 0x5f8481
mov ecx, dword [esi + 8]
dec edx
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, [ecx + 1]
mov dword [esi + 8], eax
mov ecx, 0x20
mov eax, ecx
mov dword [esi + 0xc], edx
sub eax, edi
cmp eax, 8
jb 0x5f84e0
lea eax, [edi + 8]
mov dword [esi + 4], eax
dec dword [ebx + 0xb8]
cmp dword [ebx + 0xb8], 0
jg 0x5f84d0
mov edi, dword [ebp + 0x10]
mov edx, dword [ebp - 8]
mov dword [ebx], 0xe
jmp case.default.0x5f7f36
mov edi, dword [esi + 4]
mov eax, ecx
sub eax, edi
cmp eax, 6
jae 0x5f857b
mov edx, dword [esi + 0xc]
test edx, edx
je 0x5f8481
mov ecx, dword [esi + 8]
dec edx
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, [ecx + 1]
mov dword [esi + 8], eax
mov ecx, 0x20
mov eax, ecx
mov dword [esi + 0xc], edx
sub eax, edi
cmp eax, 6
jb 0x5f8546
mov edx, dword [esi]
lea eax, [edi + 6]
mov ecx, edi
shr edx, cl
and edx, dword [0x669d98]
mov dword [esi + 4], eax
mov ecx, edx
and ecx, dword [0x669d88]
mov eax, dword [ebx + 0x18]
shr edx, 2
shl edx, cl
mov dword [ebx + 0xf0], ecx
mov dword [ebx + 0xf4], edx
push dword [ebx + 0xcc]
push dword [ebx + 0x20]
call eax
add esp, 8
mov dword [ebx + 0x244], eax
test eax, eax
jne 0x5f85d1
mov edi, dword [ebp + 0x10]
mov edx, 0xffffffeb
mov dword [ebp - 8], edx
jmp 0x5f7ea3
mov dword [ebx + 4], 0
mov dword [ebx], 6
mov eax, dword [ebx + 4]
mov dword [ebp - 0x10], eax
cmp eax, dword [ebx + 0xcc]
jge 0x5f8663
nop dword [eax]
mov edi, dword [esi + 4]
mov ecx, 0x20
mov eax, ecx
sub eax, edi
cmp eax, 2
jae 0x5f8639
mov edx, dword [esi + 0xc]
test edx, edx
je 0x5f8798
mov ecx, dword [esi + 8]
dec edx
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, [ecx + 1]
mov dword [esi + 8], eax
mov ecx, 0x20
mov eax, ecx
mov dword [esi + 0xc], edx
sub eax, edi
cmp eax, 2
jb 0x5f8604
mov edx, dword [esi]
lea eax, [edi + 2]
mov ecx, edi
shr edx, cl
and edx, dword [0x669d88]
mov ecx, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov eax, dword [ebx + 0x244]
mov byte [ecx + eax], dl
inc ecx
mov dword [ebp - 0x10], ecx
cmp ecx, dword [ebx + 0xcc]
jl 0x5f85f0
mov edi, dword [ebp + 0x10]
mov dword [ebx], 0x16
push ebx
lea eax, [ebx + 0x240]
push eax
lea eax, [ebx + 0x23c]
push eax
mov eax, dword [ebx + 0xcc]
shl eax, 6
push eax
call fcn.005f9310
mov edx, eax
add esp, 0x10
mov dword [ebp - 8], edx
mov ecx, 0x20
cmp edx, 1
jne 0x5f7ead
xorps xmm0, xmm0
xor edi, edi
movups xmmword [ebx + 0x250], xmm0
mov dword [ebp - 0x10], edi
movups xmmword [ebx + 0x260], xmm0
cmp dword [ebx + 0xcc], edi
jbe 0x5f874e
mov eax, dword [ebp - 0x24]
mov ecx, edi
shl ecx, 6
xor esi, esi
mov dword [ebp - 0x18], 0x10
mov eax, dword [eax]
mov bl, byte [eax + ecx]
lea edi, [eax + 2]
add edi, ecx
nop dword [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 dword [ebp - 0x18], 1
jne 0x5f86e0
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 0x10]
test esi, esi
jne 0x5f873b
mov eax, edi
mov ecx, edi
shr eax, 5
and ecx, 0x1f
lea edx, [ebx + eax*4]
mov eax, dword [edx + 0x250]
bts eax, ecx
mov dword [edx + 0x250], eax
inc edi
mov dword [ebp - 0x10], edi
cmp edi, dword [ebx + 0xcc]
jb 0x5f86c2
lea esi, [ebx + 8]
mov dword [ebx], 0x17
mov edi, dword [ebx + 0xf0]
mov eax, 0x18
mov edx, dword [ebx + 0xf4]
inc edi
mov ecx, edi
mov dword [ebp - 0x1c], edi
shl eax, cl
lea edi, [edx + 0x10]
add edi, eax
test byte [ebx + 0x230], 0x20
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
je 0x5f881b
mov edi, edx
cmp edi, 0x7ffffffc
jb 0x5f87ae
mov dword [ebp - 0x10], select
jmp 0x5f8809
mov eax, dword [ebp - 0x10]
mov edx, 2
mov edi, dword [ebp + 0x10]
mov dword [ebx + 4], eax
mov dword [ebp - 8], edx
jmp case.default.0x5f7f36
mov ecx, dword [ebx + 0xf0]
mov edx, 1
shl edx, cl
xor eax, eax
dec edx
mov dword [ebp - 0x20], edx
mov edx, 0x7ffffffc
sub edx, edi
shr edx, cl
add edx, 4
mov ecx, edx
shr ecx, 1
je 0x5f87d8
inc eax
shr ecx, 1
jne 0x5f87d3
lea ecx, [eax - 1]
shr edx, cl
lea eax, [eax*2 - 4]
and edx, 1
or edx, eax
jne 0x5f87f3
lea edx, [edi + 0x10]
mov dword [ebp - 0x10], edx
jmp 0x5f8809
mov ecx, dword [ebx + 0xf0]
lea eax, [edx - 1]
shl eax, cl
or eax, dword [ebp - 0x20]
add eax, 0x11
add eax, edi
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x1c]
mov eax, 0x3e
shl eax, cl
add eax, 0x10
add eax, edi
mov dword [ebp - 0x18], eax
push ebx
lea eax, [ebx + 0xfc]
push eax
mov eax, dword [ebx + 0xd4]
lea ecx, [ebx + 0xf8]
push ecx
shl eax, 2
push eax
call fcn.005f9310
mov edi, dword [ebp + 0x10]
mov edx, eax
add esp, 0x10
mov dword [ebp - 8], edx
mov ecx, 0x20
cmp edx, 1
jne 0x5f7ead
push dword [ebx + 0x23c]
lea eax, [ebx + 0x78]
push 0x100
push 0x100
push eax
push ebx
call fcn.005fdd00
push dword [ebx + 0xd0]
lea ecx, [ebx + 0x88]
mov edi, eax
push 0x2c0
push 0x2c0
push ecx
push ebx
and edi, 1
call fcn.005fdd00
push dword [ebx + 0xf8]
and edi, eax
lea eax, [ebx + 0x98]
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push eax
push ebx
call fcn.005fdd00
add esp, 0x3c
test edi, eax
je 0x5f8dbd
mov dword [ebx + 4], 0
mov dword [ebx], 0x18
mov eax, dword [ebx + 4]
sub eax, 0
je 0x5f88e5
sub eax, 1
je 0x5f88de
sub eax, 1
jne 0x5f8dcf
mov edi, 0x98
jmp 0x5f88ea
mov edi, 0x88
jmp 0x5f88ea
mov edi, 0x78
cmp dword [ebx + 0x270], 1
je 0x5f8915
mov eax, dword [edi + ebx + 4]
xor ecx, ecx
mov dword [ebx + 0x970], eax
mov dword [ebx + 0x96c], 0
mov dword [ebx + 0x270], 1
jmp 0x5f891b
mov ecx, dword [ebx + 0x96c]
movzx eax, word [edi + ebx + 0xc]
cmp ecx, eax
jge 0x5f898f
mov ecx, dword [ebx + 0x970]
nop word [eax + eax]
push ebx
lea eax, [ebp - 0x28]
push eax
movzx eax, word [edi + ebx + 0xa]
push ecx
push eax
movzx eax, word [edi + ebx + 8]
push eax
call fcn.005fb210
mov edx, eax
add esp, 0x14
mov dword [ebp - 8], edx
cmp edx, 1
jne 0x5f80e4
mov ecx, dword [edi + ebx]
mov edx, dword [ebx + 0x96c]
mov eax, dword [ebx + 0x970]
mov dword [ecx + edx*4], eax
mov eax, dword [ebp - 0x28]
inc dword [ebx + 0x96c]
shl eax, 2
add dword [ebx + 0x970], eax
movzx eax, word [edi + ebx + 0xc]
mov ecx, dword [ebx + 0x970]
cmp dword [ebx + 0x96c], eax
jl 0x5f8930
mov edi, dword [ebp + 0x10]
mov edx, 1
mov dword [ebx + 0x270], 0
inc dword [ebx + 4]
cmp dword [ebx + 4], 3
mov dword [ebp - 8], edx
lea ecx, [edx + 0x1f]
jl case.default.0x5f7f36
mov dword [ebx], 0x19
mov edi, dword [ebx + 0xdc]
mov edx, edi
mov eax, edi
shl edx, 6
add edx, dword [ebx + 0x240]
mov ecx, edi
shr eax, 5
and ecx, 0x1f
mov dword [ebx + 0x70], edx
push ebx
mov eax, dword [ebx + eax*4 + 0x250]
shr eax, cl
and eax, 1
mov dword [ebx + 0xb0], eax
movzx ecx, byte [edx]
mov eax, dword [ebx + 0x78]
mov eax, dword [eax + ecx*4]
mov dword [ebx + 0x100], eax
mov eax, dword [ebx + 0x244]
movzx eax, byte [eax + edi]
and eax, 3
shl eax, 9
add eax, 0x669e70
mov dword [ebx + 0x6c], eax
mov eax, dword [ebx + 0xfc]
mov dword [ebx + 0x74], eax
mov eax, dword [ebx + 0x88]
mov eax, dword [eax]
mov dword [ebx + 0x68], eax
call fcn.005f8ec0
add esp, 4
test eax, eax
jne 0x5f8a42
mov edi, dword [ebp + 0x10]
mov edx, 0xffffffe5
mov dword [ebp - 8], edx
jmp 0x5f7ea3
mov ecx, dword [ebx + 0xf4]
lea eax, [ebx + 0x270]
mov edx, dword [ebx + 0xf0]
mov edi, 1
mov dword [ebp - 0x10], ecx
movzx ecx, word [ebx + 0xa2]
mov dword [ebp - 0x20], ecx
mov ecx, edx
shl edi, cl
xor ecx, ecx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], edi
lea edx, [ecx + 0x10]
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x10], ecx
jbe 0x5f8ac3
mov edx, 0xfffffff1
lea ecx, [eax + 0x10]
sub edx, eax
lea esi, [eax + 0x260]
mov eax, dword [ebp - 0x10]
mov edi, eax
mov dword [ebp - 0x2c], edx
mov ebx, edx
lea edx, [eax + 0x10]
mov byte [ecx], 0
lea eax, [ebx + ecx]
mov dword [esi], eax
lea esi, [esi + 4]
lea ecx, [ecx + 1]
sub edi, 1
jne 0x5f8aa4
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
lea esi, [ebx + 8]
cmp edx, dword [ebp - 0x20]
jae 0x5f8b26
mov ebx, dword [ebp - 0x30]
nop dword [eax + eax]
mov esi, dword [ebp - 0x10]
lea eax, [ecx + 2]
mov ecx, ebx
inc esi
shl eax, cl
mov ecx, dword [ebp - 0x34]
sub eax, 4
shl eax, cl
xor ecx, ecx
add esi, eax
test edi, edi
je 0x5f8b10
mov eax, dword [ebp - 0x1c]
lea edi, [eax + 0x220]
lea edi, [edi + edx*4]
mov byte [edx + eax], bl
lea edi, [edi + 4]
lea eax, [esi + ecx]
inc edx
inc ecx
mov dword [edi - 4], eax
mov eax, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 8]
jb 0x5f8af7
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
add ebx, ecx
xor ecx, 1
mov dword [ebp - 0x18], ecx
cmp edx, dword [ebp - 0x20]
jb 0x5f8ad0
mov esi, dword [ebp - 0x38]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebx], 7
push ebx
call fcn.005fa450
mov edx, eax
add esp, 4
mov dword [ebp - 8], edx
mov ecx, 0x20
cmp edx, 2
jne case.default.0x5f7f36
push ebx
call fcn.005fc2a0
mov edx, eax
add esp, 4
mov dword [ebp - 8], edx
jmp 0x5f7ea3
push 0
push dword [ebp + 0x1c]
push dword [ebp - 0x14]
push dword [ebp + 0x14]
push ebx
call fcn.005fd030
mov edx, eax
add esp, 0x14
mov dword [ebp - 8], edx
mov ecx, 0x20
cmp edx, 1
jne 0x5f7ead
push ebx
call fcn.005fd000
mov ecx, dword [ebx + 0x234]
mov eax, 1
shl eax, cl
add esp, 4
cmp dword [ebx + 0x40], eax
jne 0x5f8ba6
mov eax, dword [ebx + 0x38]
mov dword [ebx + 0x3c], eax
mov eax, dword [ebx]
cmp eax, 0xf
jne 0x5f8bcb
cmp dword [ebx + 0xb8], 0
mov eax, 0xe
mov edx, dword [ebp - 8]
mov ecx, 7
cmovne eax, ecx
mov dword [ebx], eax
jmp 0x5f7ea3
cmp eax, 0x10
jne 0x5f8bdf
mov edx, dword [ebp - 8]
mov eax, 0xa
mov dword [ebx], eax
jmp 0x5f7ea3
cmp dword [ebx + 4], 0
jne 0x5f8c03
cmp dword [ebx + 0xb8], 0
mov eax, 0xe
mov edx, dword [ebp - 8]
mov ecx, 9
cmovne eax, ecx
mov dword [ebx], eax
jmp 0x5f7ea3
mov edx, dword [ebp - 8]
mov eax, 8
mov dword [ebx], eax
jmp 0x5f7ea3
cmp dword [ebx + 0xb8], 0
jge 0x5f8c28
mov edx, 0xfffffff6
mov dword [ebp - 8], edx
jmp case.default.0x5f7f36
push ebx
call fcn.005fde20
add esp, 4
test byte [ebx + 0x230], 1
jne 0x5f8c48
mov edx, dword [ebp - 8]
mov dword [ebx], 3
jmp 0x5f7ea3
mov eax, dword [esi + 4]
mov edi, eax
neg edi
mov dword [ebp - 0x18], eax
and edi, 7
je 0x5f8c83
mov edx, dword [esi]
mov ecx, eax
mov eax, dword [edi*4 + 0x669d80]
shr edx, cl
and eax, edx
mov eax, ecx
lea eax, [edi + eax]
mov dword [ebp - 0x18], eax
mov dword [esi + 4], eax
je 0x5f8c83
mov edi, dword [ebp + 0x10]
mov edx, 0xfffffff1
mov dword [ebp - 8], edx
jmp 0x5f7ea3
cmp dword [ebx + 0x30], 0
jne 0x5f8ccd
mov edi, dword [esi + 0xc]
mov ecx, 0x20
sub ecx, eax
shr ecx, 3
sub dword [esi + 8], ecx
add edi, ecx
mov dword [esi + 0xc], edi
lea edx, [ecx*8]
cmp edx, 0x20
jne 0x5f8cb2
mov dword [esi], 0
jmp 0x5f8cb6
mov ecx, edx
shl dword [esi], cl
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov edi, dword [ebp + 0x10]
mov eax, dword [esi + 8]
mov dword [edi], eax
jmp 0x5f8cd0
mov edi, dword [ebp + 0x10]
mov dword [ebx], 0x1a
cmp dword [ebx + 0x60], 0
je 0x5f8de1
push 1
push dword [ebp + 0x1c]
push dword [ebp - 0x14]
push dword [ebp + 0x14]
push ebx
call fcn.005fd030
mov edx, eax
add esp, 0x14
mov dword [ebp - 8], edx
cmp edx, 1
je 0x5f8de4
jmp 0x5f7ea3
mov eax, dword [esi + 8]
mov edx, dword [ebp + 0xc]
mov dword [edi], eax
mov eax, dword [esi + 0xc]
mov dword [edx], eax
test eax, eax
je 0x5f8da9
nop dword [eax]
mov eax, dword [edi]
mov ecx, dword [ebx + 0x30]
mov al, byte [eax]
mov byte [ecx + ebx + 0x28], al
inc dword [ebx + 0x30]
inc dword [edi]
add dword [edx], 0xffffffff
jne 0x5f8d20
mov eax, dword [ebp - 8]
push eax
push ebx
call fcn.005fcfc0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x30], 0
je 0x5f8d6a
mov eax, dword [ebp - 8]
push eax
push ebx
mov dword [ebx + 0x30], 0
call fcn.005fcfc0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 4]
sub ecx, edx
shr ecx, 3
mov dword [ebp + 0x1c], ecx
mov edi, dword [ebp + 0x1c]
add edi, dword [esi + 0xc]
mov eax, dword [ebp + 0x1c]
sub dword [esi + 8], eax
shl ecx, 3
mov dword [esi + 0xc], edi
cmp ecx, 0x20
jne 0x5f8d94
mov dword [esi], 0
jmp 0x5f8d96
shl dword [esi], cl
lea eax, [edx + ecx]
mov ecx, dword [ebp + 0x10]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov eax, dword [esi + 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
push eax
push ebx
call fcn.005fcfc0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffea
push ebx
call fcn.005fcfc0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffe1
push ebx
call fcn.005fcfc0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 8]
push edx
push ebx
call fcn.005fcfc0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret