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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cde0b
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x4ff0f4]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push esi
push edi
mov eax, dword [0x4ff0f4]
xor eax, esp
push eax
lea eax, [esp + 0x250]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x10], ecx
test al, 1
je 0x443346
test al, 2
je 0x443346
mov esi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov edx, 0x104
lea eax, [esp + 0x3c]
cmp esi, ebx
je 0x443115
mov edi, esi
mov ecx, eax
sub edi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x44307e
movzx ecx, word [edi + eax]
test cx, cx
je 0x44307e
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x44305e
jmp 0x443082
test edx, edx
jne 0x44308a
sub eax, 2
mov ebx, 0x8007007a
xor edx, edx
mov word [eax], dx
test ebx, ebx
jge 0x44309b
lea eax, [edx + 0x57]
jmp 0x443348
mov edx, dword [esp + 0x10]
add edx, 0x14
je 0x44310b
mov ecx, 0x104
mov eax, edx
jmp 0x4430b0
cmp word [eax], 0
je 0x4430c8
add eax, 2
sub ecx, 1
jne 0x4430b0
mov eax, 0x54f
jmp 0x443348
test ecx, ecx
je 0x44310b
mov eax, 0x104
sub eax, ecx
je 0x44310b
sub eax, 1
je 0x44310b
lea ebx, [ebx]
cmp word [edx + eax*2], 0x5c
je 0x4430f6
sub eax, 1
jne 0x4430e0
mov eax, 0x54f
jmp 0x443348
test eax, eax
je 0x44310b
lea eax, [edx + eax*2]
push eax
lea esi, [esp + 0x40]
call fcn.004427e0
test eax, eax
jge 0x443152
mov eax, 0x54f
jmp 0x443348
lea edi, [esp + 0x3c]
sub ecx, edi
lea edi, [ecx + 0x14]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x443144
movzx ecx, word [edi + eax]
test cx, cx
je 0x443144
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x44311e
sub eax, 2
mov word [eax], dx
jmp 0x443155
test edx, edx
jne 0x44314b
sub eax, 2
xor edx, edx
mov word [eax], dx
jmp 0x443155
mov esi, dword [ebp + 0x10]
cmp byte [ebp + 8], 0
je 0x443190
test esi, esi
jne 0x443174
mov eax, dword [esp + 0x10]
test byte [eax + 0xc], 1
je 0x443174
lea eax, [esp + 0x3c]
call fcn.00443390
jmp 0x44317f
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x443190
mov edi, 0x50
mov eax, edi
jmp 0x443348
xor edx, edx
mov ebx, 7
lea eax, [esp + 0x3c]
mov word [esp + 0x24], dx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], 0
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4431b0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x28]
call fcn.00409920
mov dword [esp + 0x258], 0
lea edi, [esp + 0x20]
call fcn.00442ec0
mov dword [esp + 0x258], 0xffffffff
cmp dword [esp + 0x38], 8
jb 0x443201
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004a9741
add esp, 4
xor edx, edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], 0
mov word [esp + 0x24], dx
test esi, esi
jne 0x443234
mov eax, dword [esp + 0x10]
test byte [eax + 0xc], 1
je 0x443234
push 5
push 0x1f01ff
lea eax, [esp + 0x44]
call fcn.00443620
jmp 0x443251
push 0
push 0x2000080
push 2
push 0
push 1
push 0x1f01ff
lea ecx, [esp + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x443265
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x443348
mov edx, dword [esp + 0x10]
push 0x4eb21c
push 0
add edx, 0x21c
push 0x8000
push edx
call fcn.004b54a5
add esp, 0xc
push eax
call fcn.004bf828
mov ebx, eax
add esp, 8
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x44329f
lea edi, [eax + 5]
jmp 0x44332e
push ebx
push esi
mov ebx, 1
call fcn.00443790
mov edi, eax
test edi, edi
jne 0x44332a
mov edi, dword [esp + 0x10]
test byte [edi + 0xc], 2
je 0x4432c9
lea eax, [edi + 0x404]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
mov ebx, dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
nop
cmp dword [ebp + 0x10], 0
jne 0x4432eb
test byte [edi + 0xc], 1
je 0x4432eb
mov ecx, dword [edi + 0x10]
push ecx
lea eax, [esp + 0x40]
call fcn.00443470
jmp 0x4432fa
mov edx, dword [edi + 0x10]
push edx
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x18], 0
jne 0x44331a
test eax, eax
jne 0x443322
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x443328
push eax
call ebx
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4432d0
jmp 0x443328
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
jmp 0x443328
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
mov ebx, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x443342
push ebx
call fcn.004bf5b5
add esp, 4
mov eax, edi
jmp 0x443348
xor eax, eax
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.004a974c
mov esp, ebp
pop ebp
ret 0xc