Function at 0x4a7710
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62a041
mov eax, dword fs:[0]
push eax
sub esp, 0x484
mov eax, dword [0x717f80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x24]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x28]
push 0x118
mov dword [ebp - 0x480], eax
mov dword [eax], 0
lea eax, [ebp - 0x130]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x130]
call fcn.00468d60
push esi
lea ecx, [ebp - 0x130]
mov dword [ebp - 4], 0
call fcn.00469a00
push 0x5c
push 0x2f
lea ecx, [ebp - 0x130]
call fcn.0046c710
cmp byte [ebp + 0x20], 0
je 0x4a77b0
push 0
push dword [ebp + 0x10]
lea eax, [ebp - 0x130]
push eax
call fcn.004a6100
add esp, 0xc
lea ecx, [ebp - 0x130]
call fcn.0046c3b0
test al, al
je 0x4a77d2
mov eax, dword [edi]
mov ecx, edi
push str.openFileWin32:_file_path_is_empty.
call dword [eax + 0x14]
xor esi, esi
jmp 0x4a7af3
lea ecx, [ebp - 0x130]
call fcn.0046b630
cmp byte [ebp + 0x18], 0
mov edx, 2
mov ecx, dword [ebp + 0x10]
mov esi, edx
mov dword [ebp - 0x47c], eax
mov eax, 0x80
cmove esi, eax
mov al, byte [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x18], esi
test al, al
je 0x4a780f
test cl, cl
setne bl
add ebx, 3
jmp 0x4a7814
test cl, cl
cmovne ebx, edx
movzx eax, al
shl eax, 0x1f
mov edx, eax
or edx, 0x40000000
test cl, cl
push 0x118
cmove edx, eax
mov eax, 3
xor ecx, ecx
mov dword [ebp - 0x488], edx
cmp byte [ebp + 0x14], cl
mov dword [ebp - 0x14], ecx
cmovne eax, ecx
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x484], eax
lea eax, [ebp - 0x478]
push 0
push eax
mov dword [ebp - 0x48c], ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x478]
call fcn.00468d60
cmp dword [ebp - 0x47c], 0
mov byte [ebp - 4], 1
jl 0x4a78a3
push 0
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.004a5fb0
lea eax, [ebp - 0x478]
add esp, 0xc
mov dword [ebp - 0x48c], eax
jmp 0x4a78a9
lea eax, [ebp - 0x130]
push edi
lea ecx, [ebp - 0x14]
push ecx
push 0
push esi
push ebx
push 0
push dword [ebp - 0x484]
mov ecx, eax
push dword [ebp - 0x488]
call fcn.0046c230
push eax
push 0x7d1
call fcn.00536620
mov esi, eax
add esp, 0x28
test esi, esi
jne 0x4a7aca
mov dword [ebp - 0x47c], eax
mov dword [ebp - 0x490], eax
lea eax, [ebp - 0x490]
push edi
push eax
lea eax, [ebp - 0x47c]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.004a5920
add esp, 0x10
test al, al
je 0x4a7a62
mov eax, dword [ebp - 0x47c]
test al, 1
je 0x4a7a62
and eax, 0xfffffffe
push 0x118
mov dword [ebp - 0x47c], eax
lea eax, [ebp - 0x248]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x248]
call fcn.00468d60
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x248]
call fcn.00469a00
push 0x5c
push 0x2f
lea ecx, [ebp - 0x248]
call fcn.0046c710
push esi
lea eax, [ebp - 0x248]
push 1
push eax
call fcn.004a6100
add esp, 0xc
lea ecx, [ebp - 0x248]
call fcn.0046c3b0
test al, al
jne 0x4a79f4
push 0x118
lea eax, [ebp - 0x360]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x360]
call fcn.00468d60
push esi
lea eax, [ebp - 0x360]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.004a5fb0
add esp, 0xc
lea ecx, [ebp - 0x360]
push dword [ebp - 0x47c]
call fcn.0046c230
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x360]
mov dword [ebp - 0x47c], eax
call fcn.00468df0
jmp 0x4a7a12
push dword [ebp - 0x47c]
lea ecx, [ebp - 0x248]
call fcn.0046c230
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x47c], eax
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 1
call fcn.00468df0
cmp dword [ebp - 0x47c], 0
je 0x4a7a62
mov ecx, dword [ebp - 0x48c]
lea eax, [ebp - 0x14]
push edi
push eax
push 0
push dword [ebp - 0x18]
push ebx
push 0
push dword [ebp - 0x484]
push dword [ebp - 0x488]
call fcn.0046c230
push eax
push 0x7d1
call fcn.00536620
mov esi, eax
add esp, 0x28
test esi, esi
jne 0x4a7aca
push dword [ebp - 0x14]
mov ecx, edi
push str.windowsError
call fcn.004b3290
mov eax, dword [ebp - 0x14]
cmp eax, 5
je 0x4a7aa9
cmp eax, 0x20
je 0x4a7aa9
cmp eax, 0x21
je 0x4a7aa9
cmp eax, 3
je 0x4a7a9b
cmp eax, 2
je 0x4a7a9b
mov eax, dword [ebp - 0x480]
mov dword [eax], 3
jmp 0x4a7ab5
mov eax, dword [ebp - 0x480]
mov dword [eax], 2
jmp 0x4a7ab5
mov eax, dword [ebp - 0x480]
mov dword [eax], 1
lea eax, [ebp - 0x130]
mov ecx, edi
push eax
push str.localWindowsFilePath
call fcn.004b3300
jmp 0x4a7ae8
cmp byte [ebp + 0x1c], 0
je 0x4a7ae8
push 2
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp - 0x478]
call fcn.00468df0
lea ecx, [ebp - 0x130]
call fcn.00468df0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret