Function at 0x476950
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e23e3
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x527064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 0x50da74
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov esi, eax
test esi, esi
jns 0x4769fd
push str.McDefaultProdReg.cpp
push str.CMcDefaultProductRegistration::CreateScheduledTask
push 0x16d
push 4
lea ecx, [ebp - 0x2c]
call fcn.00431610
mov byte [ebp - 4], 1
mov edx, str.Unable_to_get_Program_data_path_Error:
mov ecx, dword [eax]
push esi
call fcn.00433720
mov ecx, eax
call fcn.0043a770
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2c]
call fcn.004327d0
mov eax, dword [ebp - 0x2c]
add eax, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x476c4f
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x18], 0
test edx, edx
je 0x476a3c
cmp word [edx], 0
jne 0x476a15
xor ecx, ecx
jmp 0x476a2f
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x476a20
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00408f30
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
push 1
push 0x4f8180
jne 0x476a5a
call fcn.00408f30
jmp 0x476a5f
call fcn.00409380
cmp dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
push 0x19
push str.McAfeeDirectMcDiReg.exe
jne 0x476a76
call fcn.00408f30
jmp 0x476a7b
call fcn.00409380
push 0x34
call fcn.004a3e8e
add esp, 4
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x476a99
mov ecx, eax
call fcn.00434330
jmp 0x476a9b
xor eax, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
push eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
call fcn.0047d9a0
push 0
push 0
mov byte [ebp - 4], 4
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, eax
test esi, esi
jns 0x476b04
push str.McDefaultProdReg.cpp
push str.CMcDefaultProductRegistration::CreateScheduledTask
push 0x17c
push 4
lea ecx, [ebp - 0x2c]
call fcn.00431610
mov byte [ebp - 4], 5
mov edx, str.CoInitializeEx_failed
mov ecx, dword [eax]
push esi
call fcn.004333c0
mov ecx, eax
call fcn.0043a770
mov byte [ebp - 4], 6
jmp 0x476c0e
push 0
push 0
push 0
push 3
push 6
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov esi, eax
test esi, esi
jns 0x476b5c
push str.McDefaultProdReg.cpp
push str.CMcDefaultProductRegistration::CreateScheduledTask
push 0x184
push 4
lea ecx, [ebp - 0x2c]
call fcn.00431610
mov byte [ebp - 4], 7
mov edx, str.CoInitializeSecurity_failed
mov ecx, dword [eax]
push esi
call fcn.004333c0
mov ecx, eax
call fcn.0043a770
mov byte [ebp - 4], 8
jmp 0x476c0e
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0x50b5f4
call fcn.00432050
sub esp, 0x18
mov byte [ebp - 4], 9
mov ecx, esp
mov dword [ebp - 0x3c], ecx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x476b92
mov eax, dword [ecx]
jmp 0x476b94
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x28]
push edx
push eax
call fcn.00409030
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx]
mov byte [ebp - 4], 4
mov eax, dword [eax + 0x78]
call eax
mov bl, al
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x2c]
push str.McDefaultProdReg.cpp
push str.CMcDefaultProductRegistration::CreateScheduledTask
test bl, bl
je 0x476bee
push 0x18c
push 3
call fcn.00431610
mov byte [ebp - 4], 0xa
mov edx, str.Successfully_created_ScheduledTask
mov ecx, dword [eax]
call fcn.004333c0
mov byte [ebp - 4], 0xb
jmp 0x476c0e
push 0x190
push 4
call fcn.00431610
mov byte [ebp - 4], 0xc
mov edx, str.Failed_to_create_ScheduledTask
mov ecx, dword [eax]
call fcn.004333c0
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x2c]
call fcn.004327d0
mov eax, dword [ebp - 0x2c]
add eax, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 0xe
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x476c4f
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x476c4f
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x476c4f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x476c66
push 2
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00402ff0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004908ad
mov esp, ebp
pop ebp
ret