Function at 0x1018145
Capabilities:
Reference absolute stream path on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x102209c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x1c], 0
push ebx
push esi
push edi
mov esi, 0x10066b4
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
test eax, eax
mov dword [ebp - 0x18], eax
setne al
movsd dword es:[edi], dword [esi]
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp + 0x10]
movsw word es:[edi], word [esi]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp + 0x14]
mov esi, 0x10022b4
push esi
push 0x3d8
xor edi, edi
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp + 0x18]
inc edi
push edi
push 3
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp + 0x20]
push 0x10065e0
push dword [0x102256c]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp + 0x28]
push 4
mov dword [ebp - 0x2c], ecx
call fcn.01020f34
cmp dword [ebp - 0x28], 0
setne al
push eax
push esi
push 0x3d9
push edi
push 3
push 0x1006508
push dword [0x102256c]
push 4
call fcn.01020f34
cmp dword [ebp - 0x24], 0
setne al
push eax
push esi
push 0x3da
push edi
push 3
push 0x1006430
push dword [0x102256c]
push 4
call fcn.01020f34
cmp dword [ebp - 0x20], 0
setne al
push eax
push esi
push 0x3db
push edi
push 3
push 0x1006358
push dword [0x102256c]
push 4
call fcn.01020f34
cmp dword [ebp - 0x30], 0
setne al
push eax
push esi
push 0x3dc
push edi
push 3
push 0x1006280
push dword [0x102256c]
push 4
call fcn.01020f34
cmp dword [ebp - 0x34], 0
setne al
push eax
push esi
push 0x3dd
push edi
push 3
push 0x10061a8
push dword [0x102256c]
push 4
call fcn.01020f34
cmp dword [ebp + 0x24], 0
setne al
push eax
push esi
push 0x3de
push edi
push 3
push 0x10060d0
push dword [0x102256c]
push 4
call fcn.01020f34
cmp dword [ebp - 0x2c], 0
setne al
push eax
push esi
push 0x3df
push edi
push 3
push 0x1005ff8
push dword [0x102256c]
push 4
call fcn.01020f34
mov eax, dword [0x102256c]
mov ecx, dword [eax]
lea edx, [ebx + 0x44]
push edx
push eax
call dword [ecx + 0x20]
test eax, eax
jne 0x1018302
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10182db
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jl 0x10182e6
mov edi, 0x80004005
push dword [ebp - 0x1c]
call fcn.0101fb42
pop ecx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010203af
leave
ret 0x24
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 0x7fffffff
push dword [ebp - 0x18]
call fcn.01014a44
mov edi, eax
test edi, edi
jge 0x101834a
mov eax, dword [0x102200c]
cmp eax, 0x102200c
je 0x10182e6
test word [eax + 0x9c], 0x4000
je 0x10182e6
cmp byte [eax + 0x99], 2
jb 0x10182e6
push edi
push 0x10038dc
push 0xe
jmp 0x10186e2
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0101fb27
test eax, eax
pop ecx
mov dword [ebx + 0x1c], eax
mov esi, 0x10038dc
jne 0x10183aa
mov eax, dword [0x102200c]
cmp eax, 0x102200c
je 0x10183a5
test word [eax + 0x9c], 0x4000
je 0x10183a5
cmp byte [eax + 0x99], 1
jb 0x10183a5
push esi
push 0xf
push dword [eax + 0x94]
push dword [eax + 0x90]
call fcn.010120f2
mov edi, 0x8007000e
test edi, edi
jl 0x10182e6
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebx + 0x1c]
call fcn.010149d6
mov edi, eax
test edi, edi
jge 0x10183fb
mov eax, dword [0x102200c]
cmp eax, 0x102200c
je 0x10182e6
test word [eax + 0x9c], 0x4000
je 0x10182e6
cmp byte [eax + 0x99], 2
jb 0x10182e6
push edi
push esi
push 0x10
jmp 0x10186e2
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 0x7fffffff
push dword [ebp - 0x24]
call fcn.01014a44
mov edi, eax
test edi, edi
jge 0x101844b
mov eax, dword [0x102200c]
cmp eax, 0x102200c
je 0x10182e6
test word [eax + 0x9c], 0x4000
je 0x10182e6
cmp byte [eax + 0x99], 2
jb 0x10182e6
push edi
push esi
push 0x11
jmp 0x10186e2
mov esi, dword [ebp - 0x14]
add esi, 5
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
mov dword [ebp - 0x18], esi
neg ecx
or ecx, eax
push ecx
call fcn.0101fb27
test eax, eax
pop ecx
mov dword [ebx + 0x24], eax
jne 0x10184af
mov eax, dword [0x102200c]
cmp eax, 0x102200c
je 0x10184aa
test word [eax + 0x9c], 0x4000
je 0x10184aa
cmp byte [eax + 0x99], 1
jb 0x10184aa
push 0x10038dc
push 0x12
push dword [eax + 0x94]
push dword [eax + 0x90]
call fcn.010120f2
mov edi, 0x8007000e
test edi, edi
jl 0x10182e6
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebx + 0x24]
call fcn.010149d6
mov edi, eax
test edi, edi
jge 0x1018503
mov eax, dword [0x102200c]
cmp eax, 0x102200c
je 0x10182e6
test word [eax + 0x9c], 0x4000
je 0x10182e6
cmp byte [eax + 0x99], 2
jb 0x10182e6
push edi
push 0x10038dc
push 0x13
jmp 0x10186e2
push dword [ebp - 0x24]
push esi
push dword [ebx + 0x24]
call fcn.01012dbd
mov edi, eax
test edi, edi
jge 0x101855e
mov eax, dword [0x102200c]
cmp eax, 0x102200c
je 0x10182e6
test word [eax + 0x9c], 0x4000
je 0x10182e6
cmp byte [eax + 0x99], 2
jb 0x10182e6
push 0x10038dc
push 0x14
push dword [eax + 0x94]
push dword [eax + 0x90]
call fcn.010120f2
jmp 0x10182e6
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 0x7fffffff
push dword [ebp - 0x20]
call fcn.01014a44
mov edi, eax
test edi, edi
jge 0x10185b6
mov eax, dword [0x102200c]
cmp eax, 0x102200c
mov esi, 0x4000
je 0x10185c7
test dword [eax + 0x9c], esi
je 0x10185c7
cmp byte [eax + 0x99], 2
jb 0x10185c7
push edi
push 0x10038dc
push 0x15
push dword [eax + 0x94]
push dword [eax + 0x90]
call fcn.01013553
jmp 0x10185c7
mov ecx, dword [ebp - 0x14]
mov eax, esi
lea eax, [eax + ecx + 1]
mov dword [ebp - 0x18], eax
mov esi, 0x4000
test edi, edi
jl 0x10182e6
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0101fb27
test eax, eax
pop ecx
mov dword [ebx + 0x28], eax
jne 0x101862b
mov eax, dword [0x102200c]
cmp eax, 0x102200c
je 0x1018626
test dword [eax + 0x9c], esi
je 0x1018626
cmp byte [eax + 0x99], 1
jb 0x1018626
push 0x10038dc
push 0x16
push dword [eax + 0x94]
push dword [eax + 0x90]
call fcn.010120f2
mov edi, 0x8007000e
test edi, edi
jl 0x10182e6
push dword [ebp - 0x20]
push dword [ebp - 0x14]
push dword [ebx + 0x28]
call fcn.010149d6
mov edi, eax
test edi, edi
jge 0x101867a
mov eax, dword [0x102200c]
cmp eax, 0x102200c
je 0x10182e6
test dword [eax + 0x9c], esi
je 0x10182e6
cmp byte [eax + 0x99], 2
jb 0x10182e6
push edi
push 0x10038dc
push 0x17
jmp 0x10186e2
mov eax, dword [ebp - 0x18]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0101fb27
push dword [ebx + 0x28]
mov dword [ebp - 0x1c], eax
push dword [ebx + 0x24]
push 0x1005fe8
push dword [ebp - 0x18]
push eax
call fcn.01012dff
mov edi, eax
add esp, 0x18
test edi, edi
jge 0x10186f8
mov eax, dword [0x102200c]
cmp eax, 0x102200c
je 0x10182e6
test dword [eax + 0x9c], esi
je 0x10182e6
cmp byte [eax + 0x99], 2
jb 0x10182e6
push edi
push 0x10038dc
push 0x19
push dword [eax + 0x94]
push dword [eax + 0x90]
call fcn.01013553
jmp 0x10182e6
mov esi, dword [ebp + 0x24]
xor ecx, ecx
push 0x20
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.0101fb27
test eax, eax
pop ecx
je 0x101873e
push 0x1017017
push dword [ebp + 0x24]
mov dword [eax], esi
lea esi, [eax + 4]
push 0x20
push esi
call fcn.010136b5
mov eax, esi
mov esi, dword [ebp + 0x24]
jmp 0x1018740
xor eax, eax
test eax, eax
mov dword [ebx + 0x14], eax
jne 0x1018791
mov edi, 0x8007000e
mov eax, dword [0x102200c]
cmp eax, 0x102200c
je 0x10182e6
test word [eax + 0x9c], 0x4000
je 0x10182e6
cmp byte [eax + 0x99], 2
jb 0x10182e6
push edi
push 0x10038dc
push 0x1a
push dword [eax + 0x94]
push dword [eax + 0x90]
call fcn.01013553
xor eax, eax
cmp edi, eax
jl 0x10182e6
push eax
push 0x80
push 3
push eax
push eax
push 0xc0000000
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebx + 0x48], eax
jne 0x101880a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10187cf
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [0x102200c]
cmp eax, 0x102200c
je 0x101880a
test word [eax + 0x9c], 0x4000
je 0x101880a
cmp byte [eax + 0x99], 2
jb 0x101880a
push edi
push 0x10038dc
push 0x1b
push dword [eax + 0x94]
push dword [eax + 0x90]
call fcn.01013553
test edi, edi
jl 0x10182e6
mov eax, dword [ebp - 0x30]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 0x34]
mov dword [ebx + 0x38], eax
mov eax, dword [ebp - 0x28]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0x3c], esi
mov dword [ebx + 0x50], eax
jmp 0x10182ef