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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.0040d54b
add esp, 4
mov dword [ebp - 0xc], eax
mov edi, eax
mov esi, 0x58db0b
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push 0xffffffffffffffff
push 0xc
push 0x16010d28
push 0x52010abe
call fcn.0040d57b
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x407146
jmp 0x407803
mov ebx, dword [0x678164]
call fcn.00402ee9
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x407168
jmp 0x407803
mov ebx, dword [0x678164]
call fcn.00402ee9
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 1
jne 0x407344
mov ebx, dword [0x678164]
call fcn.004023db
mov eax, 0
cmp eax, ecx
jl 0x4071a1
push 1
call fcn.0040d557
add esp, 4
shl eax, 3
add ebx, eax
mov dword [ebp - 0x18], ebx
mov ebx, 9
call fcn.0040192c
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push 0x58db41
push 0x50001
mov ebx, dword [ebp - 0x18]
push dword [ebx + 4]
push dword [ebx]
push 5
mov eax, 4
mov ebx, 0x468420
call fcn.0040d569
add esp, 0x40
mov ebx, dword [0x678164]
call fcn.004023db
mov eax, 0
cmp eax, ecx
jl 0x407204
push 1
call fcn.0040d557
add esp, 4
shl eax, 3
add ebx, eax
mov edx, dword [ebx + 4]
mov ebx, dword [ebx]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], edx
push 0x80000301
push 0
push 1
push 1
mov ebx, 0x40eb30
call fcn.0040d563
add esp, 0x10
mov dword [ebp - 0x20], eax
push str._about:blank
push dword [ebp - 0x20]
mov ecx, 2
call fcn.004018d0
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40725d
push ebx
call fcn.0040d551
add esp, 4
push 0
push dword [ebp - 0x24]
push 0xffffffffffffffff
push 4
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.0040d56f
add esp, 0x18
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x407284
push ebx
call fcn.0040d551
add esp, 4
push 0x60002
push 0x16010d28
push 0x52010abe
push 1
mov eax, 5
mov ebx, 0x46a9a0
call fcn.0040d569
add esp, 0x10
mov dword [ebp - 0x20], eax
fild dword [ebp - 0x20]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fsub qword [0x58db1d]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.00401004
push 0
push eax
push 0xffffffffffffffff
push 0xc
push 0x16010d28
push 0x52010abe
call fcn.0040d56f
add esp, 0x18
push 0xffffffffffffffff
push 0xc
push 0x16010d28
push 0x52010abe
call fcn.0040d57b
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ebx, 6
call fcn.0040192c
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 0x18]
push 0x60002
push 0x16010d28
push 0x52010abe
push 5
mov eax, 5
mov ebx, 0x46ab00
call fcn.0040d569
add esp, 0x40
jmp 0x4077fe
mov ebx, dword [0x678164]
call fcn.00402ee9
mov dword [ebp - 0x20], eax
fild dword [ebp - 0x20]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild dword [ebp - 4]
fstp qword [ebp - 0x28]
fsub qword [ebp - 0x28]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.00401004
xor ecx, ecx
push eax
lea eax, [ebp - 8]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x4075f9
mov ebx, dword [0x678164]
call fcn.004023db
push ebx
push ecx
fild dword [ebp - 4]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fild dword [ebp - 8]
fstp qword [ebp - 0x24]
fadd qword [ebp - 0x24]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
call fcn.00401004
dec eax
jns 0x4073c0
push 4
call fcn.0040d557
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x4073d3
push 1
call fcn.0040d557
add esp, 4
shl eax, 3
add ebx, eax
mov edx, dword [ebx + 4]
mov ebx, dword [ebx]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], edx
push 0xffffffffffffffff
push 4
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call fcn.0040d57b
add esp, 0x10
mov dword [ebp - 0x38], eax
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push 0x58db5b
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x40741d
mov eax, 0x4c9a97
push eax
push 3
mov ebx, 0x40e720
call fcn.0040d563
add esp, 0x28
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x407443
push ebx
call fcn.0040d551
add esp, 4
mov eax, dword [ebp - 0x3c]
push eax
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x407465
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x407461
imul eax, dword [ebx]
jmp 0x407456
mov ecx, eax
test ecx, ecx
je 0x407484
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40747d
push ebx
push eax
call fcn.0040d551
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40746b
call fcn.0040d551
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 0xc]
call fcn.004023db
mov eax, 0
cmp eax, ecx
jl 0x4074ae
push 1
call fcn.0040d557
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
test eax, eax
jne 0x4074cb
mov eax, 0x4c9a97
push eax
push 1
mov ebx, 0x40dfe0
call fcn.0040d563
add esp, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
fld qword [ebp - 0x20]
fsub qword [0x58db1d]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.00401004
mov dword [ebp - 0x10], eax
mov ebx, dword [0x678164]
call fcn.004023db
push ebx
push ecx
fild dword [ebp - 4]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fild dword [ebp - 8]
fstp qword [ebp - 0x24]
fadd qword [ebp - 0x24]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
call fcn.00401004
dec eax
jns 0x407535
push 4
call fcn.0040d557
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x407548
push 1
call fcn.0040d557
add esp, 4
shl eax, 3
add ebx, eax
mov edx, dword [ebx + 4]
mov ebx, dword [ebx]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], edx
push 0x80000301
push 0
push dword [ebp - 0x10]
push 1
mov ebx, 0x40eb30
call fcn.0040d563
add esp, 0x10
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0xc]
call fcn.004023db
mov eax, 1
cmp eax, ecx
jl 0x407595
push 1
call fcn.0040d557
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x3c], ebx
mov ebx, dword [ebp - 0x3c]
push dword [ebx]
push 0x58db5b
push dword [ebp - 0x38]
mov ecx, 3
call fcn.004018d0
add esp, 0xc
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x4075ca
push ebx
call fcn.0040d551
add esp, 4
push 0
push dword [ebp - 0x40]
push 0xffffffffffffffff
push 4
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call fcn.0040d56f
add esp, 0x18
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x4075f1
push ebx
call fcn.0040d551
add esp, 4
pop eax
pop ebx
pop ecx
jmp 0x407378
add esp, 0xc
mov ebx, dword [0x678164]
call fcn.004023db
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x40761c
push 4
call fcn.0040d557
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x40762f
push 1
call fcn.0040d557
add esp, 4
shl eax, 3
add ebx, eax
mov dword [ebp - 0x18], ebx
push 0
push 0
push 0
push 0x50001
mov ebx, dword [ebp - 0x18]
push dword [ebx + 4]
push dword [ebx]
push 2
mov ebx, 0x40f620
call fcn.0040d563
add esp, 0x1c
push 0x678164
push 8
mov eax, 2
call fcn.0040d545
add esp, 8
mov eax, dword [ebp - 4]
dec eax
jl 0x40770f
mov dword [ebp - 0x18], eax
mov ebx, dword [0x678164]
mov dword [ebp - 0x20], ebx
call fcn.004023db
mov dword [ebp - 0x24], ecx
sub ecx, dword [ebp - 0x18]
jle 0x40770f
cmp ecx, 1
jle 0x4076a1
mov ecx, 1
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0
jle 0x40770f
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov dword [edi], 1
add edi, 4
mov eax, ecx
sub eax, dword [ebp - 0x1c]
mov dword [edi], eax
add edi, 4
cmp edi, ebx
je 0x4076d1
mov esi, ebx
shl ecx, 1
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x20]
add edi, 8
mov eax, dword [ebp - 0x18]
shl eax, 3
add edi, eax
mov eax, dword [ebp - 0x1c]
shl eax, 3
mov esi, edi
add esi, eax
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x1c]
shl ecx, 1
rep movsd dword es:[edi], dword [esi]
sub edi, dword [ebp - 0x20]
push edi
push dword [ebp - 0x20]
call fcn.0040d581
add esp, 8
mov dword [0x678164], eax
mov eax, dword [ebp - 0x1c]
jmp 0x407711
xor eax, eax
push 0x80000301
push 0
push dword [ebp - 4]
push 0x60002
push 0x16010d28
push 0x52010abe
push 2
mov eax, 5
mov ebx, 0x46a930
call fcn.0040d569
add esp, 0x1c
push 0x60002
push 0x16010d28
push 0x52010abe
push 1
mov eax, 5
mov ebx, 0x46a9a0
call fcn.0040d569
add esp, 0x10
mov dword [ebp - 0x20], eax
fild dword [ebp - 0x20]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fsub qword [0x58db1d]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.00401004
mov dword [ebp - 0x14], eax
push 0
push dword [ebp - 0x14]
push 0xffffffffffffffff
push 0xc
push 0x16010d28
push 0x52010abe
call fcn.0040d56f
add esp, 0x18
mov ebx, dword [0x678164]
call fcn.004023db
push ebx
push ecx
mov eax, dword [ebp - 0x14]
dec eax
jns 0x4077c2
push 4
call fcn.0040d557
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x4077d5
push 1
call fcn.0040d557
add esp, 4
shl eax, 3
add ebx, eax
mov edx, dword [ebx + 4]
mov ebx, dword [ebx]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], edx
push 0
push 1
push 0xffffffffffffffff
push 5
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.0040d56f
add esp, 0x18
call fcn.0040784c
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x407821
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40781d
imul eax, dword [ebx]
jmp 0x407812
mov ecx, eax
test ecx, ecx
je 0x407840
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x407839
push ebx
push eax
call fcn.0040d551
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x407827
call fcn.0040d551
add esp, 4
mov esp, ebp
pop ebp
ret