Function at 0x462a20
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4d86d6
push eax
mov eax, 0x65f0
mov dword fs:[0], esp
call fcn.004d3780
mov eax, dword [0x6bfb2c]
push ebx
push ebp
mov ebp, ecx
push esi
cmp eax, 2
push edi
mov dword [esp + 0x18], ebp
je 0x463200
mov eax, dword [ebp + 0x1598c]
xor ebx, ebx
cmp eax, ebx
je 0x463200
cmp dword [0x6c2e6c], ebx
jne 0x462ab7
cmp dword [esp + 0x6610], ebx
jne 0x462ab7
push reloc.DSOUND.dll_DirectSoundCreate
push str.OldUrl
call fcn.004ad9d0
push reloc.DSOUND.dll_DirectSoundCreate
push str.LastUrl
call fcn.004ad9d0
mov eax, dword [ebp + 0x159d0]
push str._TempUrl_
push eax
call fcn.004ad340
add esp, 0x18
mov ecx, ebp
push ebx
call fcn.004624a0
jmp 0x463200
mov eax, dword [0x6c2e70]
mov esi, dword [esp + 0x6610]
cmp eax, ebx
jne 0x462ad8
cmp esi, ebx
je 0x462ad8
push esi
mov ecx, ebp
call fcn.004624a0
jmp 0x463200
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x24e2]
mov word [esp + 0x24e0], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x823
xor eax, eax
lea edi, [esp + 0x4572]
mov word [esp + 0x4570], bx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24e0]
push 0x823
push ecx
push str.360SEHOME.HTM
stosw word es:[edi], ax
call fcn.004aea30
add esp, 0xc
lea edx, [esp + 0x40]
lea eax, [esp + 0x4570]
lea ecx, [esp + 0x24e0]
push 0x6000000
push edx
push eax
push ecx
mov dword [esp + 0x50], 0x1047
call dword [sym.imp.SHLWAPI.dll_UrlCanonicalizeW]
cmp esi, ebx
je 0x462b69
mov eax, dword [ebp + 0x159d0]
cmp eax, ebx
je 0x462bb2
push str._TempUrl_
push eax
call fcn.004ad340
jmp 0x462baf
lea edx, [esp + 0x1c]
lea eax, [esp + 0x4570]
push edx
push eax
mov ecx, ebp
mov dword [esp + 0x24], ebx
call fcn.00463e70
test eax, eax
je 0x462b8e
mov ecx, ebp
call fcn.00462230
jmp 0x462ba0
push reloc.DSOUND.dll_DirectSoundCreate
push str.OldUrl
call fcn.004ad9d0
add esp, 8
push reloc.DSOUND.dll_DirectSoundCreate
push str.LastUrl
call fcn.004ad9d0
add esp, 8
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x452]
mov word [esp + 0x450], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x4a]
mov word [esp + 0x48], bx
rep stosd dword es:[edi], eax
lea ebx, [ebp + 0x54]
mov ecx, ebx
stosw word es:[edi], ax
call fcn.004cb650
mov edi, eax
push reloc.DSOUND.dll_DirectSoundCreate
push str.LockUrl
mov dword [esp + 0x4c], edi
call fcn.004ad9d0
add esp, 8
xor eax, eax
test edi, edi
mov dword [esp + 0x1c], eax
jle 0x4631c8
lea ecx, [esp + 0x38]
lea edx, [esp + 0x34]
push ecx
push edx
push eax
mov ecx, ebx
call fcn.004cb6d0
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x4631ac
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x4631ac
lea eax, [esp + 0x450]
push 0
push eax
mov dword [esp + 0x44], ecx
call fcn.0049f9d0
test eax, eax
je 0x4631ac
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x352a]
mov word [esp + 0x3528], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x3528]
lea edx, [esp + 0x450]
push ecx
push 0x6ba93c
push edx
stosw word es:[edi], ax
call fcn.00437f70
add esp, 0xc
test eax, eax
je 0x462cb5
lea eax, [esp + 0x3528]
lea ecx, [esp + 0x450]
push eax
push 0x4eb504
push 0x823
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea edx, [esp + 0x450]
push 0
push edx
call fcn.004a9670
add esp, 8
test eax, eax
je 0x4631ac
mov eax, dword [0x4eb4c0]
lea ecx, [esp + 0x450]
test ecx, ecx
mov dword [esp + 0x10], eax
je 0x462dc2
lea edx, [esp + 0x450]
shr edx, 0x10
jne 0x462d84
xor edi, edi
lea eax, [esp + 0x450]
lea ecx, [esp + 0x250]
mov di, ax
push 0x100
push ecx
push edi
call fcn.00410530
mov edx, 0x100
sub edx, eax
cmp edx, 1
jle 0x462d38
lea eax, [esp + 0x250]
lea ecx, [esp + 0x10]
push eax
call fcn.00410650
jmp 0x462dc2
push 0x1ff
lea ecx, [esp + 0x14]
mov esi, 0x200
call fcn.00410760
test eax, eax
je 0x462d77
push esi
push eax
push edi
call fcn.00410530
mov ecx, esi
sub ecx, eax
cmp ecx, 1
jg 0x462d77
add esi, 0x100
lea ecx, [esp + 0x10]
lea edx, [esi - 1]
push edx
call fcn.00410760
test eax, eax
jne 0x462d4f
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.004107f0
jmp 0x462dc2
lea eax, [esp + 0x450]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x462dc2
push esi
lea ecx, [esp + 0x14]
call fcn.00407580
test eax, eax
je 0x462dc2
mov edi, dword [esp + 0x10]
lea ecx, [esi + esi]
mov edx, ecx
lea esi, [esp + 0x450]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, 0x4f05a0
mov dword [esp + 0x6608], 0
test eax, eax
je 0x462fec
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call esi
mov ebp, eax
test ebp, ebp
je 0x462fe8
mov ecx, 0x4f25dc
test ecx, ecx
jne 0x462dfc
mov dword [esp + 0x20], ecx
jmp 0x462e07
push 0x4f25dc
call esi
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x10]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov edx, dword [esi - 8]
lea eax, [esi + edx*2]
cmp esi, eax
mov dword [esp + 0x14], eax
jae 0x462fe8
mov edi, dword [sym.imp.MSVCRT.dll_wcsstr]
push 0x4f05a0
push esi
call edi
add esp, 8
test eax, eax
je 0x462e4b
lea esi, [eax + ebp*2]
push 0x4f05a0
push esi
inc ebx
call edi
add esp, 8
test eax, eax
jne 0x462e38
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x14]
cmp esi, eax
jb 0x462e23
test ebx, ebx
mov dword [esp + 0x14], ebx
jle 0x462fe8
mov esi, dword [esp + 0x10]
mov eax, dword [esi - 0xc]
lea ebx, [esi - 0xc]
cmp eax, 1
jle 0x462ebf
lea ecx, [esp + 0x10]
call fcn.00407610
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x10]
push eax
call fcn.00407580
test eax, eax
je 0x462ebb
mov ecx, dword [ebx + 4]
mov edi, dword [esp + 0x10]
lea esi, [ebx + 0xc]
lea ecx, [ecx + ecx + 2]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
mov edi, dword [sym.imp.MSVCRT.dll_wcsstr]
jmp 0x462ebf
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x20]
mov eax, dword [esi - 8]
sub ebx, ebp
mov dword [esp + 0x24], eax
imul ebx, dword [esp + 0x14]
add ebx, eax
mov eax, dword [esi - 4]
cmp eax, ebx
mov dword [esp + 0x30], ebx
jl 0x462ee4
cmp dword [esi - 0xc], 1
jle 0x462f28
lea edi, [esi - 0xc]
push ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], edi
call fcn.00407580
test eax, eax
je 0x462fe8
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 + 0x14]
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 + 0x14], eax
jae 0x462fe5
jmp 0x462f42
mov edi, dword [sym.imp.MSVCRT.dll_wcsstr]
push 0x4f05a0
push esi
call edi
mov edi, eax
add esp, 8
test edi, edi
je 0x462fca
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov ecx, edi
sub ecx, eax
mov eax, dword [esp + 0x24]
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, 0x4f25dc
mov edx, ecx
mov eax, dword [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
sub eax, ebp
and ecx, 3
push 0x4f05a0
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x3c]
push esi
mov word [ebx + esi], 0
mov ebx, dword [esp + 0x38]
add ebx, eax
mov dword [esp + 0x38], ebx
call dword [sym.imp.MSVCRT.dll_wcsstr]
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x462f53
mov ebx, dword [esp + 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x14]
cmp esi, eax
jb 0x462f3c
mov esi, dword [esp + 0x10]
mov dword [esi - 8], ebx
mov ebp, dword [esp + 0x18]
lea ecx, [esp + 0x48]
push 0x103
push ecx
mov ecx, dword [esp + 0x44]
call fcn.0049fcf0
lea edx, [esp + 0x450]
push edx
call fcn.0049a260
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x1c]
lea ebx, [ebp + 0x54]
push eax
mov ecx, ebx
call fcn.004ca8f0
test eax, eax
je 0x46310a
test esi, esi
je 0x4630ea
lea ecx, [esp + 0x28]
call fcn.0049a170
mov edx, dword [esp + 0x10]
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x149a]
mov word [esp + 0x1498], 0
push 0x823
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x149c]
mov byte [esp + 0x660c], 1
push ecx
push edx
lea ecx, [esp + 0x34]
stosw word es:[edi], ax
call fcn.0049a1b0
lea eax, [esp + 0x1498]
test eax, eax
jne 0x463087
xor ebp, ebp
jmp 0x463097
lea ecx, [esp + 0x1498]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
push ebp
lea ecx, [esp + 0x14]
call fcn.004076f0
test eax, eax
je 0x4630d5
mov edi, dword [esp + 0x10]
lea eax, [ebp + ebp]
mov ecx, eax
lea esi, [esp + 0x1498]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], ebp
mov edx, dword [esp + 0x10]
mov word [eax + edx], 0
lea ecx, [esp + 0x28]
mov byte [esp + 0x6608], 0
call fcn.0049a1a0
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push reloc.DSOUND.dll_DirectSoundCreate
lea eax, [esp + 0x4c]
push 0xffffffffffffffff
push eax
push ecx
push str.LockUrl
call fcn.004adf80
add esp, 0x14
jmp 0x463172
test esi, esi
jne 0x463172
mov eax, dword [esp + 0x6610]
test eax, eax
je 0x46313d
mov eax, dword [ebp + 0x159d0]
test eax, eax
je 0x46315b
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x48]
push edx
push ecx
push str.TempUrl
push eax
call fcn.004aced0
add esp, 0x10
jmp 0x46315b
mov eax, dword [esp + 0x10]
push reloc.DSOUND.dll_DirectSoundCreate
lea edx, [esp + 0x4c]
push 0xffffffffffffffff
push edx
push eax
push str.LastUrl
call fcn.004adf80
add esp, 0x14
mov ecx, dword [esp + 0x10]
push reloc.DSOUND.dll_DirectSoundCreate
push ecx
push str.OldUrl
call fcn.004ad8a0
add esp, 0xc
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4eb24c]
mov dword [esp + 0x6608], 0xffffffff
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4631ac
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4631ac
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.004d3765
add esp, 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x44]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x462c10
mov esi, dword [esp + 0x6610]
test esi, esi
je 0x463200
mov eax, dword [ebp + 0x159d0]
test eax, eax
je 0x463200
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea esi, [ebp + 0x159d4]
push 0x80
push esi
call edi
mov ecx, dword [ebp + 0x159d0]
push 0
push ecx
call fcn.004ad1b0
add esp, 8
push 2
push esi
call edi
mov ecx, dword [esp + 0x6600]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x65fc
ret 4