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

Disassembly:
push 0xffffffffffffffff
push 0x466cd6
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x48fac0]
xor eax, esp
mov dword [esp + 0x264], eax
push ebp
push esi
push edi
mov eax, dword [0x48fac0]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov eax, dword [esp + 0x290]
mov edi, dword [esp + 0x28c]
mov ebp, dword [esp + 0x288]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], eax
call fcn.00437eea
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40c6f1
push 0x80004005
call fcn.00401210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov dword [esp + 0x280], 0
call fcn.00437eea
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40c726
push 0x80004005
call fcn.00401210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x18]
push 0
push ecx
push 1
push edi
mov byte [esp + 0x290], 1
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x40c75c
push edi
push 4
push ebp
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test ebp, ebp
jne 0x40c764
xor eax, eax
jmp 0x40c77f
mov eax, ebp
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c770
sub eax, edx
sar eax, 1
push eax
push ebp
lea ecx, [esp + 0x1c]
call fcn.00402d50
push 4
push str..
lea ecx, [esp + 0x1c]
call fcn.004035d0
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x20], eax
jne 0x40c810
lea eax, [edi - 0x10]
mov byte [esp + 0x280], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c7d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x280], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c7fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40c9e5
mov ecx, 0x46e0a0
lea eax, [esp + 0x50]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40c846
test dx, dx
je 0x40c842
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40c846
add eax, 4
add ecx, 4
test dx, dx
jne 0x40c820
xor eax, eax
jmp 0x40c84b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40c972
mov ecx, 0x46e098
lea eax, [esp + 0x50]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40c886
test dx, dx
je 0x40c882
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40c886
add eax, 4
add ecx, 4
test dx, dx
jne 0x40c860
xor eax, eax
jmp 0x40c88b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40c972
test ebp, ebp
jne 0x40c89b
xor eax, eax
jmp 0x40c8af
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c8a0
sub eax, edx
sar eax, 1
push eax
push ebp
lea ecx, [esp + 0x18]
call fcn.00402d50
mov ecx, dword [esp + 0x10]
mov edi, dword [ecx - 0xc]
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
lea esi, [edi + 1]
sub eax, esi
or eax, edx
jge 0x40c8e3
push esi
lea ecx, [esp + 0x14]
call fcn.00402010
mov ecx, dword [esp + 0x10]
test esi, esi
mov word [ecx + edi*2], 0x5c
jl 0x40ca0c
cmp esi, dword [ecx - 8]
jg 0x40ca0c
lea eax, [esp + 0x50]
mov dword [ecx - 0xc], esi
mov word [ecx + esi*2], 0
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c910
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x18]
call fcn.004035d0
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x40c948
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [esp + 0x24], 0x10
je 0x40c964
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
push edx
push eax
push esi
call fcn.0040c680
add esp, 0xc
jmp 0x40c972
mov ecx, dword [esp + 0x1c]
push ecx
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
mov edi, dword [esp + 0x20]
lea edx, [esp + 0x24]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40c810
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x280], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c9b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x280], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c9e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x264]
xor ecx, esp
call fcn.00448e02
add esp, 0x274
ret
push 0x80070057
call fcn.00401210
int3