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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 8], edi
cmp dword [esi + 0x44], edi
jbe 0x1021a2d
xor ebx, ebx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], ebx
jmp 0x1021687
mov ebx, dword [ebp - 0x10]
mov eax, dword [esi + 0x40]
cmp dword [ebx + eax + 0x18], edi
setne al
movzx eax, al
push eax
push 0x100280c
push edi
push edi
push edi
push 0x1009f50
push dword [0x102e5ac]
push 4
call fcn.0102c428
mov eax, dword [esi + 0x40]
lea ecx, [ebx + eax]
lea eax, [ecx + 8]
mov dword [ebp - 0x18], eax
mov al, byte [0x102e470]
cmp dword [0x102e46c], edi
je 0x1021746
cmp byte [0x102e435], 0
je 0x10216d9
cmp al, 5
jae 0x1021711
test al, al
jmp 0x102170f
cmp al, 5
jae 0x10216e1
test al, al
jne 0x1021746
mov ebx, dword [0x102e45c]
and ebx, 0x80000000
xor edx, edx
or edx, ebx
je 0x1021746
mov edx, dword [0x102e464]
and edx, 0x80000000
cmp edi, dword [0x102e460]
jne 0x1021744
xor edi, edi
cmp edx, dword [0x102e464]
jne 0x1021746
push dword [ebp - 0x18]
push dword [ecx + 0x18]
push dword [ebp - 8]
push dword [esi + 0x24]
push 0x102e5b4
push 0x10012b4
push 0x1001338
push dword [0x102e444]
push dword [0x102e440]
call fcn.0101d1d7
mov al, byte [0x102e470]
jmp 0x1021746
xor edi, edi
cmp dword [ebp - 4], edi
jl 0x10218b7
mov eax, dword [esi + 0x10]
mov ebx, dword [ebp - 0xc]
add eax, ebx
lea ecx, [eax + 4]
push ecx
mov ecx, dword [ebp - 0x10]
push eax
add eax, 0x14
push eax
push 0x1009f38
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
mov eax, dword [esi + 0x40]
push dword [ecx + eax + 4]
mov ecx, 0x102e058
push dword [esi + 0x24]
call fcn.010246ec
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x10218b2
mov eax, dword [esi + 0x10]
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x14], edi
mov eax, dword [ebx + eax + 4]
mov ecx, dword [eax]
push 0x1009f28
push eax
call dword [ecx]
test eax, eax
jl 0x10217b3
cmp dword [ebp - 0x14], edi
je 0x10217b3
mov al, 1
jmp 0x10217b5
xor al, al
push eax
mov ebx, 0x100342c
push ebx
push edi
push edi
push edi
push 0x1009e60
push dword [0x102e5ac]
push 4
call fcn.0102c428
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp - 0xc]
add eax, ecx
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx]
add eax, 0x18
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
push dword [0x102e5ac]
push 0x102e014
push ecx
call dword [edx + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
cmp eax, edi
je 0x1021807
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 4], edi
jl 0x10218b2
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + eax + 0x1c], 1
mov eax, dword [esi]
lea ecx, [ebp - 0x18]
push ecx
push 0x1004c84
push esi
mov dword [ebp - 0x18], edi
call dword [eax]
test eax, eax
jl 0x102183c
cmp dword [ebp - 0x18], edi
je 0x102183c
mov al, 1
jmp 0x102183e
xor al, al
push eax
push ebx
push edi
push edi
push edi
push 0x1009d98
push dword [0x102e5ac]
push 4
call fcn.0102c428
push dword [ebp - 8]
mov edi, dword [esi + 0x40]
push dword [esi + 0x24]
mov ebx, dword [ebp - 0x10]
push dword [ebx + edi + 0x18]
mov eax, dword [esi + 0x10]
push dword [esi + 0x1c]
mov ecx, dword [ebp - 0xc]
push dword [esi + 0x2c]
add eax, ecx
push dword [ebp - 0x18]
mov ecx, dword [eax + 0x14]
push dword [eax + 0x18]
mov edx, dword [ecx]
push ecx
call dword [edx + 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
xor edi, edi
cmp eax, edi
je 0x1021894
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 4], edi
jl 0x10218b2
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + eax + 8], edi
je 0x10218b2
push dword [ebp - 8]
mov ecx, esi
call fcn.0102132e
mov dword [ebp - 4], eax
mov al, byte [0x102e470]
mov ecx, dword [ebp - 0x1c]
cmp ecx, edi
je 0x10218cc
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov al, byte [0x102e470]
mov dword [ebp - 0x1c], edi
mov ebx, dword [ebp - 4]
cmp ebx, edi
jl 0x1021961
cmp dword [0x102e46c], edi
je 0x1021948
cmp byte [0x102e435], 0
je 0x10218f0
cmp al, 5
jae 0x1021921
test al, al
jmp 0x102191f
cmp al, 5
jae 0x10218f8
test al, al
jne 0x1021948
mov ecx, dword [0x102e45c]
mov edx, 0x80000000
and ecx, edx
xor eax, eax
or eax, ecx
je 0x1021948
mov ecx, dword [0x102e464]
mov eax, ecx
and eax, edx
cmp edi, dword [0x102e460]
jne 0x1021948
cmp eax, ecx
jne 0x1021948
push ebx
push dword [ebp - 8]
push dword [esi + 0x24]
push 0x102e5b4
push 0x10012b4
push 0x1001358
push dword [0x102e444]
push dword [0x102e440]
call fcn.0101d2ff
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add dword [ebp - 0x10], 0x1c
add dword [ebp - 0xc], 0x20
cmp eax, dword [esi + 0x44]
jb 0x1021684
jmp 0x10219d2
cmp dword [0x102e46c], edi
je 0x10219d2
cmp byte [0x102e435], 0
je 0x102197a
cmp al, 2
jae 0x10219ab
test al, al
jmp 0x10219a9
cmp al, 2
jae 0x1021982
test al, al
jne 0x10219d2
mov ecx, dword [0x102e45c]
mov edx, 0x80000000
and ecx, edx
xor eax, eax
or eax, ecx
je 0x10219d2
mov ecx, dword [0x102e464]
mov eax, ecx
and eax, edx
cmp edi, dword [0x102e460]
jne 0x10219d2
cmp eax, ecx
jne 0x10219d2
push ebx
push dword [ebp - 8]
push dword [esi + 0x24]
push 0x102e5b4
push 0x10012b4
push 0x1001368
push dword [0x102e444]
push dword [0x102e440]
call fcn.0101d2ff
cmp ebx, edi
jge 0x1021a2d
mov eax, dword [esi + 0x14]
mov ebx, dword [esi + 0x48]
test eax, eax
je 0x1021a42
push 0x58
lea eax, [ebp - 0x74]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 1
mov ecx, ebx
mov byte [ebp - 0x74], 1
mov byte [ebp - 0x60], 0x1b
mov byte [ebp - 0x5f], 2
call fcn.01019458
mov eax, dword [esi + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
push eax
push edi
lea eax, [ebp - 0x74]
push eax
mov ecx, ebx
call fcn.010193c3
mov edi, dword [ebx]
push dword [esi + 0x14]
add edi, 0x20
call fcn.0102a797
push eax
push ebx
call dword [edi]
jmp 0x1021a42
cmp dword [esi + 0x70], 4
push 3
pop eax
jne 0x1021a39
mov dword [esi + 0x70], eax
cmp dword [esi + 0x74], 4
jne 0x1021a42
mov dword [esi + 0x74], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret