Function at 0x509f90
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x734851
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x857060]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x130], edi
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x134], edi
call fcn.0050bac0
test al, al
je 0x50a9a5
mov ecx, dword [ebp + 0xc]
call fcn.0050bdb0
test al, al
je 0x50a9a5
xor eax, eax
lea ecx, [ebp - 0x2c]
mov edx, esi
mov dword [ebp - 0x12c], eax
mov dword [ebp - 4], eax
call fcn.00506440
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], 0
jne 0x50a36f
push 0
push 0x798f50
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x12c], 4
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
mov byte [ebp - 0x128], 0
call fcn.00426e90
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x110]
push 0
push 0x798f50
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0xf
mov byte [ebp - 0x110], 0
call fcn.00426e90
mov byte [ebp - 4], 3
mov edx, dword [edi + 4]
mov ecx, edx
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0xf
mov byte [ebp - 0xf8], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50a0a3
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xf8]
call fcn.00426e90
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 4
push eax
lea edx, [ebp - 0x110]
lea ecx, [ebp - 0xf8]
call fcn.00535240
add esp, 4
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xe4]
test eax, eax
setne bl
cmp edx, 0x10
jb 0x50a11b
mov ecx, dword [ebp - 0xf8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x50a111
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50a9c8
push edx
push ecx
call fcn.006d0bf7
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0xfc]
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0xf
mov byte [ebp - 0xf8], 0
cmp edx, 0x10
jb 0x50a174
mov ecx, dword [ebp - 0x110]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x50a16a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50a9c8
push edx
push ecx
call fcn.006d0bf7
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x114]
cmp edx, 0x10
jb 0x50a1b2
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x50a1a8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50a9c8
push edx
push ecx
call fcn.006d0bf7
add esp, 8
test bl, bl
je 0x50a7ee
push 0
push 0x798f50
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0xf
mov byte [ebp - 0x110], 0
call fcn.00426e90
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x128]
push 0
push 0x798f50
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
mov byte [ebp - 0x128], 0
call fcn.00426e90
mov byte [ebp - 4], 6
mov edx, dword [edi + 4]
mov ecx, edx
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0xf
mov byte [ebp - 0xf8], 0
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50a240
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xf8]
call fcn.00426e90
lea eax, [ebp - 0x110]
mov byte [ebp - 4], 7
push eax
lea edx, [ebp - 0x128]
lea ecx, [ebp - 0xf8]
call fcn.00535240
add esp, 4
mov ecx, eax
mov eax, dword [ecx]
push str.DeleteFromVDIStorage
push str.Unable_to_retrieve_AppData_Roaming_Path_in__s
push 0x798f50
push ecx
call dword [eax + 0x24]
mov edx, dword [ebp - 0xe4]
add esp, 0x10
cmp edx, 0x10
jb 0x50a2c9
mov ecx, dword [ebp - 0xf8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x50a2bf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50a9cd
push edx
push ecx
call fcn.006d0bf7
add esp, 8
mov edx, dword [ebp - 0x114]
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0xf
mov byte [ebp - 0xf8], 0
cmp edx, 0x10
jb 0x50a31e
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x50a314
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50a9cd
push edx
push ecx
call fcn.006d0bf7
add esp, 8
mov edx, dword [ebp - 0xfc]
cmp edx, 0x10
jb 0x50a7ee
mov ecx, dword [ebp - 0x110]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x50a352
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50a9cd
push edx
push ecx
call fcn.006d0bf7
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.00426ce0
mov eax, dword [ebp - 0x12c]
jmp 0x50a9aa
call fcn.00535000
lea eax, [ebp - 0x2c]
push eax
call fcn.00538220
mov esi, dword [eax]
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 8
test esi, esi
je 0x50a393
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
test cl, 2
je 0x50a3c2
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
and ecx, 0xfffffffd
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0xb0
lea eax, [ebp - 0xe0]
push 0
push eax
call fcn.006e9470
add esp, 8
lea ecx, [ebp - 0xe0]
call fcn.00545360
mov byte [ebp - 4], 9
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0xe0]
cmovae eax, dword [ebp - 0x2c]
sub esp, 8
push eax
call fcn.00545300
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xd4], 6
je 0x50a418
xor bl, bl
jmp 0x50a454
lea ecx, [ebp - 0xdc]
call fcn.00449b70
test eax, eax
jne 0x50a452
mov eax, dword [ebp - 0xe0]
lea ecx, [ebp - 0xe0]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00429ca0
mov bl, 1
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 8
call fcn.00544c30
test bl, bl
jne 0x50a7b8
push 0
push 0x798f50
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x12c], 4
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0xf
mov byte [ebp - 0x110], bl
call fcn.00426e90
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x128]
push 0
push 0x798f50
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
mov byte [ebp - 0x128], bl
call fcn.00426e90
mov byte [ebp - 4], 0xb
mov edx, dword [edi + 4]
mov ecx, edx
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0xf
mov byte [ebp - 0xf8], bl
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50a4f7
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0xf8]
call fcn.00426e90
lea eax, [ebp - 0x110]
mov byte [ebp - 4], 0xc
push eax
lea edx, [ebp - 0x128]
lea ecx, [ebp - 0xf8]
call fcn.00535240
add esp, 4
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0xe4]
test eax, eax
setne bl
cmp edx, 0x10
jb 0x50a56f
mov ecx, dword [ebp - 0xf8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x50a565
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50a9d2
push edx
push ecx
call fcn.006d0bf7
add esp, 8
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x114]
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0xf
mov byte [ebp - 0xf8], 0
cmp edx, 0x10
jb 0x50a5c8
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x50a5be
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50a9d2
push edx
push ecx
call fcn.006d0bf7
add esp, 8
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0xfc]
cmp edx, 0x10
jb 0x50a606
mov ecx, dword [ebp - 0x110]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x50a5fc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50a9d2
push edx
push ecx
call fcn.006d0bf7
add esp, 8
test bl, bl
je 0x50a7b8
push 0
push 0x798f50
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0xf
mov byte [ebp - 0x110], 0
call fcn.00426e90
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x128]
push 0
push 0x798f50
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
mov byte [ebp - 0x128], 0
call fcn.00426e90
mov edx, dword [ebp - 0x130]
mov byte [ebp - 4], 0xe
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0xf
mov edx, dword [edx + 4]
mov ecx, edx
mov byte [ebp - 0xf8], 0
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50a6a0
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0xf8]
call fcn.00426e90
lea eax, [ebp - 0x110]
mov byte [ebp - 4], 0xf
push eax
lea edx, [ebp - 0x128]
lea ecx, [ebp - 0xf8]
call fcn.00535240
add esp, 4
mov ecx, eax
mov eax, dword [ecx]
push str.DeleteFromVDIStorage
push str.Failed_in_deleting_content_of_file_in__s
push 0x798f50
push ecx
call dword [eax + 0x24]
mov edx, dword [ebp - 0xe4]
add esp, 0x10
cmp edx, 0x10
jb 0x50a729
mov ecx, dword [ebp - 0xf8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x50a71f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50a9d7
push edx
push ecx
call fcn.006d0bf7
add esp, 8
mov edx, dword [ebp - 0x114]
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0xf
mov byte [ebp - 0xf8], 0
cmp edx, 0x10
jb 0x50a77e
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x50a774
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50a9d7
push edx
push ecx
call fcn.006d0bf7
add esp, 8
mov edx, dword [ebp - 0xfc]
cmp edx, 0x10
jb 0x50a7b8
mov ecx, dword [ebp - 0x110]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x50a7ae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50a9d7
push edx
push ecx
call fcn.006d0bf7
add esp, 8
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
test cl, 2
jne 0x50a7e7
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
or ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea ecx, [ebp - 0x2c]
call fcn.00426ce0
mov eax, dword [ebp - 0x12c]
jmp 0x50a9aa
mov eax, 5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret 0xc
call fcn.006f1bea
call fcn.006f1bea
call fcn.006f1bea
call fcn.006f1bea
int3