Function at 0x10005828
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1414]
mov eax, 0x1414
call fcn.100135f0
push 0xffffffffffffffff
push 0x10027ef7
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10032ba0]
xor eax, ebp
mov dword [ebp + 0x1410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x141c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x28]
push ecx
push eax
mov ebx, SysReAllocString
push ebx
mov dword [ebp - 0x2c], eax
call edi
test eax, eax
jne 0x10005b18
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x800]
push eax
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x18], 0x400
call esi
test eax, eax
jne 0x10005b0f
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
lea eax, [ebp]
push 0x10029b44
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp]
push eax
call fcn.10013ea6
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x800]
push eax
call fcn.10013ea6
push dword [ebp - 0x10]
push eax
call fcn.10012fbd
lea ecx, [ebp + 0x800]
add esp, 0x1c
cmp eax, ecx
jne 0x10005b0f
push str._shellopencommand
mov eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x800]
push eax
push ebx
call edi
test eax, eax
jne 0x10005b0f
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 0x1208]
push eax
xor ebx, ebx
push ebx
push dword [ebp - 0x10]
mov dword [ebp - 0x30], 0x208
call esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.USER32.dll_CharLowerW]
lea eax, [ebp + 0x1208]
push eax
call esi
xor eax, eax
push 0x206
mov word [ebp + 0x1000], ax
lea eax, [ebp + 0x1002]
push ebx
push eax
call fcn.10013370
add esp, 0xc
push str...X86
push 0x10033f88
lea eax, [ebp + 0x1000]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x100299e4
lea eax, [ebp + 0x1000]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 0x1000]
push eax
call esi
lea eax, [ebp + 0x1000]
push eax
lea eax, [ebp + 0x1208]
push eax
call fcn.10012fbd
pop ecx
pop ecx
lea ecx, [ebp + 0x1208]
cmp eax, ecx
jne 0x10005b18
mov edi, 0x1003435c
push edi
lea ecx, [ebp - 0x14]
call fcn.10005472
push dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], ebx
call fcn.1000580c
pop ecx
pop ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
push 1
push dword [ebp - 0x14]
mov esi, SysReAllocString
push esi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.10002dd2
cmp eax, ebx
je 0x10005a1f
lea ecx, [ebp - 0x24]
call fcn.10002d5d
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.100051b7
xor eax, eax
inc eax
jmp 0x10005b1a
push edi
lea ecx, [ebp - 0x1c]
call fcn.10005472
push dword [ebp - 0x2c]
lea eax, [ebp - 0x1c]
push str.KuaiZip
push str._s_s
push eax
mov byte [ebp - 4], 2
call fcn.100057f9
add esp, 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x1208]
push eax
mov edi, str.Progid
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], 0x104
call fcn.10005148
test eax, eax
je 0x10005a91
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.100051b7
lea ecx, [ebp - 0x24]
call fcn.10002d5d
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.100051b7
mov eax, esi
jmp 0x10005b1a
push dword [ebp - 0x1c]
lea eax, [ebp + 0x1208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10005aa9
xor esi, esi
jmp 0x10005a6c
push str.UserChoice
lea ecx, [ebp - 0x14]
call fcn.1000576b
lea ecx, [ebp - 0x24]
call fcn.10002d5d
push 1
push dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
push esi
call fcn.10002dd2
test eax, eax
jne 0x10005a69
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x1208]
push eax
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], 0x104
call fcn.10005148
test eax, eax
jne 0x10005a69
push dword [ebp - 0x1c]
lea eax, [ebp + 0x1208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
jmp 0x10005a6c
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1410]
xor ecx, ebp
call fcn.100135dc
add ebp, 0x1414
leave
ret 4