Function at 0x100964b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x8014
call fcn.1010ecf0
mov eax, dword [0x1013b024]
xor eax, esp
mov dword [esp + 0x8010], eax
push ebp
mov ebp, dword [esp + 0x801c]
push esi
push edi
push str.IsWow64Process
xor esi, esi
push str.kernel32
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
mov dword [0x1013d1bc], eax
je 0x1009650a
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x1013d1bc]
cmp dword [esp + 0x10], esi
je 0x1009651c
lea ecx, [esp + 0x14]
push ecx
push 0x101
jmp 0x10096523
lea edx, [esp + 0x14]
push edx
push 1
push esi
push str.SoftwareBoxBox_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, esi
mov dword [esp + 0xc], esi
jne 0x10096564
mov edx, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
push esi
lea ecx, [esp + 0x18]
push ecx
push esi
push str.InstallPath
push edx
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jne 0x10096832
cmp dword [esp + 0xc], esi
je 0x10096832
mov eax, str._sAppDataLocalBoxBoxdata_shell_sync_root_folder.txt
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10096590
mov ecx, dword [ebp + 8]
mov esi, dword [sym.imp.MSVCR80.dll_malloc]
sub eax, edx
push ebx
mov ebx, eax
add ecx, ebx
push ecx
call esi
mov edi, eax
add esp, 4
test edi, edi
je 0x10096831
mov edx, dword [ebp + 8]
add edx, ebx
push edx
push 0
push edi
call sub.MSVCR80.dll_memset
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push str._sAppDataLocalBoxBoxdata_shell_sync_root_folder.txt
add ecx, ebx
push ecx
push edi
call dword [sym.imp.MSVCR80.dll_sprintf_s]
add esp, 0x1c
xor ebx, ebx
push ebx
push ebx
push ebp
call fcn.10094cd0
test eax, eax
mov dword [esp + 0x10], eax
je 0x1009669f
add eax, 1
push eax
call esi
mov esi, eax
add esp, 4
test esi, esi
jne 0x1009660b
push edi
jmp 0x10096828
mov edx, dword [esp + 0x10]
add edx, 1
push edx
push 0
push esi
call sub.MSVCR80.dll_memset
mov eax, dword [esp + 0x1c]
add esp, 0xc
add eax, 1
push eax
push esi
push ebp
call fcn.10094cd0
mov ebx, dword [sym.imp.MSVCR80.dll_free]
push edi
mov dword [esp + 0x14], eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add esp, 4
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call edi
test eax, eax
mov dword [esp + 0x10], eax
jne 0x10096663
push esi
call ebx
jmp 0x1009682e
lea ecx, [eax + eax]
push ecx
call dword [sym.imp.MSVCR80.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1009667c
push esi
jmp 0x10096828
mov edx, dword [esp + 0x10]
push edx
push ebx
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call edi
mov eax, dword [esp + 0x10]
mov word [ebx + eax*2 - 2], 0
push esi
jmp 0x10096794
push edi
call dword [sym.imp.MSVCR80.dll_free]
mov eax, str._sAppDataLocalBox_Sync_sync.db
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100966b1
mov ecx, dword [ebp + 8]
sub eax, edx
mov esi, eax
lea edx, [esi + ecx + 1]
push edx
call dword [sym.imp.MSVCR80.dll_malloc]
mov ecx, dword [ebp + 8]
mov edi, eax
mov eax, dword [ebp + 0xc]
push eax
push str._sAppDataLocalBox_Sync_sync.db
lea edx, [esi + ecx + 1]
push edx
push edi
mov dword [esp + 0x28], edi
call dword [sym.imp.MSVCR80.dll_sprintf_s]
push 0x7ffe
lea eax, [esp + 0x39]
push 0
push eax
mov byte [esp + 0x40], 0
call sub.MSVCR80.dll_memset
add esp, 0x20
push 0x100953d0
push str.select_value_from_preferences_where_nameuser_is_currently_logged_in_and_value1
push ebp
mov eax, edi
lea ecx, [esp + 0x2c]
call fcn.10095940
test eax, eax
jne 0x10096793
mov edi, 0x1011faf0
lea esi, [esp + 0x20]
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10096736
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1009678f
push 0xfffe
mov byte [esp + 0x24], al
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
push 0x100951f0
mov ebx, eax
mov eax, dword [esp + 0x18]
push str.select_value_from_preferences_where_namesync_directory_path
push ebp
mov ecx, ebx
mov word [ebx], 0
call fcn.10095940
test eax, eax
jne 0x10096783
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10096772
sub eax, edx
sar eax, 1
jne 0x1009678f
push ebx
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
xor ebx, ebx
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
test ebx, ebx
je 0x10096831
mov eax, ebx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100967b0
sub eax, edx
sar eax, 1
je 0x10096827
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100967c6
sub eax, edx
sar eax, 1
mov esi, eax
mov edx, ebx
call fcn.10094da0
mov ecx, dword [ebp + 4]
mov esi, dword [sym.imp.MSVCR80.dll_wcscat_s]
push 0x10126e78
push 0xffff
push ecx
call esi
mov edx, dword [ebp + 4]
push 0x101268dc
push 0xffff
push edx
call esi
mov eax, dword [ebp + 4]
push ebx
push 0xffff
push eax
call esi
mov ecx, dword [ebp + 4]
push 0x101268dc
push 0xffff
push ecx
call esi
add esp, 0x30
add dword [ebp + 0x10], 1
push ebx
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
pop ebx
mov ecx, dword [esp + 0x801c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.1010dc50
add esp, 0x8014
ret 4