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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6e9471
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x82d084]
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.005d3890
test al, al
je 0x509436
mov ecx, dword [ebp + 0xc]
call fcn.005d3bc0
test al, al
je 0x509436
xor eax, eax
lea ecx, [ebp - 0x2c]
mov edx, esi
mov dword [ebp - 0x12c], eax
mov dword [ebp - 4], eax
call fcn.00504b90
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], 0
jne 0x508dbe
push 0x854764
mov dword [ebp - 0x12c], 4
call fcn.0067f606
add esp, 4
test eax, eax
jne 0x509459
push eax
push 0x761dc7
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 0x761dc7
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 0x508ae2
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.005f8830
add esp, 4
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xe4]
test eax, eax
setne bl
cmp edx, 0x10
jb 0x508b5a
mov ecx, dword [ebp - 0xf8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x508b50
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50945f
push edx
push ecx
call fcn.0067bc93
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 0x508bb3
mov ecx, dword [ebp - 0x110]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x508ba9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50945f
push edx
push ecx
call fcn.0067bc93
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x114]
cmp edx, 0x10
jb 0x508bf1
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x508be7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50945f
push edx
push ecx
call fcn.0067bc93
add esp, 8
test bl, bl
je 0x508da4
push 0
push 0x761dc7
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 0x761dc7
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 0x508c80
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.005f8830
add esp, 4
mov ecx, eax
mov eax, dword [ecx]
push str.DeleteFromVDIStorage
push str.Unable_to_retrieve_AppData_Roaming_Path_in__s
push 0x761dc7
push ecx
call dword [eax + 0x24]
mov byte [ebp - 4], 6
add esp, 0x10
mov edx, dword [ebp - 0xe4]
cmp edx, 0x10
jb 0x508d0d
mov ecx, dword [ebp - 0xf8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x508d03
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x509464
push edx
push ecx
call fcn.0067bc93
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 0x508d66
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x508d5c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x509464
push edx
push ecx
call fcn.0067bc93
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0xfc]
cmp edx, 0x10
jb 0x508da4
mov ecx, dword [ebp - 0x110]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x508d9a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x509464
push edx
push ecx
call fcn.0067bc93
add esp, 8
push 0x854764
call fcn.0067f62b
add esp, 4
test eax, eax
jne 0x509469
jmp 0x509267
call fcn.005f8600
lea eax, [ebp - 0x2c]
push eax
call fcn.005fbd20
mov esi, dword [eax]
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 8
test esi, esi
je 0x508de2
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 0x508e11
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.0068e800
add esp, 8
lea ecx, [ebp - 0xe0]
call fcn.00519430
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.005193d0
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xd4], 6
je 0x508e67
xor bl, bl
jmp 0x508ea3
lea ecx, [ebp - 0xdc]
call fcn.00441140
test eax, eax
jne 0x508ea1
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.0043ab30
mov bl, 1
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 8
call fcn.00518cb0
test bl, bl
jne 0x509231
push 0x854764
mov dword [ebp - 0x12c], 4
call fcn.0067f606
add esp, 4
test eax, eax
jne 0x50946f
push eax
push 0x761dc7
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 0x761dc7
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 0x508f56
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.005f8830
add esp, 4
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0xe4]
test eax, eax
setne bl
cmp edx, 0x10
jb 0x508fce
mov ecx, dword [ebp - 0xf8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x508fc4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x509475
push edx
push ecx
call fcn.0067bc93
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 0x509027
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x50901d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x509475
push edx
push ecx
call fcn.0067bc93
add esp, 8
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0xfc]
cmp edx, 0x10
jb 0x509065
mov ecx, dword [ebp - 0x110]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x50905b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x509475
push edx
push ecx
call fcn.0067bc93
add esp, 8
test bl, bl
je 0x50921c
push 0
push 0x761dc7
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 0x761dc7
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 0x5090f8
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.005f8830
add esp, 4
mov ecx, eax
mov eax, dword [ecx]
push str.DeleteFromVDIStorage
push str.Failed_in_deleting_content_of_file_in__s
push 0x761dc7
push ecx
call dword [eax + 0x24]
mov byte [ebp - 4], 0xe
add esp, 0x10
mov edx, dword [ebp - 0xe4]
cmp edx, 0x10
jb 0x509185
mov ecx, dword [ebp - 0xf8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x50917b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50947a
push edx
push ecx
call fcn.0067bc93
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 0x5091de
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5091d4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50947a
push edx
push ecx
call fcn.0067bc93
add esp, 8
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0xfc]
cmp edx, 0x10
jb 0x50921c
mov ecx, dword [ebp - 0x110]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x509212
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50947a
push edx
push ecx
call fcn.0067bc93
add esp, 8
push 0x854764
call fcn.0067f62b
add esp, 4
test eax, eax
jne 0x50947f
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 0x509260
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 0x50943b
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.0067ba01
mov esp, ebp
pop ebp
ret 0xc
push eax
call fcn.0067f8f8
call fcn.00691015
call fcn.00691015
push eax
call fcn.0067f8f8
push eax
call fcn.0067f8f8
call fcn.00691015
call fcn.00691015
push eax
call fcn.0067f8f8
int3