Function at 0x100a0c70
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x8014
call fcn.1012e520
mov eax, dword [0x10170024]
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 [0x101725d4], eax
je 0x100a0cca
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x101725d4]
cmp dword [esp + 0x10], esi
je 0x100a0cdc
lea ecx, [esp + 0x14]
push ecx
push 0x101
jmp 0x100a0ce3
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 0x100a0d24
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 0x100a0ff2
cmp dword [esp + 0xc], esi
je 0x100a0ff2
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 0x100a0d50
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 0x100a0ff1
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.1009f490
test eax, eax
mov dword [esp + 0x10], eax
je 0x100a0e5f
add eax, 1
push eax
call esi
mov esi, eax
add esp, 4
test esi, esi
jne 0x100a0dcb
push edi
jmp 0x100a0fe8
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.1009f490
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 0x100a0e23
push esi
call ebx
jmp 0x100a0fee
lea ecx, [eax + eax]
push ecx
call dword [sym.imp.MSVCR80.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100a0e3c
push esi
jmp 0x100a0fe8
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 0x100a0f54
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 0x100a0e71
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 0x1009fb90
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.100a0100
test eax, eax
jne 0x100a0f53
mov edi, 0x1014db00
lea esi, [esp + 0x20]
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x100a0ef6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x100a0f4f
push 0xfffe
mov byte [esp + 0x24], al
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
push 0x1009f9b0
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.100a0100
test eax, eax
jne 0x100a0f43
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100a0f32
sub eax, edx
sar eax, 1
jne 0x100a0f4f
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 0x100a0ff1
mov eax, ebx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100a0f70
sub eax, edx
sar eax, 1
je 0x100a0fe7
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100a0f86
sub eax, edx
sar eax, 1
mov esi, eax
mov edx, ebx
call fcn.1009f560
mov ecx, dword [ebp + 4]
mov esi, dword [sym.imp.MSVCR80.dll_wcscat_s]
push 0x10155d28
push 0xffff
push ecx
call esi
mov edx, dword [ebp + 4]
push 0x1015578c
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 0x1015578c
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.1012d370
add esp, 0x8014
ret 4