Function at 0x417ba0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4947ec
mov eax, dword fs:[0]
push eax
sub esp, 0x6ac
mov eax, dword [0x4d53a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x6a0], ecx
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.004726b0
add esp, 0xc
push 0
push 0xb
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x498cb0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
xor edx, edx
mov word [ebp - 0x420], dx
push 0x206
push 0
lea eax, [ebp - 0x41e]
push eax
call fcn.004726b0
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x628], cx
push 0x206
push 0
lea edx, [ebp - 0x626]
push edx
call fcn.004726b0
add esp, 0xc
lea eax, [ebp - 0x218]
mov dword [ebp - 0x698], eax
lea ecx, [ebp - 0x420]
mov dword [ebp - 0x690], ecx
mov edx, dword [ebp - 0x690]
mov dword [ebp - 0x6b4], edx
mov eax, dword [ebp - 0x698]
mov cx, word [eax]
mov word [ebp - 0x68a], cx
mov edx, dword [ebp - 0x690]
mov ax, word [ebp - 0x68a]
mov word [edx], ax
mov ecx, dword [ebp - 0x698]
add ecx, 2
mov dword [ebp - 0x698], ecx
mov edx, dword [ebp - 0x690]
add edx, 2
mov dword [ebp - 0x690], edx
cmp word [ebp - 0x68a], 0
jne 0x417c86
lea eax, [ebp - 0x218]
mov dword [ebp - 0x69c], eax
lea ecx, [ebp - 0x628]
mov dword [ebp - 0x694], ecx
mov edx, dword [ebp - 0x694]
mov dword [ebp - 0x6b8], edx
mov eax, dword [ebp - 0x69c]
mov cx, word [eax]
mov word [ebp - 0x68c], cx
mov edx, dword [ebp - 0x694]
mov ax, word [ebp - 0x68c]
mov word [edx], ax
mov ecx, dword [ebp - 0x69c]
add ecx, 2
mov dword [ebp - 0x69c], ecx
mov edx, dword [ebp - 0x694]
add edx, 2
mov dword [ebp - 0x694], edx
cmp word [ebp - 0x68c], 0
jne 0x417cf2
push 0x498cbc
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x498cd4
lea ecx, [ebp - 0x628]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x670]
push edx
call fcn.004165e0
mov ecx, eax
call fcn.004216e0
mov dword [ebp - 0x6a4], eax
mov eax, dword [ebp - 0x6a4]
mov dword [ebp - 0x6a8], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x6a8]
call fcn.00403d00
push eax
lea ecx, [ebp - 0x658]
push ecx
call fcn.00401990
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x670]
call fcn.00403f90
push 0x498cec
lea ecx, [ebp - 0x658]
call fcn.004175e0
lea edx, [ebp - 0x688]
push edx
call fcn.004165e0
mov ecx, eax
call fcn.004216e0
mov dword [ebp - 0x6ac], eax
mov eax, dword [ebp - 0x6ac]
mov dword [ebp - 0x6b0], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x6b0]
call fcn.00403d00
push eax
lea ecx, [ebp - 0x640]
push ecx
call fcn.00401990
add esp, 8
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x688]
call fcn.00403f90
push str.Uninst.exe
lea ecx, [ebp - 0x640]
call fcn.004175e0
push 0
lea edx, [ebp - 0x420]
push edx
push 0
lea ecx, [ebp - 0x658]
call fcn.00403570
push eax
mov ecx, dword [ebp - 0x6a0]
call fcn.00417770
push 0
lea eax, [ebp - 0x628]
push eax
push 0
lea ecx, [ebp - 0x640]
call fcn.00403570
push eax
mov ecx, dword [ebp - 0x6a0]
call fcn.00417770
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x640]
call fcn.00403bd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x658]
call fcn.00403bd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00470931
mov esp, ebp
pop ebp
ret