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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x6531f0]
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 0x43f5ab
test al, 2
je 0x43f5ab
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], 0
mov edx, 0x104
lea eax, [esp + 0x20]
test edi, edi
je 0x43f3c9
mov esi, edi
mov ecx, eax
xor ebx, ebx
sub esi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x43f2f1
movzx ecx, word [esi + eax]
test cx, cx
je 0x43f2f1
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x43f2d1
jmp 0x43f2f5
test edx, edx
jne 0x43f2fd
sub eax, 2
mov ebx, 0x8007007a
xor edx, edx
mov word [eax], dx
test ebx, ebx
jge 0x43f320
lea eax, [edx + 0x57]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.004fdb4a
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [esp + 0x10]
add edx, 0x14
je 0x43f3ad
mov ecx, 0x104
mov eax, edx
cmp word [eax], 0
je 0x43f35e
add eax, 2
sub ecx, 1
jne 0x43f334
mov eax, 0x54f
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.004fdb4a
mov esp, ebp
pop ebp
ret 0xc
test ecx, ecx
je 0x43f3ad
mov eax, 0x104
sub eax, ecx
je 0x43f3ad
sub eax, 1
je 0x43f3ad
cmp word [edx + eax*2], 0x5c
je 0x43f398
sub eax, 1
jne 0x43f370
mov eax, 0x54f
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.004fdb4a
mov esp, ebp
pop ebp
ret 0xc
test eax, eax
je 0x43f3ad
lea eax, [edx + eax*2]
push eax
lea esi, [esp + 0x24]
call fcn.0043eb90
test eax, eax
jge 0x43f406
mov eax, 0x54f
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.004fdb4a
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 0x43f3f8
movzx ecx, word [esi + eax]
test cx, cx
je 0x43f3f8
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x43f3d2
sub eax, 2
mov word [eax], dx
jmp 0x43f40a
test edx, edx
jne 0x43f3ff
sub eax, 2
xor edx, edx
mov word [eax], dx
jmp 0x43f40a
mov ebx, dword [esp + 0x10]
cmp byte [ebp + 8], 0
je 0x43f453
test edi, edi
jne 0x43f425
test byte [ebx + 0xc], 1
je 0x43f425
lea eax, [esp + 0x20]
call fcn.0043f5f0
jmp 0x43f430
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43f453
mov esi, 0x50
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.004fdb4a
mov esp, ebp
pop ebp
ret 0xc
test edi, edi
jne 0x43f46f
test byte [ebx + 0xc], 1
je 0x43f46f
push 5
push 0x1f01ff
lea eax, [esp + 0x28]
call fcn.0043f880
jmp 0x43f48c
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 0x43f4b2
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.004fdb4a
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [esp + 0x10]
push 0x633ccc
push 0
add edx, 0x21c
push 0x8000
push edx
call fcn.0051219e
add esp, 0xc
push eax
call fcn.00496bb0
mov ebx, eax
add esp, 8
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x43f4ec
lea esi, [eax + 5]
jmp 0x43f57e
push ebx
push edi
mov ebx, 1
call fcn.0043f9f0
mov esi, eax
test esi, esi
jne 0x43f57a
mov esi, dword [esp + 0x10]
test byte [esi + 0xc], 2
je 0x43f516
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 0x43f53b
test byte [esi + 0xc], 1
je 0x43f53b
mov ecx, dword [esi + 0x10]
push ecx
lea eax, [esp + 0x24]
call fcn.0043f6d0
jmp 0x43f54a
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 0x43f56a
test eax, eax
jne 0x43f572
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x43f578
push eax
call ebx
mov dword [esp + 0x18], eax
test eax, eax
jne 0x43f520
jmp 0x43f578
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
jmp 0x43f578
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 0x43f592
push ebx
call fcn.00496820
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.004fdb4a
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.004fdb4a
mov esp, ebp
pop ebp
ret 0xc