Function at 0x4c4590
Capabilities:
Get common file path
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2744
call fcn.004d9280
mov eax, dword [0x4f72bc]
xor eax, esp
mov dword [esp + 0x2740], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x125]
push ebx
push eax
mov esi, ecx
mov byte [esp + 0x12c], bl
call fcn.004d29c0
add esp, 0xc
push 0x103
lea ecx, [esp + 0x1d]
push ebx
push ecx
mov byte [esp + 0x24], bl
call fcn.004d29c0
add esp, 0xc
push 0x103
lea edx, [esp + 0x22d]
push ebx
push edx
mov byte [esp + 0x234], bl
call fcn.004d29c0
add esp, 0xc
push 0x103
lea eax, [esp + 0x335]
push ebx
push eax
mov byte [esp + 0x33c], bl
call fcn.004d29c0
add esp, 0xc
push 0x103
lea ecx, [esp + 0x43d]
push ebx
push ecx
mov byte [esp + 0x444], bl
call fcn.004d29c0
add esp, 0xc
push 0x1fff
lea edx, [esp + 0x74d]
push ebx
push edx
mov byte [esp + 0x754], bl
call fcn.004d29c0
add esp, 0xc
mov dword [esp + 0x14], 0x104
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
call fcn.004ca450
neg eax
sbb eax, eax
and eax, 0x7c6
add eax, 0xa
cmp dword [0x506ef4], ebx
je 0x4c4868
cmp esi, ebx
jl 0x4c4868
cmp esi, eax
jge 0x4c4868
lea eax, [esp + 0x120]
push eax
push ebx
push ebx
push 0x23
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
cmp byte [esp + 0x120], bl
je 0x4c46d0
lea ecx, [esp + 0x120]
push ecx
lea edx, [esp + 0x1c]
push str._sWinPatrol
push edx
call fcn.004d0d1c
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x22c]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
cmp byte [esp + 0x18], bl
je 0x4c484f
cmp byte [esp + 0x228], bl
je 0x4c484f
push str.WinPatrolFSMonitor.dat
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x338]
push str._s_s
push eax
call fcn.004d0d1c
push ebx
push 6
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x34c]
push edx
call fcn.00477260
add esp, 0x20
test eax, eax
je 0x4c4759
mov eax, dword [esp + 0xc]
push ebx
call fcn.00475270
add esp, 4
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2740]
xor ecx, esp
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x228]
push eax
lea ecx, [esp + 0x43c]
push str.FileListFor_s
push ecx
call fcn.004d0d1c
imul esi, esi, 0x1ac
mov edx, dword [0x506ef4]
lea eax, [esi + edx + 0x80]
lea edx, [esp + 0x54c]
add esp, 0xc
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x4c4792
lea ecx, [esp + 0x540]
call fcn.004cefe0
add esi, dword [0x506ef4]
lea ecx, [esp + 0x540]
push esi
push ecx
lea edx, [esp + 0x440]
push edx
lea eax, [esp + 0x754]
push str.DELETE_FROM__s_WHERE__FilePath_s__AND___FileName_s__
push eax
call fcn.004d0d1c
mov esi, dword [esp + 0x20]
add esp, 0x14
push ebx
lea ecx, [esp + 0x10]
push ecx
push ebx
push ebx
push 0xffffffffffffffff
lea edx, [esp + 0x75c]
push edx
push esi
call fcn.004572d0
add esp, 0x1c
test eax, eax
je 0x4c481c
push ebx
mov eax, esi
call fcn.00475270
add esp, 4
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2740]
xor ecx, esp
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0xc]
push edi
call fcn.0042a540
add esp, 4
cmp eax, 0x64
je 0x4c4833
cmp eax, 0x65
jne 0x4c483b
mov dword [esp + 0x10], 1
push edi
call fcn.00429960
add esp, 4
push ebx
mov eax, esi
call fcn.00475270
add esp, 4
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2740]
xor ecx, esp
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x274c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret