Function at 0x422130
Capabilities:
Set registry value

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
test esi, esi
push edi
je case.default.0x4220b0
mov eax, dword [esi + 0x1c]
test eax, eax
je case.default.0x4220b0
cmp dword [esi], 0
je case.default.0x4220b0
mov edx, dword [esp + 0x18]
xor ebx, ebx
cmp edx, 4
mov edi, 0xfffffffb
setne bl
dec ebx
mov ebp, 5
and ebx, 0xfffffffb
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax]
cmp ecx, 0xd
ja case.default.0x4220b0
jmp dword [ecx*4 + 0x422458]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x422327
dec ecx
xor edx, edx
mov dword [esi + 4], ecx
mov ecx, dword [esi + 8]
inc ecx
mov edi, ebx
mov dword [esi + 8], ecx
mov ecx, dword [esi]
mov dl, byte [ecx]
mov dword [eax + 4], edx
mov eax, dword [esi + 0x1c]
mov edx, dword [esi]
mov ecx, dword [eax + 4]
and ecx, 0xf
inc edx
cmp cl, 8
mov dword [esi], edx
je 0x422100
mov dword [eax], 0xd
mov edx, dword [esi + 0x1c]
mov dword [esi + 0x18], str.unknown_compression_method
mov dword [edx + 4], ebp
jmp 0x4220a2
mov ecx, dword [eax + 4]
mov edx, dword [eax + 0x10]
shr ecx, 4
add ecx, 8
cmp ecx, edx
jbe 0x422128
mov dword [eax], 0xd
mov edx, dword [esi + 0x1c]
mov dword [esi + 0x18], str.invalid_window_size
mov dword [edx + 4], ebp
jmp 0x4220a2
mov dword [eax], 1
mov eax, dword [esi + 4]
test eax, eax
je 0x422327
dec eax
xor ecx, ecx
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
inc eax
mov edi, ebx
mov ebx, dword [esi + 0x1c]
mov dword [esi + 8], eax
mov eax, dword [esi]
xor edx, edx
mov ebp, 0x1f
mov cl, byte [eax]
inc eax
mov dword [esi], eax
mov eax, dword [ebx + 4]
shl eax, 8
add eax, ecx
div ebp
test edx, edx
je 0x422188
mov dword [ebx], 0xd
mov eax, dword [esi + 0x1c]
mov ebx, dword [esp + 0x18]
mov ebp, 5
mov dword [esi + 0x18], str.incorrect_header_check
mov dword [eax + 4], ebp
jmp 0x4220a2
test cl, 0x20
jne 0x42230e
mov dword [ebx], 7
mov ebx, dword [esp + 0x18]
mov ebp, 5
jmp 0x4220a2
mov ecx, dword [eax + 0x14]
push edi
push esi
push ecx
call fcn.004225b0
mov edi, eax
add esp, 0xc
cmp edi, 0xfffffffd
jne 0x4221d2
mov edx, dword [esi + 0x1c]
mov dword [edx], 0xd
mov eax, dword [esi + 0x1c]
mov dword [eax + 4], 0
jmp 0x4220a2
test edi, edi
jne 0x4221d8
mov edi, ebx
cmp edi, 1
jne 0x422327
mov eax, dword [esi + 0x1c]
mov edi, ebx
mov edx, dword [eax + 0x14]
lea ecx, [eax + 4]
push ecx
push esi
push edx
call fcn.00422490
mov eax, dword [esi + 0x1c]
add esp, 0xc
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x42220c
mov dword [eax], 0xc
jmp 0x4220a2
mov dword [eax], 8
mov eax, dword [esi + 4]
test eax, eax
je 0x422327
dec eax
mov edx, dword [esi + 0x1c]
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
inc eax
xor ecx, ecx
mov dword [esi + 8], eax
mov eax, dword [esi]
mov edi, ebx
mov cl, byte [eax]
shl ecx, 0x18
mov dword [edx + 8], ecx
mov eax, dword [esi]
inc eax
mov dword [esi], eax
mov eax, dword [esi + 0x1c]
mov dword [eax], 9
mov eax, dword [esi + 4]
test eax, eax
je 0x422327
mov edx, dword [esi + 8]
mov ecx, dword [esi]
dec eax
inc edx
mov dword [esi + 8], edx
mov dword [esi + 4], eax
mov eax, dword [esi + 0x1c]
xor edx, edx
mov dl, byte [ecx]
mov edi, ebx
mov ecx, dword [eax + 8]
shl edx, 0x10
add ecx, edx
mov dword [eax + 8], ecx
mov eax, dword [esi]
inc eax
mov dword [esi], eax
mov eax, dword [esi + 0x1c]
mov dword [eax], 0xa
mov eax, dword [esi + 4]
test eax, eax
je 0x422327
mov edx, dword [esi + 8]
mov ecx, dword [esi]
dec eax
inc edx
mov dword [esi + 8], edx
mov dword [esi + 4], eax
mov eax, dword [esi + 0x1c]
xor edx, edx
mov dl, byte [ecx]
mov edi, ebx
mov ecx, dword [eax + 8]
shl edx, 8
add ecx, edx
mov dword [eax + 8], ecx
mov eax, dword [esi]
inc eax
mov dword [esi], eax
mov eax, dword [esi + 0x1c]
mov dword [eax], 0xb
mov eax, dword [esi + 4]
test eax, eax
je 0x422327
mov edx, dword [esi + 8]
mov ecx, dword [esi]
dec eax
inc edx
mov dword [esi + 4], eax
mov eax, dword [esi + 0x1c]
mov dword [esi + 8], edx
xor edx, edx
mov dl, byte [ecx]
mov ecx, dword [eax + 8]
add ecx, edx
mov edi, ebx
mov dword [eax + 8], ecx
mov eax, dword [esi]
inc eax
mov dword [esi], eax
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
cmp ecx, edx
je 0x42243a
mov dword [eax], 0xd
mov edx, dword [esi + 0x1c]
mov dword [esi + 0x18], str.incorrect_data_check
mov dword [edx + 4], ebp
jmp 0x4220a2
mov eax, dword [esi + 0x1c]
mov ebx, dword [esp + 0x18]
mov ebp, 5
mov dword [eax], 2
mov eax, dword [esi + 4]
test eax, eax
jne 0x42232e
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov edx, dword [esi + 8]
mov ecx, dword [esi]
dec eax
inc edx
mov dword [esi + 8], edx
xor edx, edx
mov dword [esi + 4], eax
mov dl, byte [ecx]
mov eax, dword [esi + 0x1c]
mov edi, ebx
shl edx, 0x18
mov dword [eax + 8], edx
mov eax, dword [esi]
mov ecx, dword [esi + 0x1c]
inc eax
mov dword [esi], eax
mov dword [ecx], 3
mov eax, dword [esi + 4]
test eax, eax
jne 0x422366
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov edx, dword [esi]
dec eax
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
inc eax
xor ecx, ecx
mov dword [esi + 8], eax
mov eax, dword [esi + 0x1c]
mov cl, byte [edx]
mov edi, ebx
mov edx, dword [eax + 8]
shl ecx, 0x10
add edx, ecx
mov dword [eax + 8], edx
mov eax, dword [esi]
mov edx, dword [esi + 0x1c]
inc eax
mov dword [esi], eax
mov dword [edx], 4
mov eax, dword [esi + 4]
test eax, eax
jne 0x4223a3
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esi]
dec eax
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
inc eax
xor edx, edx
mov dword [esi + 8], eax
mov eax, dword [esi + 0x1c]
mov dl, byte [ecx]
mov edi, ebx
mov ecx, dword [eax + 8]
shl edx, 8
add ecx, edx
mov dword [eax + 8], ecx
mov eax, dword [esi]
inc eax
mov dword [esi], eax
mov eax, dword [esi + 0x1c]
mov dword [eax], ebp
mov eax, dword [esi + 4]
test eax, eax
jne 0x4223dc
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov edx, dword [esi + 8]
mov ecx, dword [esi]
dec eax
inc edx
mov dword [esi + 4], eax
mov eax, dword [esi + 0x1c]
mov dword [esi + 8], edx
xor edx, edx
mov dl, byte [ecx]
mov ecx, dword [eax + 8]
add ecx, edx
pop edi
mov dword [eax + 8], ecx
mov eax, dword [esi]
inc eax
mov dword [esi], eax
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + 8]
mov dword [esi + 0x30], ecx
pop esi
mov dword [eax], 6
pop ebp
mov eax, 2
pop ebx
ret
mov edx, dword [esi + 0x1c]
mov dword [edx], 0xd
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x18], str.need_dictionary
mov dword [eax + 4], 0
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
ret
mov ecx, dword [esi + 0x1c]
mov dword [ecx], 0xc
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
ret