Function at 0x41c870
Capabilities:
Get file attributes
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x489f60
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ada80]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, 1
sub dword [esp + 0x70], esi
lea ecx, [esp + 0x48]
mov dword [esp + 0x68], esi
mov dword [esp + 0x20], 0
call fcn.0043b2f4
mov byte [esp + 0x68], 2
call fcn.0043a8f1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41c8d4
push 0x80004005
call fcn.004010b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x68], 3
call fcn.0043a8f1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41c903
push 0x80004005
call fcn.004010b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
push esi
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x84]
mov byte [esp + 0x70], 4
call fcn.004055d0
mov eax, dword [eax]
mov ecx, 0x494aec
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41c957
test dx, dx
je 0x41c953
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41c957
add eax, 4
add ecx, 4
test dx, dx
jne 0x41c931
xor eax, eax
jmp 0x41c95c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov eax, dword [esp + 0x24]
setne bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41c981
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x41c997
push esi
push 0x494aec
lea ecx, [esp + 0x84]
call fcn.00405eb0
mov ecx, dword [esp + 0x7c]
push ecx
lea edx, [esp + 0x2c]
push str._s.
push edx
call fcn.00406270
mov eax, dword [esp + 0x34]
add esp, 0xc
push 0
push eax
lea ecx, [esp + 0x50]
call fcn.0043b38c
test eax, eax
je 0x41cf09
lea ecx, [esp + 0x48]
call fcn.0043b128
mov edx, dword [esp + 0x48]
mov dword [esp + 0x40], eax
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x4c]
call eax
test eax, eax
je 0x41caf1
lea ecx, [esp + 0x48]
call fcn.0043b2b5
test eax, eax
jne 0x41cefe
cmp dword [esp + 0x70], eax
je 0x41cefe
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x4c]
call fcn.0043b5cf
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 5
call fcn.00401c20
mov byte [esp + 0x68], 4
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41ca47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x48]
mov eax, dword [edx + 0x38]
push 1
lea ecx, [esp + 0x4c]
call eax
mov esi, dword [esp + 0x18]
test eax, eax
je 0x41ca70
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x84]
push ecx
push edx
push eax
mov eax, dword [esp + 0x8c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x34], esp
mov edi, esp
push eax
call fcn.00401fe0
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x7c], 6
lea eax, [esi - 0x10]
mov dword [esp + 0x30], esp
mov edi, esp
push eax
call fcn.00401fe0
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x8c]
add esp, 4
add eax, 0x10
push ecx
mov dword [edi], eax
mov eax, dword [esp + 0x88]
push edx
push eax
mov byte [esp + 0x88], 4
call fcn.0041c870
add esp, 0x20
add dword [esp + 0x20], eax
jmp 0x41cefe
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x4c]
call fcn.0043b5cf
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 7
call fcn.00401c20
mov byte [esp + 0x68], 4
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41cb33
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
mov edi, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x41cb59
push edi
lea ecx, [esp + 0x1c]
call fcn.00401f90
mov esi, dword [esp + 0x18]
lea ecx, [edi + 1]
push ecx
push esi
call fcn.0045841b
add esp, 8
test edi, edi
jl 0x41cfd7
cmp edi, dword [esi - 8]
jg 0x41cfd7
push 4
lea eax, [esp + 0x38]
xor edx, edx
mov dword [esi - 0xc], edi
push eax
lea ecx, [esp + 0x20]
mov word [esi + edi*2], dx
call fcn.004055d0
mov eax, dword [eax]
mov ecx, 0x494bec
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41cbbd
test dx, dx
je 0x41cbb9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41cbbd
add eax, 4
add ecx, 4
test dx, dx
jne 0x41cb97
xor eax, eax
jmp 0x41cbc2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov eax, dword [esp + 0x34]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cbe7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x41cefe
call fcn.0043a8f1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x41c8ca
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x68], 8
call fcn.0043a8f1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x41c8ca
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov bl, 9
lea ecx, [esp + 0x24]
mov byte [esp + 0x68], bl
mov esi, dword [esp + 0x18]
push ecx
lea edi, [esp + 0x20]
call fcn.00426120
mov ebp, dword [esp + 0x28]
mov edi, dword [ebp - 0xc]
mov esi, eax
mov eax, dword [ebp - 8]
mov ecx, 1
sub ecx, dword [ebp - 4]
sub eax, edi
add esp, 4
or eax, ecx
jge 0x41cc7f
push edi
lea ecx, [esp + 0x28]
call fcn.00401f90
mov ebp, dword [esp + 0x24]
lea edx, [edi + 1]
push edx
push ebp
call fcn.0045841b
add esp, 8
test edi, edi
jl 0x41cfd7
cmp edi, dword [ebp - 8]
jg 0x41cfd7
xor eax, eax
mov dword [ebp - 0xc], edi
mov word [ebp + edi*2], ax
test esi, esi
je 0x41ceb8
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 0xc], eax
je 0x41ceb8
mov esi, ecx
push 0x5c
push esi
call fcn.00458570
add esp, 8
test eax, eax
jne 0x41ccd2
or eax, 0xffffffff
jmp 0x41ccd6
sub eax, esi
sar eax, 1
inc eax
push eax
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x24]
call fcn.004087f0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 0xa
call fcn.00401c20
mov byte [esp + 0x68], bl
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cd19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea edi, [esp + 0x1c]
call fcn.00405570
mov ecx, dword [esp + 0x74]
mov ebx, dword [ecx + 8]
xor esi, esi
test ebx, ebx
jle 0x41ceb8
mov edi, dword [esp + 0x1c]
test esi, esi
jl 0x41cfd2
cmp esi, ebx
jge 0x41cfd2
mov edx, dword [esp + 0x74]
mov eax, dword [edx + 4]
lea ecx, [eax + esi*4]
xor eax, eax
test edi, edi
setne al
test eax, eax
je 0x41c8ca
mov eax, dword [ecx]
mov ecx, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41cd8a
test dx, dx
je 0x41cd86
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41cd8a
add eax, 4
add ecx, 4
test dx, dx
jne 0x41cd64
xor eax, eax
jmp 0x41cd8f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x41cda2
inc esi
cmp esi, ebx
jl 0x41cd37
jmp 0x41ceb8
mov eax, dword [esp + 0x88]
inc dword [eax]
mov esi, dword [esp + 0x78]
mov eax, dword [esi + 8]
xor edi, edi
test eax, eax
jle 0x41ce01
test edi, edi
jl 0x41cfd2
cmp edi, eax
jge 0x41cfd2
mov ecx, dword [esi + 4]
lea eax, [ecx + edi*4]
mov eax, dword [eax]
test eax, eax
je 0x41cdf9
cmp dword [ebp - 0xc], 0
jl 0x41cdf9
push eax
push ebp
call fcn.0045859c
add esp, 8
test eax, eax
je 0x41cdf9
sub eax, ebp
sar eax, 1
cmp eax, 0xffffffff
jne 0x41ceb8
mov esi, dword [esp + 0x78]
mov eax, dword [esi + 8]
inc edi
cmp edi, eax
jl 0x41cdb8
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x48]
inc dword [eax]
mov eax, dword [edx + 0x38]
push 1
lea ecx, [esp + 0x4c]
call eax
mov esi, dword [esp + 0x18]
test eax, eax
je 0x41ce33
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [esp + 0x80]
push ecx
call fcn.00426050
add esp, 4
test eax, eax
je 0x41ceb8
inc dword [esp + 0x20]
cmp dword [esp + 0x84], 0
je 0x41ceb8
mov eax, dword [esp + 0x18]
push 0
push 1
push 0
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x54], esp
mov edi, esp
push eax
call fcn.00401fe0
lea edx, [esp + 0x50]
add esp, 4
add eax, 0x10
push edx
mov dword [edi], eax
call fcn.0041e280
add esp, 0x10
mov byte [esp + 0x6c], 0xb
mov ebx, dword [eax]
call fcn.0041e0b0
mov byte [esp + 0x6c], 9
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ceb8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x68], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ced9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x68], 4
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cefe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x40], 0
jne 0x41c9c6
lea ecx, [esp + 0x48]
call fcn.0043b042
mov byte [esp + 0x68], 3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cf37
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x68], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cf5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x68], 1
call fcn.0043b31d
mov byte [esp + 0x68], 0
mov eax, dword [esp + 0x7c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cf8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x68], 0xffffffff
mov eax, dword [esp + 0x80]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cfba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
call fcn.0043ae1e
push 0x80070057
call fcn.004010b0
int3