Function at 0x460260
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d9ad0
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, 0x500df0
mov dword [esp + 0x20], edi
mov esi, dword [edi + 4]
add esi, 0x2638
test eax, eax
jne 0x46029b
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x4602a8
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x500df0
call ebx
push 0x500df0
push eax
mov ecx, esi
call fcn.00406780
mov ecx, dword [0x4ed0fc]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea edx, [esp + 0x18]
push 0x4edb6c
push edx
call fcn.0040fdb0
mov eax, dword [0x4ed0fc]
mov dword [esp + 0x18], eax
mov ecx, dword [0x73ff2c]
lea edx, [esp + 0x18]
push ecx
push edx
push str.MediaSaver.js
push 0x88
mov byte [esp + 0x54], 1
call fcn.004402a0
mov eax, dword [esp + 0x28]
add esp, 0x1c
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x460626
mov esi, dword [edi + 8]
mov ecx, str.__SaveObjUrl
test ecx, ecx
push ebp
mov dword [esp + 0x28], esi
je 0x4604e7
push ecx
call ebx
mov ebp, eax
test ebp, ebp
je 0x4604e7
test esi, esi
jne 0x460344
mov dword [esp + 0x14], esi
jmp 0x46034b
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 0x4604e7
mov edi, dword [sym.imp.MSVCRT.dll_wcsstr]
push str.__SaveObjUrl
push esi
call edi
add esp, 8
test eax, eax
je 0x46038f
lea esi, [eax + ebp*2]
push str.__SaveObjUrl
push esi
inc ebx
call edi
add esp, 8
test eax, eax
jne 0x46037c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x20]
cmp esi, eax
jb 0x460367
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x4604e3
lea ecx, [esp + 0x10]
call fcn.00406680
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 0x4603e0
cmp dword [esi - 0xc], 1
jle 0x460424
lea edi, [esi - 0xc]
push ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], edi
call fcn.00406580
test eax, eax
je 0x4604e3
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.00406650
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 0x4604e0
jmp 0x46043e
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 0x4604c5
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 0x46044f
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 0x460438
mov esi, dword [esp + 0x10]
mov dword [esi - 8], ebx
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x44]
push ecx
push 0x4f3180
lea ecx, [esp + 0x18]
call fcn.004068f0
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push edx
push 0x4edb64
call fcn.004068f0
push 0x68d378
lea eax, [esp + 0x28]
push 0x4f317c
push eax
call fcn.00443ef0
push 0x4f317c
lea ecx, [esp + 0x48]
push eax
push ecx
mov byte [esp + 0x48], 2
call fcn.00443d70
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push eax
push str._tw_security_id
mov byte [esp + 0x44], 3
call fcn.004068f0
mov eax, dword [esp + 0x44]
mov ecx, dword [0x4ed100]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x46057d
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x46057d
mov eax, dword [esp + 0x44]
add eax, 0xfffffff4
push eax
call fcn.004d4cc1
add esp, 4
mov eax, dword [esp + 0x24]
mov edx, dword [0x4ed100]
mov byte [esp + 0x3c], 1
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4605ad
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4605ad
mov edx, dword [esp + 0x24]
lea eax, [edx - 0xc]
push eax
call fcn.004d4cc1
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.0043f290
mov ebp, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 0xc
test esi, esi
je 0x4605e0
push esi
call ebp
test ebx, ebx
je 0x4605e7
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.00406750
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00406750
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.00406750
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call fcn.00406750
mov ecx, dword [esp + 0x30]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 4