Function at 0x497570
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da238
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x468
push esi
push edi
mov esi, ecx
call fcn.004abec1
lea eax, [ebp - 0x64]
push eax
call fcn.004a72e3
lea eax, [ebp - 0x64]
push eax
call fcn.004a7044
mov ecx, eax
mov dword [ebp - 0x3c], 0
xorps xmm0, xmm0
add esp, 8
movdqu xmmword [ebp - 0x5c], xmm0
movdqu xmmword [ebp - 0x4c], xmm0
test ecx, ecx
jne 0x497603
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x38]
lea ecx, [ebp - 0x5c]
sub eax, 0x76c
mov dword [ebp - 0x48], eax
movzx eax, word [ebp - 0x36]
dec eax
mov dword [ebp - 0x4c], eax
movzx eax, word [ebp - 0x32]
mov dword [ebp - 0x50], eax
movzx eax, word [ebp - 0x30]
mov dword [ebp - 0x54], eax
movzx eax, word [ebp - 0x2e]
mov dword [ebp - 0x58], eax
movzx eax, word [ebp - 0x2c]
mov dword [ebp - 0x5c], eax
push dword [ecx]
mov eax, dword [ecx + 0x10]
push dword [ecx + 4]
inc eax
push dword [ecx + 8]
push dword [ecx + 0xc]
push eax
mov eax, dword [ecx + 0x14]
add eax, 0x76c
push eax
push 0x4dbeb4
lea eax, [esi + 0x874]
push eax
lea eax, [ebp - 0x26c]
push str._s_sSynDiag_.4d__.2d__.2d__.2d__.2d__.2d.log
push eax
call fcn.004a6894
add esp, 0x28
lea eax, [ebp - 0x26c]
mov ecx, esi
push 1
push dword [ebp + 8]
push eax
call fcn.004978c0
cmp dword [ebp + 0xc], 0
mov edi, eax
je 0x4978a7
push str.TouchPad_Driver_Diagnostics
lea ecx, [ebp - 0x10]
call fcn.00406c50
lea eax, [ebp - 0x26c]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x24]
call fcn.00406c50
mov esi, eax
push 0x4e52c0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00406c50
push esi
push eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 2
push eax
call fcn.0046e0e0
push 0x4e52c0
push eax
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 3
push eax
call fcn.00458a70
add esp, 0x18
mov edx, dword [ebp - 0x1c]
or esi, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 5
mov eax, esi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4976d9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x28]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4976f9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x497719
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, str.Could_not_save_diagnostic_information_to_file
test edi, edi
mov eax, str.Diagnostic_information_saved_in_file
cmove eax, ecx
lea ecx, [ebp + 8]
push eax
call fcn.00406c50
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 8
push dword [eax - 0xc]
push eax
call fcn.00407250
test edi, edi
je 0x497836
push 0x17
push str._n_nShow_file_in_folder__
lea ecx, [ebp + 8]
call fcn.00407250
push 4
push dword [ebp - 0x10]
push dword [ebp + 8]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x497846
push 0x104
lea eax, [ebp - 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x497846
lea eax, [ebp - 0x474]
push eax
lea ecx, [ebp - 0x20]
call fcn.00406c50
push str.explorer.exe__select_
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 9
push eax
call fcn.00458a70
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0xa
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0046e0e0
add esp, 0x18
mov edx, dword [ebp - 0x18]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 0xc
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4977e5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x20]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 0xd
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x497805
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 5
push dword [ebp - 0x14]
call fcn.004a0b40
mov edx, dword [ebp - 0x14]
add esp, 0xc
add edx, 0xfffffff0
mov byte [ebp - 4], 8
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x497846
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x497846
push 0x40
push dword [ebp - 0x10]
push dword [ebp + 8]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [ebp + 8]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x497866
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x497886
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x4978a7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8