Function at 0x463ed0
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4d9c76
push eax
mov eax, 0x65f0
mov dword fs:[0], esp
call fcn.004d4ce0
mov eax, dword [0x722ac4]
push ebx
push ebp
mov ebp, ecx
push esi
cmp eax, 2
push edi
mov dword [esp + 0x18], ebp
je 0x4646b0
mov eax, dword [ebp + 0x1598c]
xor ebx, ebx
cmp eax, ebx
je 0x4646b0
cmp dword [0x725e04], ebx
jne 0x463f67
cmp dword [esp + 0x6610], ebx
jne 0x463f67
push reloc.DSOUND.dll_DirectSoundCreate
push str.OldUrl
call fcn.004aed20
push reloc.DSOUND.dll_DirectSoundCreate
push str.LastUrl
call fcn.004aed20
mov eax, dword [ebp + 0x159d0]
push str._TempUrl_
push eax
call fcn.004ae690
add esp, 0x18
mov ecx, ebp
push ebx
call fcn.00463950
jmp 0x4646b0
mov eax, dword [0x725e08]
mov esi, dword [esp + 0x6610]
cmp eax, ebx
jne 0x463f88
cmp esi, ebx
je 0x463f88
push esi
mov ecx, ebp
call fcn.00463950
jmp 0x4646b0
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.TWHOME.HTM
stosw word es:[edi], ax
call fcn.004afd80
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 0x464019
mov eax, dword [ebp + 0x159d0]
cmp eax, ebx
je 0x464062
push str._TempUrl_
push eax
call fcn.004ae690
jmp 0x46405f
lea edx, [esp + 0x1c]
lea eax, [esp + 0x4570]
push edx
push eax
mov ecx, ebp
mov dword [esp + 0x24], ebx
call fcn.00465320
test eax, eax
je 0x46403e
mov ecx, ebp
call fcn.004636e0
jmp 0x464050
push reloc.DSOUND.dll_DirectSoundCreate
push str.OldUrl
call fcn.004aed20
add esp, 8
push reloc.DSOUND.dll_DirectSoundCreate
push str.LastUrl
call fcn.004aed20
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.004cca80
mov edi, eax
push reloc.DSOUND.dll_DirectSoundCreate
push str.LockUrl
mov dword [esp + 0x4c], edi
call fcn.004aed20
add esp, 8
xor eax, eax
test edi, edi
mov dword [esp + 0x1c], eax
jle 0x464678
lea ecx, [esp + 0x38]
lea edx, [esp + 0x34]
push ecx
push edx
push eax
mov ecx, ebx
call fcn.004ccaf0
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x46465c
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x46465c
lea eax, [esp + 0x450]
push 0
push eax
mov dword [esp + 0x44], ecx
call fcn.004a0e30
test eax, eax
je 0x46465c
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 0x71de28
push edx
stosw word es:[edi], ax
call fcn.00438580
add esp, 0xc
test eax, eax
je 0x464165
lea eax, [esp + 0x3528]
lea ecx, [esp + 0x450]
push eax
push 0x4ed128
push 0x823
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea edx, [esp + 0x450]
push 0
push edx
call fcn.004aa9c0
add esp, 8
test eax, eax
je 0x46465c
mov eax, dword [0x4ed0fc]
lea ecx, [esp + 0x450]
test ecx, ecx
mov dword [esp + 0x10], eax
je 0x464272
lea edx, [esp + 0x450]
shr edx, 0x10
jne 0x464234
xor edi, edi
lea eax, [esp + 0x450]
lea ecx, [esp + 0x250]
mov di, ax
push 0x100
push ecx
push edi
call fcn.0040f710
mov edx, 0x100
sub edx, eax
cmp edx, 1
jle 0x4641e8
lea eax, [esp + 0x250]
lea ecx, [esp + 0x10]
push eax
call fcn.0040f830
jmp 0x464272
push 0x1ff
lea ecx, [esp + 0x14]
mov esi, 0x200
call fcn.0040f940
test eax, eax
je 0x464227
push esi
push eax
push edi
call fcn.0040f710
mov ecx, esi
sub ecx, eax
cmp ecx, 1
jg 0x464227
add esi, 0x100
lea ecx, [esp + 0x10]
lea edx, [esi - 1]
push edx
call fcn.0040f940
test eax, eax
jne 0x4641ff
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.0040f9d0
jmp 0x464272
lea eax, [esp + 0x450]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x464272
push esi
lea ecx, [esp + 0x14]
call fcn.00406580
test eax, eax
je 0x464272
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, 0x4f1678
mov dword [esp + 0x6608], 0
test eax, eax
je 0x46449c
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call esi
mov ebp, eax
test ebp, ebp
je 0x464498
mov ecx, 0x4f35dc
test ecx, ecx
jne 0x4642ac
mov dword [esp + 0x20], ecx
jmp 0x4642b7
push 0x4f35dc
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 0x464498
mov edi, dword [sym.imp.MSVCRT.dll_wcsstr]
push 0x4f1678
push esi
call edi
add esp, 8
test eax, eax
je 0x4642fb
lea esi, [eax + ebp*2]
push 0x4f1678
push esi
inc ebx
call edi
add esp, 8
test eax, eax
jne 0x4642e8
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x14]
cmp esi, eax
jb 0x4642d3
test ebx, ebx
mov dword [esp + 0x14], ebx
jle 0x464498
mov esi, dword [esp + 0x10]
mov eax, dword [esi - 0xc]
lea ebx, [esi - 0xc]
cmp eax, 1
jle 0x46436f
lea ecx, [esp + 0x10]
call fcn.00406610
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x10]
push eax
call fcn.00406580
test eax, eax
je 0x46436b
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 0x46436f
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 0x464394
cmp dword [esi - 0xc], 1
jle 0x4643d8
lea edi, [esi - 0xc]
push ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], edi
call fcn.00406580
test eax, eax
je 0x464498
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.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 + 0x14], eax
jae 0x464495
jmp 0x4643f2
mov edi, dword [sym.imp.MSVCRT.dll_wcsstr]
push 0x4f1678
push esi
call edi
mov edi, eax
add esp, 8
test edi, edi
je 0x46447a
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, 0x4f35dc
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 0x4f1678
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 0x464403
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 0x4643ec
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.004a1150
lea edx, [esp + 0x450]
push edx
call fcn.0049b690
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x1c]
lea ebx, [ebp + 0x54]
push eax
mov ecx, ebx
call fcn.004cbd20
test eax, eax
je 0x4645ba
test esi, esi
je 0x46459a
lea ecx, [esp + 0x28]
call fcn.0049b5a0
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.0049b5e0
lea eax, [esp + 0x1498]
test eax, eax
jne 0x464537
xor ebp, ebp
jmp 0x464547
lea ecx, [esp + 0x1498]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
push ebp
lea ecx, [esp + 0x14]
call fcn.004066f0
test eax, eax
je 0x464585
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.0049b5d0
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.004af2d0
add esp, 0x14
jmp 0x464622
test esi, esi
jne 0x464622
mov eax, dword [esp + 0x6610]
test eax, eax
je 0x4645ed
mov eax, dword [ebp + 0x159d0]
test eax, eax
je 0x46460b
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x48]
push edx
push ecx
push str.TempUrl
push eax
call fcn.004ae220
add esp, 0x10
jmp 0x46460b
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.004af2d0
add esp, 0x14
mov ecx, dword [esp + 0x10]
push reloc.DSOUND.dll_DirectSoundCreate
push ecx
push str.OldUrl
call fcn.004aebf0
add esp, 0xc
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4ed100]
mov dword [esp + 0x6608], 0xffffffff
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x46465c
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x46465c
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.004d4cc1
add esp, 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x44]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x4640c0
mov esi, dword [esp + 0x6610]
test esi, esi
je 0x4646b0
mov eax, dword [ebp + 0x159d0]
test eax, eax
je 0x4646b0
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.004ae500
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