Function at 0x100a0e90
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x8014
call fcn.10132000
mov eax, dword [0x10177024]
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 [0x101795e4], eax
je 0x100a0eea
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x101795e4]
cmp dword [esp + 0x10], esi
je 0x100a0efc
lea ecx, [esp + 0x14]
push ecx
push 0x101
jmp 0x100a0f03
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 0x100a0f44
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 0x100a1212
cmp dword [esp + 0xc], esi
je 0x100a1212
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 0x100a0f70
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 0x100a1211
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.1009f6b0
test eax, eax
mov dword [esp + 0x10], eax
je 0x100a107f
add eax, 1
push eax
call esi
mov esi, eax
add esp, 4
test esi, esi
jne 0x100a0feb
push edi
jmp 0x100a1208
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.1009f6b0
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 0x100a1043
push esi
call ebx
jmp 0x100a120e
lea ecx, [eax + eax]
push ecx
call dword [sym.imp.MSVCR80.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100a105c
push esi
jmp 0x100a1208
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 0x100a1174
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 0x100a1091
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 0x1009fdb0
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.100a0320
test eax, eax
jne 0x100a1173
mov edi, 0x10153e30
lea esi, [esp + 0x20]
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x100a1116
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x100a116f
push 0xfffe
mov byte [esp + 0x24], al
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
push 0x1009fbd0
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.100a0320
test eax, eax
jne 0x100a1163
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100a1152
sub eax, edx
sar eax, 1
jne 0x100a116f
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 0x100a1211
mov eax, ebx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100a1190
sub eax, edx
sar eax, 1
je 0x100a1207
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100a11a6
sub eax, edx
sar eax, 1
mov esi, eax
mov edx, ebx
call fcn.1009f780
mov ecx, dword [ebp + 4]
mov esi, dword [sym.imp.MSVCR80.dll_wcscat_s]
push 0x1015c058
push 0xffff
push ecx
call esi
mov edx, dword [ebp + 4]
push 0x1015babc
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 0x1015babc
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.10130e50
add esp, 0x8014
ret 4