Function at 0x100fef30
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10126cf8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
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, edx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
call fcn.10022690
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x100fef83
push 0x80004005
call fcn.100223c0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 1
call fcn.10022690
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x100fefae
push 0x80004005
call fcn.100223c0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push ebx
push edx
mov byte [ebp - 4], 2
push dword [ebp + 8]
push str.BeforeSyscall:CreateEquivalentDeepestRealDir_MatrixDirName_s__VirtRepository_d__bCreateDepestMatrixDir_d_
push eax
call fcn.10044f30
add esp, 0x14
mov byte [ebp - 4], 3
mov ecx, str.VirtUtils
mov edx, dword [ebp - 0x18]
call fcn.10043b30
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x100ff00a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0
push 0
push ecx
mov ecx, dword [ebp + 8]
mov ebx, esp
lea ecx, [ecx - 0x10]
call fcn.10024750
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
add eax, 0x10
mov dword [ebx], eax
call fcn.1003d3b0
add esp, 0x10
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100ff04a
mov dword [ebp - 0x20], 1
test al, 0x10
jne 0x100ff051
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x18]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100ff070
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x20], 0
je 0x100ff0aa
push dword [ebp + 8]
lea eax, [ebp - 0x20]
push str.BeforeSyscall:CreateEquivalentDeepestRealDir:_dir_already_exists__Matrix_form_s___quitting.
push eax
call fcn.10044f30
add esp, 0xc
mov byte [ebp - 4], 4
mov ecx, str.VirtUtils
mov edx, dword [ebp - 0x20]
call fcn.10043b30
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
jmp 0x100ff555
cmp dword [ebp - 0x2c], 0
je 0x100ff167
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
push ecx
push 0
push 0
sub esp, 8
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x3c]
mov ecx, 0x10172250
push eax
push 0
push 0
call fcn.10033e00
test eax, eax
je 0x100ff167
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x24]
cmp dword [eax + 0x64], edx
je 0x100ff167
test byte [eax], 2
jne 0x100ff167
push dword [ecx + 8]
lea ecx, [ebp - 0x18]
call fcn.10023fc0
push ecx
mov eax, esp
mov byte [ebp - 4], 5
push dword [ebp - 0x18]
push str.BeforeSyscall:CreateEquivalentDeepestRealDir:_DeepestMatrixDir:_Creating_dir:__s
push eax
call fcn.10044f30
add esp, 0xc
call fcn.100fd630
add esp, 4
push 0
push 0
push 0
push ecx
mov ecx, dword [ebp - 0x18]
mov ebx, esp
lea ecx, [ecx - 0x10]
call fcn.10024750
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
add eax, 0x10
mov dword [ebx], eax
call fcn.1003d3b0
add esp, 0x10
mov ecx, dword [eax]
call fcn.10046c10
lea ecx, [ebp - 0x2c]
call fcn.10024080
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.10024080
or ebx, 0xffffffff
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0xc]
mov dword [ebp - 0x2c], edx
test edx, edx
js 0x100ff56b
test edx, edx
js 0x100ff440
cmp edx, dword [eax - 0xc]
jg 0x100ff440
cmp word [eax + edx*2], 0x5c
je 0x100ff1a6
cmp edx, dword [eax - 0xc]
jg 0x100ff440
movzx ecx, word [eax + edx*2]
test cx, cx
jne 0x100ff431
push edx
push 0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp + 8]
call fcn.10026a50
mov byte [ebp - 4], 6
lea ecx, [edi - 0x10]
mov edx, dword [eax]
mov dword [ebp - 0x18], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x28], eax
cmp eax, ecx
je 0x100ff215
cmp dword [ecx + 0xc], 0
lea edi, [ecx + 0xc]
jl 0x100ff206
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x100ff206
mov ecx, dword [ebp - 0x28]
call fcn.10024750
mov dword [ebp - 0x28], eax
mov ecx, ebx
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x100ff1fe
mov edi, dword [ebp - 0x18]
push edi
mov ecx, dword [edi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x28]
lea edi, [eax + 0x10]
mov dword [ebp - 0x1c], edi
jmp 0x100ff215
push dword [edx - 0xc]
lea ecx, [ebp - 0x1c]
push edx
call fcn.10024680
mov edi, dword [ebp - 0x1c]
mov byte [ebp - 4], 2
mov ecx, ebx
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100ff235
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
lea ecx, [edi - 0x10]
mov ebx, esp
call fcn.10024750
add eax, 0x10
lea ecx, [ebp - 0x34]
mov dword [ebx], eax
call fcn.1003cf70
add esp, 4
mov byte [ebp - 4], 7
add esi, 0xfffffff0
mov edx, dword [eax]
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x100ff2a4
cmp dword [esi + 0xc], 0
jl 0x100ff298
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x100ff298
call fcn.10024750
or ebx, 0xffffffff
mov dword [ebp - 0x28], eax
mov ecx, ebx
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100ff290
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x28]
add eax, 0x10
mov dword [ebp - 0x10], eax
jmp 0x100ff2a7
push dword [edx - 0xc]
lea ecx, [ebp - 0x10]
push edx
call fcn.10024680
or ebx, 0xffffffff
mov byte [ebp - 4], 2
mov ecx, ebx
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100ff2c7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x10]
call fcn.1002e5d0
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push esi
push edi
push str.BeforeSyscall:CreateEquivalentDeepestRealDir:_CurMatrixPortion_s__CurRealPortion_s
push eax
call fcn.10044f30
add esp, 0x10
mov byte [ebp - 4], 8
mov ecx, str.VirtUtils
mov edx, dword [ebp - 0x20]
call fcn.10043b30
mov byte [ebp - 4], 2
mov ecx, ebx
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100ff316
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi - 0xc]
cmp eax, 2
jne 0x100ff3d0
cmp eax, 1
jl 0x100ff440
cmp word [esi + 2], 0x3a
jne 0x100ff3d0
push 0x1012ec40
lea edx, [ebp - 0x10]
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x38]
call fcn.10026820
add esp, 4
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, dword [ebp - 0x38]
mov edx, ebx
add ecx, 0xfffffff0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x3c], ecx
add ecx, 0xc
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100ff380
mov edx, dword [ebp - 0x3c]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x28]
push eax
push esi
lea eax, [ebp - 0x24]
push str.BeforeSyscall:CreateEquivalentDeepestRealDir:_GetDriveType__s__d
push eax
call fcn.10044f30
add esp, 0x10
mov byte [ebp - 4], 9
mov ecx, str.VirtUtils
mov edx, dword [ebp - 0x24]
call fcn.10043b30
mov byte [ebp - 4], 2
mov ecx, ebx
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100ff3c4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x28]
cmp eax, 1
je 0x100ff3d0
test eax, eax
jne 0x100ff3d7
mov dword [ebp - 0x18], 0
lea ecx, [esi - 0x10]
call fcn.10024750
add eax, 0x10
push eax
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100ff3fc
mov dword [ebp - 0x28], 1
test al, 0x10
jne 0x100ff403
mov dword [ebp - 0x28], 0
mov edx, dword [ebp - 0x3c]
mov ecx, ebx
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100ff41f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x28], 0
jne 0x100ff44a
cmp dword [ebp - 0x18], 0
jne 0x100ff44a
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x2c]
dec edx
mov dword [ebp - 0x2c], edx
jns 0x100ff178
jmp 0x100ff56b
push 0x80070057
call fcn.100223c0
push edi
lea eax, [ebp - 0x2c]
push str.BeforeSyscall:CreateEquivalentDeepestRealDir:_DeepestRealDir:_Creating_dir:__s
push eax
call fcn.10044f30
add esp, 0xc
mov byte [ebp - 4], 0xa
mov ecx, str.VirtUtils
mov edx, dword [ebp - 0x2c]
call fcn.10043b30
mov byte [ebp - 4], 2
mov ecx, ebx
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100ff48d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [edi - 0x10]
call fcn.10024750
lea ebx, [eax + 0x10]
mov dword [ebp - 0x18], ebx
push 0
push 0
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0xb
push 0
push ecx
mov ecx, eax
mov dword [ebp - 0x3c], esp
mov dword [ebp - 0x38], eax
call fcn.10024750
mov edx, dword [ebp - 0x14]
mov ecx, esp
add eax, 0x10
mov dword [ecx], eax
lea ecx, [ebp - 0x34]
call fcn.1003d3b0
add esp, 0x10
mov byte [ebp - 4], 0xc
mov edx, dword [eax]
lea eax, [ebx - 0x10]
lea ecx, [edx - 0x10]
cmp ecx, eax
je 0x100ff523
mov ebx, dword [ebp - 0x38]
cmp dword [ebx + 0xc], 0
jl 0x100ff514
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x100ff514
call fcn.10024750
mov dword [ebp - 0x3c], eax
lea edx, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100ff50c
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x3c]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x18], ebx
jmp 0x100ff523
push dword [edx - 0xc]
lea ecx, [ebp - 0x18]
push edx
call fcn.10024680
mov ebx, dword [ebp - 0x18]
mov byte [ebp - 4], 0xb
or ecx, 0xffffffff
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100ff544
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, ebx
call fcn.10046c10
lea edx, [ebx - 0x10]
mov byte [ebp - 4], 2
or ebx, 0xffffffff
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100ff56b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 1
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100ff588
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, ebx
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100ff5a5
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x100ff5c6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret