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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10087cb8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [section..data]
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.10021470
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x100683d3
push 0x80004005
call fcn.10021340
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 1
call fcn.10021470
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x100683fe
push 0x80004005
call fcn.10021340
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.1003a800
add esp, 0x14
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x18]
call fcn.100394f0
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 0x10068455
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.100236e0
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
add eax, 0x10
mov dword [ebx], eax
call fcn.10032290
add esp, 0x10
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10068495
mov dword [ebp - 0x20], 1
test al, 0x10
jne 0x1006849c
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 0x100684bb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x20], 0
je 0x100684f0
push dword [ebp + 8]
lea eax, [ebp - 0x20]
push str.BeforeSyscall:CreateEquivalentDeepestRealDir:_dir_already_exists__Matrix_form_s___quitting.
push eax
call fcn.1003a800
add esp, 0xc
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x20]
call fcn.100394f0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
jmp 0x10068b15
cmp dword [ebp - 0x2c], 0
je 0x100685ad
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, 0x100b0b50
push eax
push 0
push 0
call fcn.100308a0
test eax, eax
je 0x100685ad
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x24]
cmp dword [eax + 0x64], edx
je 0x100685ad
test byte [eax], 2
jne 0x100685ad
push dword [ecx + 8]
lea ecx, [ebp - 0x18]
call fcn.10022bb0
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.1003a800
add esp, 0xc
call fcn.10021810
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.100236e0
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
add eax, 0x10
mov dword [ebx], eax
call fcn.10032290
add esp, 0x10
mov ecx, dword [eax]
call fcn.1003bc10
lea ecx, [ebp - 0x2c]
call fcn.10022680
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.10022680
or ebx, 0xffffffff
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0xc]
mov dword [ebp - 0x2c], edx
test edx, edx
js 0x10068b2b
mov edi, edi
test edx, edx
js 0x1006893b
cmp edx, dword [eax - 0xc]
jg 0x1006893b
cmp word [eax + edx*2], 0x5c
je 0x100685ee
cmp edx, dword [eax - 0xc]
jg 0x1006893b
movzx ecx, word [eax + edx*2]
test cx, cx
jne 0x1006892c
push edx
push 0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp + 8]
call fcn.10029480
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 0x1006865d
cmp dword [ecx + 0xc], 0
lea edi, [ecx + 0xc]
jl 0x1006864e
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x1006864e
mov ecx, dword [ebp - 0x28]
call fcn.100236e0
mov dword [ebp - 0x28], eax
mov ecx, ebx
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x10068646
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 0x1006865d
push dword [edx - 0xc]
lea ecx, [ebp - 0x1c]
push edx
call fcn.10023530
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 0x1006867d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov ecx, dword [edi - 0x10]
lea ebx, [edi - 0x10]
mov dword [ebp - 0x18], esp
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [ebx + 0xc], 0
lea edx, [ebx + 0xc]
mov ecx, eax
jl 0x100686a6
cmp ecx, dword [ebx]
jne 0x100686a6
mov eax, 1
lock xadd dword [edx], eax
jmp 0x100686e8
mov eax, dword [ecx]
push 2
push dword [ebx + 4]
call dword [eax]
mov edx, eax
mov dword [ebp - 0x28], edx
test edx, edx
je 0x100689ba
mov ecx, dword [ebx + 4]
mov dword [edx + 4], ecx
mov ecx, dword [ebx + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebx + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
call fcn.1006b19c
mov ebx, dword [ebp - 0x28]
add esp, 0x10
mov ecx, dword [ebp - 0x18]
lea eax, [ebx + 0x10]
mov dword [ecx], eax
lea ecx, [ebp - 0x34]
call fcn.10031e50
add esp, 4
mov byte [ebp - 4], 7
add esi, 0xfffffff0
mov edx, dword [eax]
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x1006874f
cmp dword [esi + 0xc], 0
jl 0x10068743
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x10068743
call fcn.100236e0
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 0x1006873b
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 0x10068752
push dword [edx - 0xc]
lea ecx, [ebp - 0x10]
push edx
call fcn.10023530
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 0x10068772
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x10]
call fcn.1002abf0
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.1003a800
add esp, 0x10
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x20]
call fcn.100394f0
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 0x100687bc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi - 0xc]
cmp eax, 2
jne 0x10068871
cmp eax, 1
jl 0x1006893b
cmp word [esi + 2], 0x3a
jne 0x10068871
push 0x1008fa70
lea edx, [ebp - 0x10]
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x38]
call fcn.10022e60
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 0x10068826
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.1003a800
add esp, 0x10
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x24]
call fcn.100394f0
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 0x10068865
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x28]
cmp eax, 1
je 0x10068871
test eax, eax
jne 0x10068878
mov dword [ebp - 0x18], 0
mov ecx, dword [esi - 0x10]
lea ebx, [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [ebx + 0xc], 0
lea edx, [ebx + 0xc]
mov ecx, eax
jl 0x1006889d
cmp ecx, dword [ebx]
jne 0x1006889d
mov eax, 1
lock xadd dword [edx], eax
jmp 0x100688dd
mov eax, dword [ecx]
push 2
push dword [ebx + 4]
call dword [eax]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x100689ba
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
lea ecx, [eax + 0x10]
mov edx, dword [ebx + 4]
lea eax, [edx*2 + 2]
push eax
lea eax, [ebx + 0x10]
push eax
lea eax, [edx*2 + 2]
push eax
push ecx
call fcn.1006b19c
mov ebx, dword [ebp - 0x3c]
add esp, 0x10
add ebx, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100688f7
mov dword [ebp - 0x28], 1
test al, 0x10
jne 0x100688fe
mov dword [ebp - 0x28], 0
lea edx, [ebx - 0x10]
or ebx, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1006891a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x28], 0
jne 0x10068945
cmp dword [ebp - 0x18], 0
jne 0x10068945
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x2c]
dec edx
mov dword [ebp - 0x2c], edx
jns 0x100685c0
jmp 0x10068b2b
push 0x80070057
call fcn.10021340
push edi
lea eax, [ebp - 0x2c]
push str.BeforeSyscall:CreateEquivalentDeepestRealDir:_DeepestRealDir:_Creating_dir:__s
push eax
call fcn.1003a800
add esp, 0xc
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x2c]
call fcn.100394f0
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 0x10068983
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [edi - 0x10]
lea ebx, [edi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [ebx + 0xc], 0
lea edx, [ebx + 0xc]
mov ecx, eax
jl 0x100689a8
cmp ecx, dword [ebx]
jne 0x100689a8
mov eax, 1
lock xadd dword [edx], eax
jmp 0x100689eb
mov eax, dword [ecx]
push 2
push dword [ebx + 4]
call dword [eax]
mov edx, eax
mov dword [ebp - 0x3c], edx
test edx, edx
jne 0x100689bf
call fcn.10023990
mov eax, dword [ebx + 4]
mov dword [edx + 4], eax
mov ecx, dword [ebx + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebx + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
call fcn.1006b19c
mov ebx, dword [ebp - 0x3c]
add esp, 0x10
add ebx, 0x10
mov dword [ebp - 0x18], ebx
push 0
push 0
mov byte [ebp - 4], 0xb
lea eax, [ebx - 0x10]
push 0
push ecx
mov ecx, dword [eax]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], esp
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [ebx - 4], 0
mov edx, eax
lea eax, [ebx - 4]
mov dword [ebp - 0x3c], eax
jl 0x10068a30
cmp edx, dword [ebx - 0x10]
jne 0x10068a30
mov ecx, dword [ebp - 0x3c]
lea eax, [ebx - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x10068a75
mov eax, dword [edx]
mov ecx, edx
push 2
push dword [ebx - 0xc]
call dword [eax]
mov ecx, eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
jne 0x10068a49
call fcn.10023990
mov eax, dword [ebx - 0xc]
mov dword [ecx + 4], eax
mov ecx, dword [ebx - 0xc]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ecx*2 + 2]
push ebx
push eax
mov eax, dword [ebp - 0x2c]
add eax, 0x10
push eax
call fcn.1006b19c
mov eax, dword [ebp - 0x2c]
add esp, 0x10
mov ecx, dword [ebp - 0x38]
add eax, 0x10
mov edx, dword [ebp - 0x14]
mov dword [ecx], eax
lea ecx, [ebp - 0x30]
call fcn.10032290
add esp, 0x10
mov byte [ebp - 4], 0xc
mov edx, dword [eax]
lea eax, [ebx - 0x10]
lea ecx, [edx - 0x10]
cmp ecx, eax
je 0x10068ae3
mov ebx, dword [ebp - 0x34]
cmp dword [ebx + 0xc], 0
jl 0x10068ad4
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x10068ad4
call fcn.100236e0
mov dword [ebp - 0x3c], eax
lea edx, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10068acc
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 0x10068ae3
push dword [edx - 0xc]
lea ecx, [ebp - 0x18]
push edx
call fcn.10023530
mov ebx, dword [ebp - 0x18]
mov byte [ebp - 4], 0xb
or ecx, 0xffffffff
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10068b04
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, ebx
call fcn.1003bc10
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 0x10068b2b
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 0x10068b48
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 0x10068b65
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 0x10068b86
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