Function at 0x10007aa0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x314]
sub esp, 0x394
mov eax, dword [0x10022160]
xor eax, ebp
mov dword [ebp + 0x310], eax
mov eax, dword [ebp + 0x31c]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x320]
push 0x140
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x6c]
push 0
push eax
mov esi, ecx
mov dword [ebp - 0x70], edi
mov byte [ebp + 0x1fc], 0
mov byte [ebp + 0xd4], 0
call fcn.1000aa30
mov eax, dword [esi + 0x124]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 0xc
test eax, eax
je 0x10007b90
push eax
lea eax, [ebp + 0x1fc]
push eax
call fcn.1000cbb0
pop ecx
pop ecx
lea eax, [ebp + 0x1fc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax + 0x1fb], 0x5c
je 0x10007b3b
push 0x1001d650
lea eax, [ebp + 0x1fc]
push eax
call ebx
lea eax, [ebp + 0x1fc]
push eax
lea eax, [ebp + 0xd4]
push eax
call fcn.1000cbb0
pop ecx
pop ecx
push edi
lea eax, [ebp + 0xd4]
push eax
call ebx
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x10007b90
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp + 0x1fc]
push eax
push dword [ebp - 0x74]
call fcn.1000cbb0
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x10007d4d
push 8
pop ecx
mov esi, str.SOFTWAREKyocera_MitaShared_Files
lea edi, [ebp + 0x1d8]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x1001d61c
lea edi, [ebp + 0x300]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x78]
push eax
push 0x20019
push 0
movsd dword es:[edi], dword [esi]
lea eax, [ebp + 0x1d8]
push eax
push 0x80000002
movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x80], 0x104
mov dword [ebp - 0x7c], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10007c16
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x1fc]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
lea eax, [ebp + 0x300]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10007c0d
mov byte [ebp + 0x1fc], 0
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0x1fc]
lea edi, [ebp + 0x1fc]
push eax
dec edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + edi], 0x5c
je 0x10007c3e
push 0x1001d650
lea eax, [ebp + 0x1fc]
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp + 0x1fc]
push eax
lea eax, [ebp + 0xd4]
push eax
call esi
push dword [ebp - 0x70]
lea eax, [ebp + 0xd4]
push eax
call ebx
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x10007b70
push 0x104
lea eax, [ebp + 0x1fc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp + 0x1fc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + edi], 0x5c
je 0x10007cad
push 0x1001d650
lea eax, [ebp + 0x1fc]
push eax
call ebx
lea eax, [ebp + 0x1fc]
push eax
lea eax, [ebp + 0xd4]
push eax
call esi
push dword [ebp - 0x70]
lea eax, [ebp + 0xd4]
push eax
call ebx
push 0x104
lea eax, [ebp + 0x1fc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp + 0x1fc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + edi], 0x5c
je 0x10007cfc
push 0x1001d650
lea eax, [ebp + 0x1fc]
push eax
call ebx
lea eax, [ebp + 0x1fc]
push eax
lea eax, [ebp + 0xd4]
push eax
call esi
push dword [ebp - 0x70]
lea eax, [ebp + 0xd4]
push eax
call ebx
push dword [ebp - 0x70]
lea eax, [ebp + 0xd4]
push eax
call esi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x10007d4b
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x1001d508
jmp 0x10007b7e
xor eax, eax
mov ecx, dword [ebp + 0x310]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000aaaa
add ebp, 0x314
leave
ret 8