Function at 0x45ed30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d8530
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, ecx
mov eax, 0x4ffec0
mov dword [esp + 0x20], edi
mov esi, dword [edi + 4]
add esi, 0x2638
test eax, eax
jne 0x45ed6b
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x45ed78
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x4ffec0
call ebx
push 0x4ffec0
push eax
mov ecx, esi
call fcn.00407780
mov ecx, dword [0x4eb4c0]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea edx, [esp + 0x18]
push 0x4ebed8
push edx
call fcn.00410bd0
mov eax, dword [0x4eb4c0]
mov dword [esp + 0x18], eax
mov ecx, dword [0x6dcf84]
lea edx, [esp + 0x18]
push ecx
push edx
push str.MediaSaver.js
push 0x88
mov byte [esp + 0x54], 1
call fcn.0043f130
mov eax, dword [esp + 0x28]
add esp, 0x1c
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x45f0f6
mov esi, dword [edi + 8]
mov ecx, str.__SaveObjUrl
test ecx, ecx
push ebp
mov dword [esp + 0x28], esi
je 0x45efb7
push ecx
call ebx
mov ebp, eax
test ebp, ebp
je 0x45efb7
test esi, esi
jne 0x45ee14
mov dword [esp + 0x14], esi
jmp 0x45ee1b
push esi
call ebx
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x10]
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov edx, dword [esi - 8]
lea eax, [esi + edx*2]
cmp esi, eax
mov dword [esp + 0x20], eax
jae 0x45efb7
mov edi, dword [sym.imp.MSVCRT.dll_wcsstr]
push str.__SaveObjUrl
push esi
call edi
add esp, 8
test eax, eax
je 0x45ee5f
lea esi, [eax + ebp*2]
push str.__SaveObjUrl
push esi
inc ebx
call edi
add esp, 8
test eax, eax
jne 0x45ee4c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x20]
cmp esi, eax
jb 0x45ee37
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x45efb3
lea ecx, [esp + 0x10]
call fcn.00407680
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
sub ebx, ebp
imul ebx, dword [esp + 0x20]
mov eax, dword [esi - 8]
mov dword [esp + 0x1c], eax
add ebx, eax
mov eax, dword [esi - 4]
mov dword [esp + 0x30], ebx
cmp eax, ebx
jl 0x45eeb0
cmp dword [esi - 0xc], 1
jle 0x45eef4
lea edi, [esi - 0xc]
push ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], edi
call fcn.00407580
test eax, eax
je 0x45efb3
mov ecx, dword [edi + 4]
mov edi, dword [esp + 0x10]
shl ecx, 1
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00407650
mov esi, dword [esp + 0x10]
mov edi, dword [sym.imp.MSVCRT.dll_wcsstr]
mov edx, dword [esi - 8]
lea eax, [esi + edx*2]
cmp esi, eax
mov dword [esp + 0x20], eax
jae 0x45efb0
jmp 0x45ef0e
mov edi, dword [sym.imp.MSVCRT.dll_wcsstr]
push str.__SaveObjUrl
push esi
call edi
mov edi, eax
add esp, 8
test edi, edi
je 0x45ef95
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, edi
sub ecx, eax
mov eax, dword [esp + 0x1c]
sar ecx, 1
sub eax, ecx
lea esi, [edx + edx]
sub eax, ebp
lea ecx, [edi + ebp*2]
lea ebx, [eax + eax]
lea eax, [esi + edi]
push ebx
push ecx
push eax
mov dword [esp + 0x38], eax
call dword [sym.imp.MSVCRT.dll_memmove]
mov ecx, esi
mov esi, dword [esp + 0x34]
mov edx, ecx
mov eax, dword [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
sub eax, ebp
and ecx, 3
push str.__SaveObjUrl
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x3c]
push esi
mov word [ebx + esi], 0
mov ebx, dword [esp + 0x30]
add ebx, eax
mov dword [esp + 0x30], ebx
call dword [sym.imp.MSVCRT.dll_wcsstr]
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x45ef1f
mov ebx, dword [esp + 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x20]
cmp esi, eax
jb 0x45ef08
mov esi, dword [esp + 0x10]
mov dword [esi - 8], ebx
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x44]
push ecx
push 0x4f217c
lea ecx, [esp + 0x18]
call fcn.004078f0
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push edx
push 0x4ebed0
call fcn.004078f0
push 0x68cb14
lea eax, [esp + 0x28]
push 0x4f2178
push eax
call fcn.00442b60
push 0x4f2178
lea ecx, [esp + 0x48]
push eax
push ecx
mov byte [esp + 0x48], 2
call fcn.004429e0
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push eax
push str._tw_security_id
mov byte [esp + 0x44], 3
call fcn.004078f0
mov eax, dword [esp + 0x44]
mov ecx, dword [0x4eb24c]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x45f04d
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x45f04d
mov eax, dword [esp + 0x44]
add eax, 0xfffffff4
push eax
call fcn.004d3765
add esp, 4
mov eax, dword [esp + 0x24]
mov edx, dword [0x4eb24c]
mov byte [esp + 0x3c], 1
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x45f07d
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x45f07d
mov edx, dword [esp + 0x24]
lea eax, [edx - 0xc]
push eax
call fcn.004d3765
add esp, 4
mov eax, dword [esp + 0x10]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push eax
call ebx
push str.JScript
mov esi, eax
call ebx
mov ecx, dword [edi + 0x10]
mov ebx, eax
push ebx
push esi
push ecx
call fcn.0043e120
mov ebp, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 0xc
test esi, esi
je 0x45f0b0
push esi
call ebp
test ebx, ebx
je 0x45f0b7
push ebx
call ebp
mov edx, dword [edi + 4]
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 0
mov esi, dword [edx + 0x2638]
call fcn.00407750
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00407750
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 4
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 0
call fcn.00407750
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call fcn.00407750
mov ecx, dword [esp + 0x30]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 4