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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x6d26f8]
xor eax, esp
mov dword [esp + 0x220], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 8]
push esi
push edi
mov dword [esp + 0x10], ebx
test al, 1
je 0x44a27b
test al, 2
je 0x44a27b
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], 0
mov edx, 0x104
lea eax, [esp + 0x20]
test edi, edi
je 0x44a099
mov esi, edi
mov ecx, eax
xor ebx, ebx
sub esi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x449fc1
movzx ecx, word [esi + eax]
test cx, cx
je 0x449fc1
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x449fa1
jmp 0x449fc5
test edx, edx
jne 0x449fcd
sub eax, 2
mov ebx, 0x8007007a
xor edx, edx
mov word [eax], dx
test ebx, ebx
jge 0x449ff0
lea eax, [edx + 0x57]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0059393a
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [esp + 0x10]
add edx, 0x14
je 0x44a07d
mov ecx, 0x104
mov eax, edx
cmp word [eax], 0
je 0x44a02e
add eax, 2
sub ecx, 1
jne 0x44a004
mov eax, 0x54f
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0059393a
mov esp, ebp
pop ebp
ret 0xc
test ecx, ecx
je 0x44a07d
mov eax, 0x104
sub eax, ecx
je 0x44a07d
sub eax, 1
je 0x44a07d
cmp word [edx + eax*2], 0x5c
je 0x44a068
sub eax, 1
jne 0x44a040
mov eax, 0x54f
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0059393a
mov esp, ebp
pop ebp
ret 0xc
test eax, eax
je 0x44a07d
lea eax, [edx + eax*2]
push eax
lea esi, [esp + 0x24]
call fcn.004498b0
test eax, eax
jge 0x44a0d6
mov eax, 0x54f
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0059393a
mov esp, ebp
pop ebp
ret 0xc
lea esi, [esp + 0x20]
sub ecx, esi
lea esi, [ecx + 0x14]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x44a0c8
movzx ecx, word [esi + eax]
test cx, cx
je 0x44a0c8
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x44a0a2
sub eax, 2
mov word [eax], dx
jmp 0x44a0da
test edx, edx
jne 0x44a0cf
sub eax, 2
xor edx, edx
mov word [eax], dx
jmp 0x44a0da
mov ebx, dword [esp + 0x10]
cmp byte [ebp + 8], 0
je 0x44a123
test edi, edi
jne 0x44a0f5
test byte [ebx + 0xc], 1
je 0x44a0f5
lea eax, [esp + 0x20]
call fcn.0044a2c0
jmp 0x44a100
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44a123
mov esi, 0x50
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0059393a
mov esp, ebp
pop ebp
ret 0xc
test edi, edi
jne 0x44a13f
test byte [ebx + 0xc], 1
je 0x44a13f
push 5
push 0x1f01ff
lea eax, [esp + 0x28]
call fcn.0044a550
jmp 0x44a15c
push 0
push 0x2000080
push 2
push 0
push 1
push 0x1f01ff
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x44a182
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0059393a
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [esp + 0x10]
push 0x696588
push 0
add edx, 0x21c
push 0x8000
push edx
call fcn.005a96de
add esp, 0xc
push eax
call fcn.004ef2a0
mov ebx, eax
add esp, 8
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x44a1bc
lea esi, [eax + 5]
jmp 0x44a24e
push ebx
push edi
mov ebx, 1
call fcn.0044a6c0
mov esi, eax
test esi, esi
jne 0x44a24a
mov esi, dword [esp + 0x10]
test byte [esi + 0xc], 2
je 0x44a1e6
lea eax, [esi + 0x404]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
mov ebx, dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
lea esp, [esp]
cmp dword [ebp + 0x10], 0
jne 0x44a20b
test byte [esi + 0xc], 1
je 0x44a20b
mov ecx, dword [esi + 0x10]
push ecx
lea eax, [esp + 0x24]
call fcn.0044a3a0
jmp 0x44a21a
mov edx, dword [esi + 0x10]
push edx
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x18], 0
jne 0x44a23a
test eax, eax
jne 0x44a242
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x44a248
push eax
call ebx
mov dword [esp + 0x18], eax
test eax, eax
jne 0x44a1f0
jmp 0x44a248
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
jmp 0x44a248
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
mov ebx, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x44a262
push ebx
call fcn.004eef10
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0059393a
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0059393a
mov esp, ebp
pop ebp
ret 0xc