Function at 0x4b4be0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b7c8d
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x64786c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004b4470
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x21c]
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x4b4c84
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x230]
call fcn.00496850
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp - 0x25c]
mov dword [ebp - 0x260], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x260]
call fcn.00415eb0
push eax
push 0x5c1624
mov ecx, dword [ebp + 8]
call fcn.004052f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00401c80
lea ecx, [ebp - 0x21c]
push ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x4b4cf5
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x238]
call fcn.00496850
mov dword [ebp - 0x264], eax
mov ecx, dword [ebp - 0x264]
mov dword [ebp - 0x268], ecx
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x268]
call fcn.00415eb0
push eax
push 0x5c162c
mov ecx, dword [ebp + 8]
call fcn.004052f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.00401c80
call fcn.004a87b0
movzx edx, al
test edx, edx
je 0x4b4f6d
lea ecx, [ebp - 0x224]
call fcn.004b5a30
mov dword [ebp - 4], 2
mov dword [ebp - 0x228], 0
lea eax, [ebp - 0x228]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0
push 0x60cf4c
lea ecx, [ebp - 0x224]
call fcn.004b5a70
test eax, eax
jl 0x4b4da8
cmp dword [ebp - 0x228], 0
je 0x4b4da8
mov edx, dword [ebp - 0x228]
push edx
lea ecx, [ebp - 0x240]
call fcn.00496850
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp - 0x26c]
mov dword [ebp - 0x270], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x270]
call fcn.00415eb0
push eax
push 0x5c1630
mov ecx, dword [ebp + 8]
call fcn.004052f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x240]
call fcn.00401c80
mov ecx, dword [ebp - 0x228]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x228], 0
lea edx, [ebp - 0x228]
push edx
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0x60cf1c
lea ecx, [ebp - 0x224]
call fcn.004b5a70
test eax, eax
jl 0x4b4e39
cmp dword [ebp - 0x228], 0
je 0x4b4e39
mov ecx, dword [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x248]
call fcn.00496850
mov dword [ebp - 0x274], eax
mov edx, dword [ebp - 0x274]
mov dword [ebp - 0x278], edx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x278]
call fcn.00415eb0
push eax
push 0x5c1638
mov ecx, dword [ebp + 8]
call fcn.004052f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x248]
call fcn.00401c80
mov eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 0x228]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0
push 0x60cf2c
lea ecx, [ebp - 0x224]
call fcn.004b5a70
test eax, eax
jl 0x4b4eca
cmp dword [ebp - 0x228], 0
je 0x4b4eca
mov eax, dword [ebp - 0x228]
push eax
lea ecx, [ebp - 0x250]
call fcn.00496850
mov dword [ebp - 0x27c], eax
mov ecx, dword [ebp - 0x27c]
mov dword [ebp - 0x280], ecx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x280]
call fcn.00415eb0
push eax
push 0x5c163c
mov ecx, dword [ebp + 8]
call fcn.004052f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x250]
call fcn.00401c80
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x228], 0
lea eax, [ebp - 0x228]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0
push 0x60cf3c
lea ecx, [ebp - 0x224]
call fcn.004b5a70
test eax, eax
jl 0x4b4f5b
cmp dword [ebp - 0x228], 0
je 0x4b4f5b
mov edx, dword [ebp - 0x228]
push edx
lea ecx, [ebp - 0x258]
call fcn.00496850
mov dword [ebp - 0x284], eax
mov eax, dword [ebp - 0x284]
mov dword [ebp - 0x288], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x288]
call fcn.00415eb0
push eax
push 0x5c1644
mov ecx, dword [ebp + 8]
call fcn.004052f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x258]
call fcn.00401c80
mov ecx, dword [ebp - 0x228]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.004977b0
cmp dword [ebp - 0x10], 0
je 0x4b4f84
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x4b4f89
mov eax, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0059709c
mov esp, ebp
pop ebp
ret