Function at 0x481440
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [0x6319d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x318], ecx
call fcn.0046d4f0
test eax, eax
je 0x4814e4
push 0
push str.CRegOps::DeleteDeviceFiles_n
push 0x6a91d0
call fcn.00599ee3
mov eax, dword [str.ENTRY:]
mov ecx, dword [0x5ccf7c]
mov dword [0x6a90d0], eax
mov eax, 0x6a91d0
mov dword [0x6a90d4], ecx
add esp, 0xc
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4814a0
mov edi, 0x6a90d0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4814b1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d500
push 0x6a90d0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0046d4f0
test eax, eax
je 0x481515
mov edx, dword [ebp + 0xc]
push edx
push ebx
push str.pszFileKeyName_s___dwDefaultCase_X_n
push 0x6a8fd0
call fcn.00599ee3
add esp, 0x10
push 0x6a8fd0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
mov eax, dword [ebp - 0x318]
mov eax, dword [eax + 8]
lea edx, [ebp - 0x310]
mov dword [ebp - 0x314], 0
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x481530
lea edi, [ebp - 0x310]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x481541
mov cx, word [0x5cd28c]
mov eax, ebx
mov word [edi], cx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x481557
lea edi, [ebp - 0x310]
sub eax, ecx
mov esi, ecx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x481570
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
jmp 0x481590
mov cl, byte [ebp + eax - 0x310]
mov byte [ebp + eax - 0x108], cl
inc eax
test cl, cl
jne 0x481590
lea eax, [ebp - 0x108]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4815b0
mov edx, dword [str.INF]
mov cl, byte [0x5d7244]
mov esi, dword [ebp - 0x318]
mov dword [eax], edx
mov byte [eax + 4], cl
mov ecx, esi
call fcn.0047cf60
test eax, eax
je 0x481961
xor eax, eax
mov cl, byte [ebp + eax - 0x310]
mov byte [ebp + eax - 0x108], cl
inc eax
test cl, cl
jne 0x4815e0
lea eax, [ebp - 0x108]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x481600
mov edx, dword [str.INF]
mov cl, byte [0x5d7244]
mov dword [eax], edx
push 0x104
lea edx, [ebp - 0x20c]
push edx
mov byte [eax + 4], cl
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x20c]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x481632
mov ecx, dword [str.INF]
mov dl, byte [0x5d7244]
mov dword [eax], ecx
mov byte [eax + 4], dl
mov eax, dword [ebp + 0xc]
push 0
push eax
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x108]
push edx
mov ecx, esi
call fcn.00480f70
mov dword [ebp - 0x314], eax
xor eax, eax
mov edi, edi
mov cl, byte [ebp + eax - 0x310]
mov byte [ebp + eax - 0x108], cl
inc eax
test cl, cl
jne 0x481670
lea eax, [ebp - 0x108]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x481690
mov ecx, dword [str.CAT]
mov dl, byte [0x5db8d8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [eax], ecx
mov byte [eax + 4], dl
push 0x104
lea eax, [ebp - 0x20c]
push eax
call ebx
lea edi, [ebp - 0x20c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4816c4
mov ecx, 0xc
mov esi, str.CATROOTF750E6C3_38EE_11D1_85E5_00C04FC295EE
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0xc]
push 0
push ecx
mov ecx, dword [ebp - 0x318]
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.00480f70
or dword [ebp - 0x314], eax
xor eax, eax
nop
mov cl, byte [ebp + eax - 0x310]
mov byte [ebp + eax - 0x108], cl
inc eax
test cl, cl
jne 0x481700
lea eax, [ebp - 0x108]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x481720
mov ecx, dword [str.VXDDLL]
mov edx, dword [0x5db8a0]
mov dword [eax], ecx
mov dword [eax + 4], edx
push 0x104
lea eax, [ebp - 0x20c]
push eax
call ebx
mov edi, dword [ebp + 0xc]
push 0
push edi
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp - 0x318]
lea edx, [ebp - 0x108]
push edx
call fcn.00480f70
mov esi, dword [ebp - 0x314]
or esi, eax
xor eax, eax
mov cl, byte [ebp + eax - 0x310]
mov byte [ebp + eax - 0x108], cl
inc eax
test cl, cl
jne 0x481770
lea eax, [ebp - 0x108]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x481790
mov ecx, dword [str.DLL]
mov dl, byte [0x5db898]
mov dword [eax], ecx
mov byte [eax + 4], dl
push 0x104
lea eax, [ebp - 0x20c]
push eax
call ebx
push 0
push edi
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp - 0x318]
lea edx, [ebp - 0x108]
push edx
call fcn.00480f70
or esi, eax
xor eax, eax
jmp 0x4817e0
mov cl, byte [ebp + eax - 0x310]
mov byte [ebp + eax - 0x108], cl
inc eax
test cl, cl
jne 0x4817e0
lea eax, [ebp - 0x108]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x481800
mov ecx, dword [str.VXDDLL]
mov edx, dword [0x5db8a0]
mov dword [eax], ecx
mov dword [eax + 4], edx
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x20c]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x481832
mov ecx, dword [str.SYSWOW64]
mov edx, dword [0x5db88c]
mov ebx, dword [ebp - 0x318]
mov dword [eax], ecx
mov cx, word [0x5db890]
push 0
mov dword [eax + 4], edx
push edi
mov word [eax + 8], cx
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x108]
push eax
mov ecx, ebx
call fcn.00480f70
or esi, eax
xor eax, eax
jmp 0x481880
mov cl, byte [ebp + eax - 0x310]
mov byte [ebp + eax - 0x108], cl
inc eax
test cl, cl
jne 0x481880
lea eax, [ebp - 0x108]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4818a0
mov ecx, dword [str.SYS]
mov dl, byte [0x5db884]
mov dword [eax], ecx
mov byte [eax + 4], dl
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x20c]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4818d2
mov ecx, dword [str.SYSTEM32DRIVERS]
mov edx, dword [0x5db870]
mov dword [eax], ecx
mov ecx, dword [0x5db874]
mov dword [eax + 4], edx
mov edx, dword [0x5db878]
mov dword [eax + 8], ecx
mov cx, word [0x5db87c]
push 0
mov dword [eax + 0xc], edx
push edi
mov word [eax + 0x10], cx
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x108]
push eax
mov ecx, ebx
call fcn.00480f70
or esi, eax
xor eax, eax
jmp 0x481930
mov cl, byte [ebp + eax - 0x310]
mov byte [ebp + eax - 0x108], cl
inc eax
test cl, cl
jne 0x481930
push 2
push edi
push 0x5cf9d0
lea ecx, [ebp - 0x108]
push ecx
mov ecx, ebx
call fcn.00480f70
or esi, eax
mov dword [ebp - 0x314], esi
call fcn.0046d4f0
test eax, eax
je 0x4819e4
push 0
push str.CRegOps::DeleteDeviceFiles_n
push 0x6a8ed0
call fcn.00599ee3
mov eax, dword [0x5ccefc]
mov edx, dword [str.EXIT:]
mov dword [0x6a8dd4], eax
mov eax, 0x6a8ed0
add esp, 0xc
mov dword [0x6a8dd0], edx
mov ecx, eax
jmp 0x4819a0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4819a0
mov edi, 0x6a8dd0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4819b1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x6a8dd0
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d510
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x314]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00599ed4
mov esp, ebp
pop ebp
ret 8