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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x3054
call fcn.004d9280
mov eax, dword [0x4f72bc]
xor eax, esp
mov dword [esp + 0x3050], eax
push ebx
push esi
push edi
push 0x103
xor edi, edi
lea eax, [esp + 0x135]
mov esi, ecx
push edi
push eax
mov dword [esp + 0x2c], esi
mov byte [esp + 0x13c], 0
call fcn.004d29c0
add esp, 0xc
push 0x103
lea ecx, [esp + 0x23d]
push edi
push ecx
mov byte [esp + 0x244], 0
call fcn.004d29c0
add esp, 0xc
push 0x103
lea edx, [esp + 0x345]
push edi
push edx
mov byte [esp + 0x34c], 0
call fcn.004d29c0
add esp, 0xc
push 0x103
lea eax, [esp + 0x555]
push edi
push eax
mov byte [esp + 0x55c], 0
call fcn.004d29c0
add esp, 0xc
push 0x103
lea ecx, [esp + 0x44d]
push edi
push ecx
mov byte [esp + 0x454], 0
call fcn.004d29c0
add esp, 0xc
push 0x1fff
lea edx, [esp + 0x105d]
push edi
push edx
mov byte [esp + 0x1064], 0
call fcn.004d29c0
add esp, 0xc
push 0x1ff
lea eax, [esp + 0x65d]
push edi
push eax
mov byte [esp + 0x664], 0
call fcn.004d29c0
add esp, 0xc
push 0x3ff
lea ecx, [esp + 0xc5d]
push edi
push ecx
mov dword [esp + 0x1c], edi
mov byte [esp + 0xc64], 0
call fcn.004d29c0
mov eax, dword [0x506ef4]
add esp, 0xc
mov dword [esp + 0x1c], 0x104
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
cmp eax, edi
je 0x4c3e95
push eax
call fcn.004cf2c5
add esp, 4
mov dword [0x506ef4], edi
lea edx, [esp + 0x130]
push edx
push edi
push edi
push 0x23
push edi
mov dword [esi], edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
cmp byte [esp + 0x130], 0
je 0x4c3ed1
lea eax, [esp + 0x130]
push eax
lea ecx, [esp + 0x23c]
push str._sWinPatrol
push ecx
call fcn.004d0d1c
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x344]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
cmp byte [esp + 0x238], 0
je 0x4c4475
cmp byte [esp + 0x340], 0
je 0x4c4475
push str.WinPatrolFSMonitor.dat
lea ecx, [esp + 0x23c]
push ecx
lea edx, [esp + 0x558]
push str._s_s
push edx
call fcn.004d0d1c
push 0
push 6
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x56c]
push ecx
call fcn.00477260
add esp, 0x20
test eax, eax
je 0x4c3f64
mov eax, dword [esp + 0x18]
push 0
call fcn.00475270
add esp, 4
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3050]
xor ecx, esp
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x340]
push edx
lea eax, [esp + 0x44c]
push str.FileListFor_s
push eax
call fcn.004d0d1c
add esp, 0xc
lea ecx, [esp + 0x448]
push ecx
lea edx, [esp + 0x105c]
push str.SELECT__FROM__s
push edx
call fcn.004d0d1c
add esp, 0xc
call fcn.004ca450
neg eax
sbb eax, eax
and eax, 0x7c6
add eax, 0xa
push eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x65c]
push str._ORDER_BY_FileSize_desc_LIMIT__d
push eax
call fcn.004d0d1c
add esp, 0xc
push 0x104
push str.FilterBySizeIndex
push str.SoftwareBillP_StudiosWinPatrolFileSizeMonitor
lea ecx, [esp + 0x34]
mov edx, 0x80000001
call fcn.004bff10
add esp, 0xc
test eax, eax
je 0x4c400d
push 0
lea ecx, [esp + 0x2c]
push 0
push ecx
call fcn.004cfdf6
lea edx, [eax - 1]
add esp, 0xc
cmp edx, 2
ja 0x4c400d
mov edi, dword [eax*4 + 0x4f8350]
push 0x104
push str.FilterByTypeIndex
push str.SoftwareBillP_StudiosWinPatrolFileSizeMonitor
lea ecx, [esp + 0x34]
mov edx, 0x80000001
call fcn.004bff10
add esp, 0xc
test eax, eax
je 0x4c4168
push 0
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.004cfdf6
lea ecx, [eax - 1]
add esp, 0xc
cmp ecx, 2
ja 0x4c4057
mov ebx, dword [eax*4 + 0x4f835c]
jmp 0x4c405b
mov ebx, dword [esp + 0x10]
cmp eax, 4
jne 0x4c416c
push 0x104
push str.UserDefinedTypeFilter
push str.SoftwareBillP_StudiosWinPatrolFileSizeMonitor
lea ecx, [esp + 0x34]
mov edx, 0x80000001
call fcn.004bff10
add esp, 0xc
cmp byte [esp + 0x28], 0
je 0x4c416c
push 0x3ff
lea edx, [esp + 0x85d]
push 0
push edx
mov byte [esp + 0x864], 0
call fcn.004d29c0
add esp, 0xc
lea eax, [esp + 0x28]
push 0x4e6e6c
push eax
call fcn.004d10d2
add esp, 8
test eax, eax
je 0x4c4126
mov ecx, eax
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4c40d0
sub ecx, esi
je 0x4c4113
mov cl, byte [eax]
test cl, cl
je 0x4c4113
cmp cl, 0x20
je 0x4c40eb
cmp cl, 0x2e
jne 0x4c40f5
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4c40e1
jmp 0x4c4113
cmp byte [eax], 0
je 0x4c4113
push eax
lea ecx, [esp + 0x85c]
push ecx
mov edx, ecx
push str._s_s_
push edx
call fcn.004d0d1c
add esp, 0x10
push 0x4e6e6c
push 0
call fcn.004d10d2
add esp, 8
test eax, eax
jne 0x4c40c4
lea eax, [esp + 0x858]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c4130
sub eax, edx
je 0x4c416c
mov byte [esp + eax + 0x857], cl
lea eax, [esp + 0x858]
push eax
lea ecx, [esp + 0xc5c]
push str.FileType_IN___s_
push ecx
call fcn.004d0d1c
add esp, 0xc
lea ebx, [esp + 0xc58]
jmp 0x4c416c
mov ebx, dword [esp + 0x10]
test edi, edi
je 0x4c421d
lea eax, [esp + 0x1058]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4c4180
mov edx, dword [str._WHERE]
mov ecx, dword [0x4f3500]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov eax, edi
mov ecx, edi
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4c41a0
lea edi, [esp + 0x1058]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4c41b3
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebx, ebx
je 0x4c4279
lea eax, [esp + 0x1058]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4c41e0
mov edx, dword [str._AND]
mov cx, word [0x4eb864]
mov dword [eax], edx
mov word [eax + 4], cx
mov eax, ebx
mov ecx, ebx
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4c4200
lea edi, [esp + 0x1058]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4c4213
jmp 0x4c426b
test ebx, ebx
je 0x4c4279
lea eax, [esp + 0x1058]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4c4230
mov edx, dword [str._WHERE]
mov ecx, dword [0x4f3500]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov eax, ebx
mov ecx, ebx
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4c4250
lea edi, [esp + 0x1058]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4c4263
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x658]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c4282
lea edi, [esp + 0x1058]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4c4293
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 0
lea edx, [esp + 0x14]
push edx
push 0
mov ecx, eax
push 0
and ecx, 3
push 0xffffffffffffffff
lea eax, [esp + 0x106c]
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x2c]
push eax
push esi
call fcn.004572d0
add esp, 0x1c
test eax, eax
je 0x4c42f7
push 0
mov eax, esi
call fcn.00475270
add esp, 4
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3050]
xor ecx, esp
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x10]
push edi
call fcn.0042a540
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, 0x64
je 0x4c4316
cmp eax, 0x65
jne 0x4c444c
push 0x1ac
push 0x7d0
call fcn.004cf2ff
add esp, 8
mov dword [0x506ef4], eax
mov esi, eax
test eax, eax
je 0x4c444c
push 0
push edi
call fcn.0042afb0
add esp, 8
test eax, eax
je 0x4c444c
sub esi, 0xffffff80
lea ecx, [ecx]
push 0x80
push ecx
push 0
push edi
lea ebx, [esi - 0x80]
call fcn.0042afb0
add esp, 0xc
push eax
push ebx
call fcn.004cf360
inc dword [esp + 0x20]
add esp, 0xc
cmp byte [ebx], 0
je 0x4c4412
push 0x100
push ecx
push 1
push edi
call fcn.0042afb0
add esp, 0xc
push eax
push esi
call fcn.004cf360
add esp, 0xc
mov ecx, esi
call fcn.004cef70
push 0x10
push ecx
push 2
push edi
call fcn.0042afb0
add esp, 0xc
push eax
lea ecx, [esi + 0x100]
push ecx
call fcn.004cf360
add esp, 0xc
push 3
push edi
call fcn.0042af20
push 4
push edi
mov dword [esi + 0x110], eax
call fcn.0042af20
push 5
push edi
mov dword [esi + 0x114], eax
call fcn.0042af20
push 6
push edi
mov dword [esi + 0x118], eax
call fcn.0042af20
push 7
push edi
mov dword [esi + 0x11c], eax
call fcn.0042af20
push 8
push edi
mov dword [esi + 0x120], eax
call fcn.0042af20
add esp, 0x30
mov dword [esi + 0x124], eax
mov eax, dword [esp + 0x10]
cmp eax, 0x65
je 0x4c444c
mov edx, dword [esp + 0x24]
cmp dword [esp + 0x14], edx
jge 0x4c444c
cmp eax, 0x64
jne 0x4c4439
push edi
call fcn.0042a540
add esp, 4
add esi, 0x1ac
push 0
push edi
call fcn.0042afb0
add esp, 8
test eax, eax
jne 0x4c4350
push edi
call fcn.00429960
mov eax, dword [esp + 0x1c]
add esp, 4
push 0
call fcn.00475270
add esp, 4
cmp dword [esp + 0x14], 0
je 0x4c4475
mov eax, dword [0x506ef4]
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
mov ecx, dword [esp + 0x305c]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret