Function at 0x1000b910
Capabilities:
Decompress data using quicklz
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x450
xor ecx, ecx
mov word [esp + 2], cx
push ebx
mov word [esp + 4], cx
push esi
lea eax, [esp + 0x28]
push edi
lea edx, [esp + 0x28]
push ebp
mov dword [esp + 0x28], ecx
push eax
push edx
push ecx
push 0xf003f
push ecx
push ecx
push ecx
push str.SoftwarePocketSoftRTPatchPatchInfo
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x1000b961
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x450
ret
lea eax, [esp + 0x30]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0
mov edx, dword [0x1002f460]
push 0xf003f
push 0
push 0
push 0
push 0x1002be20
push edx
call fcn.10018be0
mov ecx, dword [esp + 0x50]
add esp, 8
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x1000b9ac
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x450
ret
xor ebx, ebx
cmp dword [0x1002f45c], ebx
je 0x1000ba9b
mov esi, 7
push ebx
mov dword [esp + 0x20], ebx
push ebx
lea eax, [esp + 0x1c]
push ebx
lea ecx, [esp + 0x40]
push ebx
mov edx, dword [esp + 0x30]
push eax
push ecx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [esp + 0x2c], esi
push ebx
mov byte [esp + 0x50], bl
push edx
mov byte [esp + 0x7c], bl
call ebp
test eax, eax
jne 0x1000ba9b
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x34]
mov edx, dword [esp + 0x20]
push eax
push 0xf003f
push ebx
push ecx
push edx
call edi
test eax, eax
jne 0x1000ba6d
lea eax, [esp + 0x14]
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov dword [esp + 0x1c], 0x32
push edx
push ebx
push 0x1002fbbc
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0x1002be20
mov ecx, dword [0x1002f45c]
push ecx
call fcn.10018be0
lea ecx, [esp + 0x64]
add esp, 8
push eax
push ecx
call fcn.10027fe0
add esp, 8
test eax, eax
je 0x1000ba9b
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x14]
push ebx
lea ecx, [esp + 0x38]
push ebx
inc dword [esp + 0x24]
push ebx
mov edx, dword [esp + 0x28]
push ebx
mov dword [esp + 0x24], esi
push eax
mov eax, dword [esp + 0x34]
push ecx
mov byte [esp + 0x4c], bl
push edx
push eax
call ebp
test eax, eax
je 0x1000b9f9
cmp byte [esp + 0x34], 0
je 0x1000bad3
lea eax, [esp + 0x14]
lea ecx, [esp + 0x28]
mov edx, dword [esp + 0x18]
push eax
mov dword [esp + 0x18], 4
push ecx
push 0
push 0
push 0x1002fbc4
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x1000bb8f
xor ebx, ebx
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x28]
push ecx
mov eax, dword [esp + 0x28]
push edx
mov dword [esp + 0x28], ebx
push ebx
mov byte [esp + 0x44], bl
push 0x1002fbd0
mov dword [esp + 0x28], 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x34]
push 0xa
mov edx, dword [esp + 0x20]
push ecx
push edx
call fcn.100258be
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x24]
add esp, 0xc
push ecx
push edx
push ebx
push 0xf003f
mov eax, dword [esp + 0x30]
push ebx
push ebx
push ebx
lea ebx, [esp + 0x50]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x1000bb66
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x450
ret
lea eax, [esp + 0x1c]
push 4
mov ecx, dword [esp + 0x24]
push eax
push 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc dword [esp + 0x28]
push 0
push str.NextIndex
push ecx
call esi
mov dword [esp + 0x24], eax
dec dword [esp + 0x1c]
lea eax, [esp + 0x4c]
inc dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ax, word [esp + 0x54]
shl ax, 0xb
mov cx, ax
xor cx, word [esp + 0x10]
and cx, 0x7ff
xor cx, ax
mov ax, word [esp + 0x56]
shl ax, 5
xor ax, cx
and ax, 0x7e0
mov word [esp + 0x10], cx
xor word [esp + 0x10], ax
mov ax, word [esp + 0x58]
shr ax, 1
xor ax, word [esp + 0x10]
and ax, 0x1f
xor word [esp + 0x10], ax
mov ax, word [esp + 0x52]
xor ax, word [esp + 0x12]
and ax, 0x1f
xor word [esp + 0x12], ax
mov ax, word [esp + 0x4e]
shl ax, 5
xor ax, word [esp + 0x12]
and ax, 0x1e0
mov cx, word [esp + 0x4c]
sub cx, 0x3c
shl cx, 9
xor word [esp + 0x12], ax
push 4
mov ax, word [esp + 0x50]
lea edx, [esp + 0x2c]
shl ax, 9
push edx
xor ax, word [esp + 0x1a]
push 4
and ax, 0x1ff
push 0
xor ax, cx
push str.ApplyCount
mov word [esp + 0x26], ax
mov ecx, dword [esp + 0x2c]
push ecx
call esi
lea ecx, [esp + 0x24]
push 4
mov edx, dword [esp + 0x1c]
push ecx
mov dword [esp + 0x2c], 0
push 4
push 0
push 0x1002fbf4
push edx
call esi
push 0x1002be20
push 0x1002b040
call fcn.10018be0
add esp, 8
mov edi, 0x1002be20
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, dword [esp + 0x18]
push ecx
push 0x1002be20
push 1
push 0
push str.PatchName
push edx
call esi
lea ecx, [esp + 0x12]
push 2
mov edx, dword [esp + 0x1c]
push ecx
push 3
push 0
push str.LastDate
push edx
call esi
lea ecx, [esp + 0x10]
push 2
mov edx, dword [esp + 0x1c]
push ecx
push 3
push 0
push str.LastTime
push edx
call esi
lea ecx, [esp + 0x464]
push 4
mov edx, dword [esp + 0x1c]
push ecx
push 4
push 0
push str.LastReturnCode
push edx
call esi
mov ecx, 0x1002b950
test ecx, ecx
je 0x1000bd2e
push 0x1002be20
mov edi, 0x1002be20
push ecx
call fcn.10018be0
add esp, 8
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, dword [esp + 0x18]
push ecx
push 0x1002be20
push 1
push 0
push str.LastFileName
push eax
call esi
mov eax, dword [0x1002f45c]
test eax, eax
je 0x1000bd6c
push 0x1002be20
mov edi, 0x1002be20
push eax
call fcn.10018be0
add esp, 8
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, dword [esp + 0x18]
push ecx
push 0x1002be20
push 1
push 0
push str.Comment
push eax
call esi
cmp dword [0x1002f384], 0xffffffff
jle 0x1000bdab
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x3c]
push eax
push 0x1002fc4c
push ecx
call fcn.100202ee
lea ecx, [esp + 0x48]
add esp, 0xc
mov edx, dword [0x1002f460]
push 0
push 0
push ecx
push edx
push 0x64
call fcn.1000f810
add esp, 0x14
call fcn.1000f720
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x450
ret