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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525a7b
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x571a38]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x10], esi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], esi
call fcn.0040b74b
push 1
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00402ca0
mov eax, dword [eax]
mov ecx, 0x552934
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401bd7
cmp dx, si
je 0x401bd3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401bd7
add eax, 4
add ecx, 4
cmp dx, si
jne 0x401bb1
xor eax, eax
jmp 0x401bdc
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
mov eax, dword [ebp - 0x14]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401c00
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x401c13
push 1
push 0x552934
lea ecx, [ebp + 8]
call fcn.00405e30
push 3
push 0x552938
lea ecx, [ebp + 8]
call fcn.00405e30
mov ecx, dword [ebp + 8]
push esi
push ecx
lea ecx, [ebp - 0x50]
call fcn.0040b7f2
cmp eax, esi
je 0x401f85
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x50]
call fcn.0040b3bb
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x2c], eax
call fcn.0040bace
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x14]
mov esi, dword [edx - 0xc]
test esi, esi
js 0x401fd1
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x401c80
push esi
lea ecx, [ebp - 0x14]
call fcn.00408b70
mov edx, dword [ebp - 0x14]
lea eax, [esi + 1]
push eax
push edx
call fcn.004fd45b
mov eax, dword [ebp - 0x14]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x401fd1
mov dword [eax - 0xc], esi
mov edx, dword [ebp - 0x14]
xor ecx, ecx
push 3
lea eax, [ebp - 0x1c]
mov word [edx + esi*2], cx
push eax
lea ecx, [ebp - 0x14]
call fcn.00402d20
mov byte [ebp - 4], 3
or dword [ebp - 0x10], 1
mov eax, dword [eax]
mov ecx, 0x552940
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401ce8
test dx, dx
je 0x401ce4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401ce8
add eax, 4
add ecx, 4
test dx, dx
jne 0x401cc2
xor eax, eax
jmp 0x401ced
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x401d48
push 4
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00402ca0
or dword [ebp - 0x10], 2
mov eax, dword [eax]
mov ecx, 0x552948
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401d36
test dx, dx
je 0x401d32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401d36
add eax, 4
add ecx, 4
test dx, dx
jne 0x401d10
xor eax, eax
jmp 0x401d3b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x401d48
mov bl, 1
jmp 0x401d4a
xor bl, bl
test byte [ebp - 0x10], 2
je 0x401d73
mov eax, dword [ebp - 0x18]
and dword [ebp - 0x10], 0xfffffffd
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401d73
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 2
test byte [ebp - 0x10], 1
je 0x401da3
mov eax, dword [ebp - 0x1c]
and dword [ebp - 0x10], 0xfffffffe
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401da3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x401f58
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x50]
call fcn.0040ba35
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401de1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, 1
je 0x401e1e
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x50]
call fcn.0040ba35
mov eax, dword [eax]
and ebx, 0xfffffffe
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401e1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x50]
call fcn.0040ba35
mov esi, eax
mov byte [ebp - 4], 4
mov eax, dword [edi + 4]
cmp esi, eax
jae 0x401e9f
mov edx, dword [edi]
cmp edx, esi
ja 0x401e9f
mov ecx, dword [edi + 8]
sub esi, edx
sar esi, 2
cmp eax, ecx
jne 0x401e86
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x401fdb
sub ecx, edx
inc eax
sar ecx, 2
cmp eax, ecx
jbe 0x401e86
mov edx, ecx
shr edx, 1
mov ebx, 0x3fffffff
sub ebx, edx
cmp ebx, ecx
jae 0x401e76
xor ecx, ecx
jmp 0x401e78
add ecx, edx
cmp ecx, eax
jae 0x401e7e
mov ecx, eax
push ecx
mov ecx, edi
call fcn.00405240
mov ecx, dword [edi + 4]
mov edx, dword [edi]
lea eax, [edx + esi*4]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], ecx
mov byte [ebp - 4], 5
test ecx, ecx
je 0x401efc
push eax
jmp 0x401ef7
mov ecx, dword [edi + 8]
cmp eax, ecx
jne 0x401ee5
mov edx, dword [edi]
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x401fdb
sub ecx, edx
inc eax
sar ecx, 2
cmp eax, ecx
jbe 0x401ee5
mov edx, ecx
shr edx, 1
mov ebx, 0x3fffffff
sub ebx, edx
cmp ebx, ecx
jae 0x401ed5
xor ecx, ecx
jmp 0x401ed7
add ecx, edx
cmp ecx, eax
jae 0x401edd
mov ecx, eax
push ecx
mov ecx, edi
call fcn.00405240
mov ecx, dword [edi + 4]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov byte [ebp - 4], 6
test ecx, ecx
je 0x401efc
push esi
call fcn.004080e0
add dword [edi + 4], 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401f23
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [ebp - 0x50]
call eax
test eax, eax
je 0x401f58
lea ecx, [ebp - 0x50]
call fcn.0040b70d
test eax, eax
jne 0x401f58
push edi
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push ecx
lea ecx, [ebp - 0x50]
call fcn.0040ba35
call fcn.00401b60
add esp, 8
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401f7b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x2c], 0
jne 0x401c3a
lea ecx, [ebp - 0x50]
call fcn.0040b2d5
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0
call fcn.0040b77d
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401fbf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call 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
push 0x80070057
call fcn.00408c10
push str.vector_T__too_long
call fcn.00518541
int3