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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6eb2e1
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x82f084]
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.005d50a0
test al, al
je 0x50ac76
mov ecx, dword [ebp + 0xc]
call fcn.005d53d0
test al, al
je 0x50ac76
xor eax, eax
lea ecx, [ebp - 0x2c]
mov edx, esi
mov dword [ebp - 0x12c], eax
mov dword [ebp - 4], eax
call fcn.005063d0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], 0
jne 0x50a5fe
push 0x856764
mov dword [ebp - 0x12c], 4
call fcn.00681256
add esp, 4
test eax, eax
jne 0x50ac99
push eax
push 0x762e6f
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], 0xf
mov byte [ebp - 0x128], al
call fcn.00430160
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x110]
push 0
push 0x762e6f
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0xf
mov byte [ebp - 0x110], 0
call fcn.00430160
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 0x50a322
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xf8]
call fcn.00430160
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 4
push eax
lea edx, [ebp - 0x110]
lea ecx, [ebp - 0xf8]
call fcn.005fa030
add esp, 4
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xe4]
test eax, eax
setne bl
cmp edx, 0x10
jb 0x50a39a
mov ecx, dword [ebp - 0xf8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x50a390
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50ac9f
push edx
push ecx
call fcn.0067d8e3
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 0x50a3f3
mov ecx, dword [ebp - 0x110]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x50a3e9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50ac9f
push edx
push ecx
call fcn.0067d8e3
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x114]
cmp edx, 0x10
jb 0x50a431
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x50a427
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50ac9f
push edx
push ecx
call fcn.0067d8e3
add esp, 8
test bl, bl
je 0x50a5e4
push 0
push 0x762e6f
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0xf
mov byte [ebp - 0x110], 0
call fcn.00430160
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x128]
push 0
push 0x762e6f
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
mov byte [ebp - 0x128], 0
call fcn.00430160
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 0x50a4c0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xf8]
call fcn.00430160
lea eax, [ebp - 0x110]
mov byte [ebp - 4], 7
push eax
lea edx, [ebp - 0x128]
lea ecx, [ebp - 0xf8]
call fcn.005fa030
add esp, 4
mov ecx, eax
mov eax, dword [ecx]
push str.DeleteFromVDIStorage
push str.Unable_to_retrieve_AppData_Roaming_Path_in__s
push 0x762e6f
push ecx
call dword [eax + 0x24]
mov byte [ebp - 4], 6
add esp, 0x10
mov edx, dword [ebp - 0xe4]
cmp edx, 0x10
jb 0x50a54d
mov ecx, dword [ebp - 0xf8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x50a543
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50aca4
push edx
push ecx
call fcn.0067d8e3
add esp, 8
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x114]
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0xf
mov byte [ebp - 0xf8], 0
cmp edx, 0x10
jb 0x50a5a6
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x50a59c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50aca4
push edx
push ecx
call fcn.0067d8e3
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0xfc]
cmp edx, 0x10
jb 0x50a5e4
mov ecx, dword [ebp - 0x110]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x50a5da
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50aca4
push edx
push ecx
call fcn.0067d8e3
add esp, 8
push 0x856764
call fcn.0068127b
add esp, 4
test eax, eax
jne 0x50aca9
jmp 0x50aaa7
call fcn.005f9e00
lea eax, [ebp - 0x2c]
push eax
call fcn.005fd520
mov esi, dword [eax]
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 8
test esi, esi
je 0x50a622
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 0x50a651
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.00690450
add esp, 8
lea ecx, [ebp - 0xe0]
call fcn.0051ac60
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.0051ac00
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xd4], 6
je 0x50a6a7
xor bl, bl
jmp 0x50a6e3
lea ecx, [ebp - 0xdc]
call fcn.00441420
test eax, eax
jne 0x50a6e1
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.0043acc0
mov bl, 1
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 8
call fcn.0051a4f0
test bl, bl
jne 0x50aa71
push 0x856764
mov dword [ebp - 0x12c], 4
call fcn.00681256
add esp, 4
test eax, eax
jne 0x50acaf
push eax
push 0x762e6f
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x100], eax
mov dword [ebp - 0xfc], 0xf
mov byte [ebp - 0x110], al
call fcn.00430160
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x128]
push 0
push 0x762e6f
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
mov byte [ebp - 0x128], bl
call fcn.00430160
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 0x50a796
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0xf8]
call fcn.00430160
lea eax, [ebp - 0x110]
mov byte [ebp - 4], 0xc
push eax
lea edx, [ebp - 0x128]
lea ecx, [ebp - 0xf8]
call fcn.005fa030
add esp, 4
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0xe4]
test eax, eax
setne bl
cmp edx, 0x10
jb 0x50a80e
mov ecx, dword [ebp - 0xf8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x50a804
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50acb5
push edx
push ecx
call fcn.0067d8e3
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 0x50a867
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x50a85d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50acb5
push edx
push ecx
call fcn.0067d8e3
add esp, 8
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0xfc]
cmp edx, 0x10
jb 0x50a8a5
mov ecx, dword [ebp - 0x110]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x50a89b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50acb5
push edx
push ecx
call fcn.0067d8e3
add esp, 8
test bl, bl
je 0x50aa5c
push 0
push 0x762e6f
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0xf
mov byte [ebp - 0x110], 0
call fcn.00430160
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x128]
push 0
push 0x762e6f
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
mov byte [ebp - 0x128], 0
call fcn.00430160
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]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50a938
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0xf8]
call fcn.00430160
lea eax, [ebp - 0x110]
mov byte [ebp - 4], 0xf
push eax
lea edx, [ebp - 0x128]
lea ecx, [ebp - 0xf8]
call fcn.005fa030
add esp, 4
mov ecx, eax
mov eax, dword [ecx]
push str.DeleteFromVDIStorage
push str.Failed_in_deleting_content_of_file_in__s
push 0x762e6f
push ecx
call dword [eax + 0x24]
mov byte [ebp - 4], 0xe
add esp, 0x10
mov edx, dword [ebp - 0xe4]
cmp edx, 0x10
jb 0x50a9c5
mov ecx, dword [ebp - 0xf8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x50a9bb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50acba
push edx
push ecx
call fcn.0067d8e3
add esp, 8
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x114]
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0xf
mov byte [ebp - 0xf8], 0
cmp edx, 0x10
jb 0x50aa1e
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x50aa14
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50acba
push edx
push ecx
call fcn.0067d8e3
add esp, 8
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0xfc]
cmp edx, 0x10
jb 0x50aa5c
mov ecx, dword [ebp - 0x110]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x50aa52
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50acba
push edx
push ecx
call fcn.0067d8e3
add esp, 8
push 0x856764
call fcn.0068127b
add esp, 4
test eax, eax
jne 0x50acbf
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 0x50aaa0
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.0042fd70
mov eax, dword [ebp - 0x12c]
jmp 0x50ac7b
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.0067d651
mov esp, ebp
pop ebp
ret 0xc
push eax
call fcn.00681548
call fcn.00692c65
call fcn.00692c65
push eax
call fcn.00681548
push eax
call fcn.00681548
call fcn.00692c65
call fcn.00692c65
push eax
call fcn.00681548
int3