Function at 0x101004c0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10126e7d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x1016e750]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], 0
cmp byte [ebx], 0
mov byte [ebp - 0xd], 1
jne 0x10100510
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp byte [ebx + 0x49], 0
mov ecx, 0x1012ec60
mov esi, dword [ebp + 8]
mov eax, str.__CopyOnWrite_
cmove eax, ecx
cmp byte [ebx + 0x45], 0
push eax
mov eax, str.__Creation_
cmove eax, ecx
push eax
push dword [esi]
lea eax, [ebp - 0x14]
push str.AfterSyscall___0x_x_s_s
push eax
call fcn.10044f30
add esp, 0x14
mov dword [ebp - 4], 0
lea ecx, [ebx + 0x6c]
mov eax, dword [ebp - 0x14]
push dword [eax - 0xc]
push eax
call fcn.10024890
mov dword [ebp - 4], 0xffffffff
or edi, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10100581
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi], 0xc000003a
jne 0x101006ce
cmp dword [ebx + 0x18], 0
setne al
movzx eax, al
push eax
movzx eax, byte [ebx + 0x45]
push eax
lea eax, [ebp - 0x14]
push str.__PATH_NOT_FOUND_corrector:_bCreation_d__IsVirtualized_d
push eax
call fcn.10044f30
add esp, 0x10
mov dword [ebp - 4], 1
lea ecx, [ebx + 0x6c]
mov eax, dword [ebp - 0x14]
push dword [eax - 0xc]
push eax
call fcn.10024890
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x101005e7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebx + 0x45], 0
je 0x1010068d
cmp dword [ebx + 0x18], 0
jne 0x1010068d
push 8
call fcn.10104809
add esp, 4
mov edi, eax
push 0
push ecx
mov ecx, dword [ebx + 0x30]
mov esi, esp
sub ecx, 0x10
call fcn.10024750
add eax, 0x10
mov edx, 1
mov ecx, edi
mov dword [esi], eax
call fcn.1003dc60
mov eax, dword [ebx + 0xc]
add esp, 4
movdqu xmm0, xmmword [eax]
movdqu xmmword [ebx + 0x10], xmm0
movq xmm0, qword [eax + 0x10]
mov eax, esp
movq qword [ebx + 0x20], xmm0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], edi
push dword [edi + 4]
push str.__Retrying_with:__s
push eax
call fcn.10044f30
add esp, 0xc
mov ecx, ebx
call fcn.100fe0b0
mov eax, dword [ebx + 0x18]
push ecx
mov ecx, esp
push dword [eax + 4]
push str.AfterSyscall:_Virtualizing_operation_____s
push ecx
call fcn.10044f30
add esp, 0xc
call fcn.100fd630
mov esi, dword [ebp + 8]
add esp, 4
mov byte [ebp - 0xd], 0
jmp 0x101006ce
mov ecx, dword [ebx + 0x30]
call fcn.10100fb0
push ecx
test al, al
je 0x101006bb
mov ecx, dword [ebx + 0x30]
mov esi, esp
sub ecx, 0x10
call fcn.10024750
add eax, 0x10
mov dword [esi], eax
call fcn.100ff5e0
mov esi, dword [ebp + 8]
add esp, 4
mov dword [esi], eax
jmp 0x101006ce
mov ecx, esp
push str.__no_need_to_change.
call fcn.10023fc0
mov ecx, ebx
call fcn.100fe0b0
xor edi, edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], 2
mov eax, dword [0x10175170]
cmp dword [eax - 0xc], edi
je 0x1010082a
cmp dword [esi], edi
jl 0x1010082a
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1010082a
cmp dword [ebx + 0x18], edi
je 0x1010082a
cmp byte [ebx + 0x45], 0
je 0x1010073c
push ecx
mov ecx, dword [ebx + 0x30]
mov esi, esp
sub ecx, 0x10
call fcn.10024750
add eax, 0x10
mov dword [esi], eax
call fcn.10100a70
test eax, eax
je 0x10100739
lea ecx, [ebp - 0x30]
mov edi, 1
call fcn.1002eeb0
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx + 0x4c]
lea ecx, [ebx + 0x4c]
cmp eax, dword [ecx + 4]
je 0x10100757
push ecx
lea ecx, [ebp - 0x30]
mov edi, 1
call fcn.100d7580
jmp 0x101007ac
test edi, edi
jne 0x101007ac
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x1010082a
test dword [eax], 0x400
je 0x1010082a
push ecx
mov eax, esp
mov edi, 1
push dword [ebx + 0x30]
push dword [esi]
push str.EncryptedFile:_adding_0x_x_to_EncryptedFileHandles_because:_already_encrypted_file__VIRT_FILE_FLAGS_ENCRYPTED_:__s
push eax
call fcn.10044f30
add esp, 0x10
call fcn.100fd630
lea ecx, [ebp - 0x30]
call fcn.1002ccf0
mov ecx, dword [ebx + 0x34]
mov eax, dword [ebp - 0x30]
movdqu xmm0, xmmword [ecx + 0x80]
movdqu xmmword [eax], xmm0
push 0x138
call fcn.101044b6
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x10100813
push 0x10000000
sub esp, 0xc
lea eax, [ebp - 0x30]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.10101ce0
mov byte [ebp - 4], 4
mov ecx, dword [esi]
call fcn.100475c0
push edx
push eax
push dword [ebx + 0x34]
push dword [ebx + 0x3c]
push dword [ebx + 0x38]
push ecx
mov ecx, dword [ebx + 0x30]
mov esi, esp
sub ecx, 0x10
call fcn.10024750
mov ecx, dword [ebp - 0x14]
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 3
call fcn.100fd520
mov ecx, eax
jmp 0x10100815
xor ecx, ecx
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
push dword [eax]
push ecx
mov ecx, dword [0x101728a0]
call fcn.100d7b30
cmp byte [ebx + 0x45], 0
jne 0x1010083a
cmp byte [ebx + 0x49], 0
je 0x101009ae
cmp dword [ebx + 0x18], 0
je 0x101009ae
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x101009ae
push 0
push 0
push 0
push ecx
mov ecx, dword [ebx + 0x30]
mov esi, esp
sub ecx, 0x10
call fcn.10024750
add eax, 0x10
lea ecx, [ebp - 0x14]
mov edx, 1
mov dword [esi], eax
call fcn.1003d3b0
add esp, 0x10
mov byte [ebp - 4], 5
test edi, edi
je 0x1010090d
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
sub eax, edx
je 0x101008a8
push 0
push eax
lea ecx, [ebp - 0x20]
call fcn.10049980
add esp, 8
mov byte [ebp - 4], 6
mov ecx, 1
jmp 0x101008c1
push str.NULL
lea ecx, [ebp - 0x1c]
call fcn.10023fc0
mov dword [ebp - 4], 7
mov ecx, 2
mov eax, dword [eax]
push ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp + 0xc], ecx
mov ecx, esp
push eax
push str.EncryptedFile.IV_s
push ecx
call fcn.10044f30
add esp, 0xc
mov ecx, ebx
call fcn.100fe0b0
mov eax, dword [ebp + 0xc]
test al, 2
je 0x101008fa
and eax, 0xfffffffd
lea ecx, [ebp - 0x1c]
mov dword [ebp + 0xc], eax
call fcn.10024080
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 5
test al, 1
je 0x1010090d
lea ecx, [ebp - 0x20]
call fcn.10024080
cmp byte [ebx + 0x49], 0
je 0x1010091a
mov ecx, str.CopyOnWrite
jmp 0x1010092b
cmp byte [ebx + 0x45], 0
mov ecx, str.Creation
mov eax, 0x10138168
cmove ecx, eax
push ecx
mov eax, esp
push dword [ebp - 0x14]
push dword [ebx + 0x30]
push ecx
push str.___s._Updating_Matrix_about_new_file__s__actual_file:__s_
push eax
call fcn.10044f30
add esp, 0x14
mov ecx, ebx
call fcn.100fe0b0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
mov eax, 0
test cl, 0x10
push 1
cmovne edi, eax
xor edx, edx
test edi, edi
lea eax, [ebp - 0x30]
cmove eax, edx
neg edi
push eax
sbb edi, edi
and edi, 0x400
mov eax, edi
cdq
push edx
mov edx, ecx
mov ecx, dword [ebx + 0x30]
push eax
call fcn.1002a1b0
mov byte [ebp - 4], 2
or edi, 0xffffffff
mov edx, dword [ebp - 0x14]
add esp, 0x10
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x101009b1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x101009b1
or edi, 0xffffffff
cmp byte [ebp - 0xd], 0
je 0x101009d8
mov ecx, dword [ebx + 0x6c]
cmp dword [ecx - 0xc], 0
je 0x101009d8
push ecx
add ecx, 0xfffffff0
mov esi, esp
call fcn.10024750
add eax, 0x10
mov dword [esi], eax
call fcn.100fd630
add esp, 4
cmp dword [ebp + 0x10], 0
je 0x10100a42
cmp byte [ebx + 0x49], 0
mov ecx, 0x1012ec60
mov eax, str.__CopyOnWrite_
cmove eax, ecx
cmp byte [ebx + 0x45], 0
push eax
mov eax, str.__Creation_
cmove eax, ecx
push eax
mov eax, dword [ebp + 8]
push dword [ebx + 0x30]
push dword [eax]
lea eax, [ebp + 8]
push str.ApiRetRet0x_x_s_s
push eax
call fcn.10044f30
add esp, 0x18
mov byte [ebp - 4], 8
mov edx, dword [eax]
mov ecx, dword [ebx + 0x64]
call fcn.10043b30
mov byte [ebp - 4], 2
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x10100a42
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x10100a52
push ecx
call fcn.1010338d
add esp, 4
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc