Function at 0x45f390
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478290
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x49fba8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x20], esi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x45f747
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x45f3d2
sub eax, edx
sar eax, 1
je 0x45f747
lea ecx, [ebp - 0x4c]
call fcn.004628c0
push ebx
push edi
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], ebx
call fcn.00462940
test eax, eax
jne 0x45f414
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 0xffffffff
call fcn.00462610
jmp 0x45f75a
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 1
call fcn.0045bcc0
add esp, 4
cmp eax, ebx
jne 0x45f443
push 0x49456c
lea eax, [ebp - 0x24]
push eax
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x24], 1
call sub.MSVCR80.dll__CxxThrowException
mov eax, dword [ebp + 0xc]
mov ebx, eax
and ebx, 0x200
jne 0x45f45b
test eax, 0x800
je 0x45f54c
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
test eax, eax
jne 0x45f4a9
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
push 0x2000000
push 3
push 2
push 0x10000000
push edi
mov ecx, esi
call eax
test eax, eax
jge 0x45f4a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x49456c
lea ecx, [ebp - 0x28]
push ecx
mov dword [esi + 0x10], eax
mov dword [ebp - 0x28], 0
call sub.MSVCR80.dll__CxxThrowException
mov dword [ebp - 0x14], 1
test ebx, ebx
je 0x45f4ec
mov eax, dword [esi + 4]
push 0
lea edx, [ebp - 0x1c]
push edx
push 0
push 0
push 0
push 0
push 0x900c4
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x45f4ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x49456c
lea ecx, [ebp - 0x2c]
push ecx
mov dword [esi + 0x10], eax
mov dword [ebp - 0x2c], 0
call sub.MSVCR80.dll__CxxThrowException
test dword [ebp + 0xc], 0x800
je 0x45f53d
mov ecx, dword [esi + 4]
push 0
lea edx, [ebp - 0x1c]
push edx
push 0
push 0
push 2
lea eax, [ebp - 0x18]
push eax
push 0x9c040
push ecx
mov dword [ebp - 0x18], 1
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x45f53d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x49456c
lea edx, [ebp - 0x30]
push edx
mov dword [esi + 0x10], eax
mov dword [ebp - 0x30], 0
call sub.MSVCR80.dll__CxxThrowException
cmp dword [ebp - 0x14], 0
je 0x45f54c
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
test dword [ebp + 0xc], 0x4000
je 0x45f58b
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
test eax, eax
jne 0x45f58b
push edi
call dword [sym.imp.ADVAPI32.dll_EncryptFileW]
test eax, eax
jne 0x45f58b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x10], eax
push 0x49456c
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x34], 0
call sub.MSVCR80.dll__CxxThrowException
mov dword [ebp - 4], 0
jmp 0x45f654
lea eax, [ebp - 0x38]
push edi
push eax
call fcn.004551e0
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.0044ef50
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x38]
mov ebx, eax
mov byte [ebp - 4], 0
call fcn.0044ee30
test ebx, ebx
jne 0x45f722
cmp dword [esi + 8], ebx
je 0x45f722
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp + 0xc]
mov dword [esi + 0x10], eax
call fcn.0044ee20
mov edx, dword [esi + 0x10]
push edx
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 4], 6
call fcn.0044fec0
add esp, 8
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.0044ef50
mov ecx, dword [esi + 0x10]
push eax
push ecx
lea edx, [ebp + 0xc]
push str.__d___s
push edx
call fcn.00451080
add esp, 0x10
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 6
call fcn.0044ee30
mov eax, dword [esi + 8]
mov edi, dword [eax]
lea ecx, [ebp + 0xc]
call fcn.0044ef50
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 8]
push eax
mov eax, dword [edi + 0x34]
push ecx
push 0xfffffffffffffff8
push 0x486a20
push 0x1ed
push str..WindowsLBWinBackupFile.cpp
push edx
call eax
add esp, 0x1c
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call fcn.0044ee30
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 0xffffffff
call fcn.00462610
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x171
push 0x486a8c
push ebx
call fcn.0044ffa0
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8