Function at 0x416ce0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5007b5
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x567e00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x28]
push 7
push eax
call fcn.004190c0
xor eax, eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x68], vtable.KProductConfig.0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
push 0x40
mov byte [ebp - 4], 2
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
call fcn.004c6f3f
add esp, 0xc
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x64]
push eax
mov byte [ebp - 4], 3
mov word [ebp - 0x2c], 0
mov byte [ebp - 0x2a], 0
call fcn.00403a70
push 1
push 0x516d0c
lea ecx, [ebp - 0x64]
call fcn.004038f0
push 0xc
push 0x517cf4
mov ecx, eax
call fcn.004038f0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x4c]
push eax
call fcn.00403a70
push 1
push 0x516d0c
lea ecx, [ebp - 0x4c]
call fcn.004038f0
push 0x10
push str.cfgsproduct.dat
mov ecx, eax
call fcn.004038f0
lea ecx, [ebp - 0x68]
call fcn.0041be80
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 5
cmp edx, 8
jb 0x416e38
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416e2e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x416e2e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
push 0x1f
mov dword [ebp - 0x80], eax
lea ecx, [ebp - 0x80]
push str.Support_RegAppdataReplaceWinApi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], 7
mov word [ebp - 0x80], ax
call fcn.00403a70
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x68]
call fcn.0041b260
cmp dword [ebp - 0x84], 8
lea eax, [ebp - 0x98]
push 0x517cd0
cmovae eax, dword [ebp - 0x98]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov edx, dword [ebp - 0x84]
add esp, 8
test eax, eax
sete bl
cmp edx, 8
jb 0x416eed
mov ecx, dword [ebp - 0x98]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416ee3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x416ee3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov edx, dword [ebp - 0x6c]
mov byte [ebp - 4], 5
cmp edx, 8
jb 0x416f2d
mov ecx, dword [ebp - 0x80]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416f23
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x416f23
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
test bl, bl
je 0x416f4e
push 0xa
push 0xffffffffffffffff
push 0
push dword [ebp + 0xc]
push esi
push 0x1a
call fcn.00417070
xor ebx, ebx
add esp, 0x18
test eax, eax
setns bl
jmp 0x416f5d
push 0
push 0x1a
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ebx, eax
lea ecx, [ebp - 0x68]
call fcn.00414da0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret