Function at 0x460390
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5eb728
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebx, ecx
xor ebp, ebp
mov dword [esp + 0x48], ebp
mov edi, dword [esp + 0x58]
lea esi, [edi + 0x2c]
call fcn.00429e60
test al, al
jne 0x46040c
mov ecx, dword [esp + 0x50]
lea eax, [edi + 0x10]
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.00429c30
add esp, 8
push 0xffffffffffffffff
push ebp
mov ecx, esi
mov byte [esp + 0x50], 1
call fcn.00402580
mov byte [esp + 0x48], 0
cmp dword [esp + 0x3c], 8
jb 0x46040c
mov edx, dword [esp + 0x28]
push edx
call fcn.0059b877
add esp, 4
cmp dword [edi + 0x98], ebp
je 0x460430
cmp dword [edi + 0x70], 3
jne 0x4606a4
mov edi, dword [esp + 0x54]
lea eax, [esp + 0x58]
call fcn.00456620
jmp 0x4606a4
push esi
call fcn.0042a550
add esp, 4
test al, al
je 0x460492
mov eax, dword [ebx]
mov edx, dword [eax + 0x34]
push 0xb7
push esi
push 0x10000001
mov ecx, ebx
call edx
mov dword [esp + 0x48], 0xffffffff
mov esi, dword [esp + 0x5c]
cmp esi, ebp
je 0x46048b
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x46048b
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x46048b
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
xor al, al
jmp 0x4606e0
push esi
call fcn.0042a480
add esp, 4
test al, al
jne 0x4604d9
mov eax, dword [ebx]
mov edx, dword [eax + 0x2c]
push esi
mov ecx, ebx
call edx
test al, al
jne 0x4604d9
mov eax, dword [ebx]
mov edx, dword [eax + 0x34]
push 0xb7
push esi
push 0x10000001
mov ecx, ebx
call edx
lea eax, [esp + 0x58]
mov dword [esp + 0x48], 0xffffffff
call fcn.00565750
xor al, al
jmp 0x4606e0
mov eax, edi
mov dword [esp + 0x50], ebp
call fcn.004902f0
test eax, eax
jbe 0x4605c5
mov al, byte [ebx + 0x100]
test al, al
jne 0x4605c5
mov ebp, dword [esp + 0x58]
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x460513
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 3
cmp dword [esp + 0x50], eax
jb 0x460518
call fcn.005b8b18
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x50]
mov edi, dword [ecx + edx*8 + 4]
test edi, edi
lea eax, [ecx + edx*8]
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edi
je 0x460540
lea eax, [edi + 4]
mov edx, 1
lock xadd dword [eax], edx
sub esp, 8
test edi, edi
mov eax, esp
mov byte [esp + 0x50], 2
mov dword [eax], ecx
mov dword [esp + 0x20], esp
mov dword [eax + 4], edi
je 0x460563
lea eax, [edi + 4]
mov ecx, 1
lock xadd dword [eax], ecx
mov edx, dword [esp + 0x5c]
push edx
push esi
mov ecx, ebx
call fcn.00460390
test al, al
je 0x460620
test edi, edi
mov byte [esp + 0x48], 0
je 0x4605ab
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4605ab
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4605ab
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
mov edi, dword [esp + 0x50]
add edi, 1
mov eax, ebp
mov dword [esp + 0x50], edi
call fcn.004902f0
cmp edi, eax
jb 0x4604ec
mov al, byte [ebx + 0x100]
test al, al
je 0x46065f
mov dword [esp + 0x48], 0xffffffff
mov esi, dword [esp + 0x5c]
test esi, esi
je 0x4604d2
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4604d2
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4604d2
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
xor al, al
jmp 0x4606e0
mov al, byte [ebx + 0x100]
test al, al
je 0x46064c
mov eax, dword [ebx + 0x104]
test eax, eax
je 0x46064c
movzx ecx, byte [ebx + 0x100]
mov eax, dword [eax]
mov edx, dword [eax + 0x14]
add eax, 0x14
push ecx
mov ecx, dword [ebx + 0x104]
call edx
lea eax, [esp + 0x1c]
mov byte [esp + 0x48], 0
call fcn.00565750
jmp 0x4604c1
cmp dword [esi + 0x18], 8
mov edi, dword [esp + 0x58]
mov ecx, dword [edi + 0x60]
jb 0x460671
mov eax, dword [esi + 4]
jmp 0x460674
lea eax, [esi + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x460688
call ebx
lea ecx, [edi + 0x58]
push ecx
lea edx, [edi + 0x50]
push edx
add edi, 0x48
push edi
mov eax, esi
call fcn.00438f00
add esp, 0xc
test al, al
jne 0x4606a4
call ebx
mov dword [esp + 0x48], 0xffffffff
mov esi, dword [esp + 0x5c]
test esi, esi
je 0x4606de
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4606de
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4606de
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0x10