Function at 0x416a60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de073
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x53d9f8]
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 - 0x78]
push 7
push eax
call fcn.00418ca0
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
push 0x40
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call fcn.004bedfd
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 - 0x18], eax
cmp dword [ebp - 0x64], 8
lea eax, [ebp - 0x78]
push dword [ebp - 0x68]
cmovae eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x48]
push eax
mov byte [ebp - 4], 3
call fcn.004033b0
push 1
push 0x4f0efc
lea ecx, [ebp - 0x48]
call fcn.00403230
push 0x10
push str.cfgsproduct.dat
mov ecx, eax
call fcn.00403230
cmp dword [ebp - 0x64], 8
lea eax, [ebp - 0x78]
push dword [ebp - 0x68]
cmovae eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x30]
push eax
call fcn.004033b0
push 1
push 0x4f0efc
lea ecx, [ebp - 0x30]
call fcn.00403230
push 0xc
push str.cfgsoem.ini
mov ecx, eax
call fcn.00403230
mov edx, dword [ebp - 0x64]
mov byte [ebp - 4], 5
cmp edx, 8
jb 0x416b95
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416b8b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x416b8b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004bee2d
add esp, 8
xor eax, eax
mov dword [ebp - 0x68], 0
push 0x1f
push str.Support_RegAppdataReplaceWinApi
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x64], 7
mov word [ebp - 0x78], ax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], 7
mov word [ebp - 0x90], ax
call fcn.004033b0
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x48]
call fcn.0041b8d0
cmp dword [ebp - 0x4c], 8
lea eax, [ebp - 0x60]
push 0x4f1b88
cmovae eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov edx, dword [ebp - 0x4c]
add esp, 8
test eax, eax
sete bl
cmp edx, 8
jb 0x416c3e
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416c34
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x416c34
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004bee2d
add esp, 8
mov edx, dword [ebp - 0x7c]
mov byte [ebp - 4], 5
cmp edx, 8
jb 0x416c81
mov ecx, dword [ebp - 0x90]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416c77
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x416c77
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004bee2d
add esp, 8
test bl, bl
je 0x416ca2
push 0xa
push 0xffffffffffffffff
push 0
push dword [ebp + 0xc]
push esi
push 0x1a
call fcn.00416f30
xor ebx, ebx
add esp, 0x18
test eax, eax
setns bl
jmp 0x416cb1
push 0
push 0x1a
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ebx, eax
mov edx, dword [ebp - 0x34]
xor eax, eax
mov word [ebp - 0x60], ax
cmp edx, 8
jb 0x416cf1
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416ce7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416e31
push edx
push ecx
call fcn.004bee2d
add esp, 8
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x60], ax
cmp edx, 8
jb 0x416d57
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416d4d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416e31
push edx
push ecx
call fcn.004bee2d
add esp, 8
mov eax, dword [ebp - 0x60]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], 0
mov ecx, eax
mov dword [ebp - 0x1c], 7
push dword [esi + 4]
push eax
call fcn.004136f0
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], 0
push dword [eax + 4]
lea eax, [ebp - 0x18]
push eax
mov ecx, eax
call fcn.004136f0
push 0x40
push dword [ebp - 0x18]
call fcn.004bee2d
mov edx, dword [ebp - 0x1c]
add esp, 8
cmp edx, 8
jb 0x416df1
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416de7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416e31
push edx
push ecx
call fcn.004bee2d
add esp, 8
mov edx, dword [ebp - 0x34]
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
cmp edx, 8
jb 0x416e41
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416e37
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x416e37
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004bee2d
add esp, 8
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.004bee49
mov esp, ebp
pop ebp
ret