Function at 0x402d00
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1040
call fcn.0043c6a0
mov eax, dword [0x457078]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x428]
mov dword [ebp - 0x1040], ecx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xa
push 6
lea eax, [ebp - 0xc]
push eax
push 0x1b
call dword [sym.imp.MSVCR120.dll__itoa_s]
mov esi, dword [sym.imp.MSVCR120.dll_strcat]
lea eax, [ebp - 0xc]
push 0x448068
push eax
call esi
lea eax, [ebp - 0x324]
push str.SOFTWAREIntuitQuickBooks_
push eax
call dword [sym.imp.MSVCR120.dll_strcpy]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x324]
push eax
call esi
add esp, 0x28
mov dword [ebp - 0x1030], 0
lea eax, [ebp - 0x1030]
mov dword [ebp - 0x102c], 0
push eax
push 0x20019
push 0
lea eax, [ebp - 0x324]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402f76
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [ebp - 0x1034]
push edi
xor esi, esi
mov dword [ebp - 0x1034], 0x400
push esi
push esi
push esi
push esi
push eax
lea eax, [ebp - 0x828]
push eax
push esi
push dword [ebp - 0x1030]
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, 0x103
je 0x402f5a
test eax, eax
jne 0x402f25
lea eax, [ebp - 0x102c]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x828]
push eax
push dword [ebp - 0x1030]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402e40
push dword [ebp - 0x102c]
inc esi
mov dword [ebp - 0x1034], 0x400
call edi
mov dword [ebp - 0x102c], 0
jmp 0x402f30
lea eax, [ebp - 0x1028]
mov dword [ebp - 0x1038], 0x400
push str.Path
push eax
call dword [sym.imp.MSVCR120.dll_strcpy]
add esp, 8
lea eax, [ebp - 0x1038]
push eax
lea eax, [ebp - 0xc28]
push eax
lea eax, [ebp - 0x103c]
push eax
push 0
lea eax, [ebp - 0x1028]
push eax
push dword [ebp - 0x102c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402f13
push 0x103
push eax
mov byte [ebp - 0x11c], al
lea eax, [ebp - 0x11b]
push eax
call sub.MSVCR120.dll_memset
push 0x103
lea eax, [ebp - 0x21f]
mov byte [ebp - 0x220], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0x18
lea eax, [ebp - 0x220]
push 0x104
push eax
lea eax, [ebp - 0xc28]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0x104
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.MSVCR120.dll__stricmp]
add esp, 8
test eax, eax
je 0x402f85
push dword [ebp - 0x102c]
call edi
mov dword [ebp - 0x102c], 0
inc esi
mov dword [ebp - 0x1034], 0x400
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1034]
push eax
lea eax, [ebp - 0x828]
push eax
push esi
push dword [ebp - 0x1030]
call ebx
cmp eax, 0x103
jne 0x402df1
mov eax, dword [ebp - 0x102c]
test eax, eax
je 0x402f67
push eax
call edi
mov eax, dword [ebp - 0x1030]
test eax, eax
je 0x402f74
push eax
call edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043bfe6
mov esp, ebp
pop ebp
ret
mov al, byte [0x448098]
movq xmm0, qword [str.DataPath]
mov byte [ebp - 0x10], al
lea eax, [ebp - 0x1038]
push eax
push dword [ebp - 0x1040]
lea eax, [ebp - 0x103c]
movq qword [ebp - 0x18], xmm0
push eax
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1038], 0x400
push eax
push dword [ebp - 0x102c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x102c]
call edi
mov dword [ebp - 0x102c], 0
jmp 0x402f67