Function at 0x445e84
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0x1e8
mov eax, 0x46ef8b
call fcn.0045127c
mov eax, dword [ebp + 8]
mov dword [ebp - 0xfc], eax
xor eax, eax
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x104], ebx
cmp byte [edi + 4], bl
push 1
setne al
push str.Downloads
push 1
mov esi, edx
mov dword [ebp - 0xf0], edi
mov dword [ebp - 0xf8], esi
dec eax
and eax, 2
push eax
lea eax, [ebp - 0xec]
push eax
call fcn.0043290e
add esp, 0x14
mov dword [ebp - 4], ebx
cmp dword [ebp - 0xd8], ebx
jne 0x445f1c
push str.Failed_to_create_Downloads_folder
lea ecx, [ebp - 0xa4]
call fcn.00406ce0
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x164]
push eax
mov byte [ebp - 4], 1
call fcn.00401340
push 0x486be4
lea eax, [ebp - 0x164]
push eax
call fcn.00450dab
xor eax, eax
cmp byte [edi + 4], bl
push ebx
sete al
push str.SoftwareCruRevRegETags
add eax, 0x80000001
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0042fb3b
lea eax, [ebp - 0x118]
push eax
mov ecx, esi
lea ebx, [ebp - 0x88]
mov byte [ebp - 4], 2
call fcn.0042faa2
add esp, 0x14
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], ax
mov byte [ebp - 4], 4
cmp dword [ebp - 0x74], ebx
je 0x446190
lea ecx, [ebp - 0x88]
lea edi, [ebp - 0x134]
call fcn.00431734
push eax
lea eax, [ebp - 0xec]
push eax
lea edi, [ebp - 0xa4]
mov byte [ebp - 4], 5
call fcn.00409530
pop ecx
pop ecx
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.00407540
mov esi, edi
call fcn.00406e40
lea esi, [ebp - 0x134]
mov byte [ebp - 4], 4
call fcn.00406e40
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x445fd1
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x445fec
lea eax, [ebp - 0x88]
call fcn.004378a2
jmp 0x446185
lea eax, [ebp - 0xd0]
push eax
mov byte [ebp - 4], 7
call fcn.00445522
mov byte [ebp - 4], 8
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x44600c
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x1f4]
push eax
call fcn.0043147c
lea ecx, [ebp - 0xd0]
push ecx
mov ecx, eax
mov byte [ebp - 4], 9
call fcn.004455f5
lea eax, [ebp - 0x1f4]
mov byte [ebp - 4], 8
call fcn.0041f9d8
lea edi, [ebp - 0xd0]
call fcn.0044569d
mov eax, edi
push eax
lea ecx, [ebp - 0xa4]
call fcn.00406d20
lea eax, [ebp - 0x88]
lea edx, [ebp - 0xa4]
mov byte [ebp - 4], 0xa
call fcn.00410d00
cmp eax, ebx
je 0x4460d5
cmp dword [ebp - 0x8c], 0x10
mov edi, dword [ebp - 0xa0]
jae 0x446081
lea edi, [ebp - 0xa0]
cmp dword [ebp - 0x70], 0x10
mov esi, dword [ebp - 0x84]
jae 0x446093
lea esi, [ebp - 0x84]
mov eax, dword [ebp - 0xf0]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0xc]
push edi
push esi
push dword [ebp - 0xf8]
mov esi, eax
push str.WARNING:_etag_and_hash_dont_match_for__S:_etag_s_hash_s
call fcn.00406fa0
add esp, 0x10
lea eax, [ebp - 0x88]
call fcn.004378a2
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x4460ce
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0xa4]
call fcn.00406d50
push dword [ebp - 0xb0]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
push dword [ebp - 0xb4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea ecx, [ebp - 0xd0]
call fcn.00406d50
mov dword [ebp - 4], 4
jmp 0x446185
mov edi, dword [ebp - 0xf0]
cmp dword [ebp - 0x74], ebx
jne 0x446198
lea eax, [ebp - 0x34]
call fcn.00446cf5
mov ecx, 0x479df4
lea ebx, [ebp - 0x50]
call fcn.0042686a
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x4461b5
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x1f4]
push eax
push 0x20
pop ecx
call fcn.00425e5b
xor ebx, ebx
push ebx
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x8c], 0xf
call fcn.00407df0
mov byte [ebp - 4], 0xf
mov ecx, dword [edi]
mov eax, dword [ecx]
lea edx, [ebp - 0x134]
push edx
call dword [eax + 8]
cmp dword [eax + 0x14], ebx
lea ecx, [ebp - 0x134]
sete byte [ebp - 0xf1]
call fcn.00406d50
cmp byte [ebp - 0xf1], bl
je 0x44623b
push dword [ebp - 0xf8]
lea esi, [ebp - 0x134]
push 0x47e69c
call fcn.004318ef
pop ecx
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0x10
call fcn.00407320
mov ecx, esi
jmp 0x446295
mov ecx, dword [edi]
mov eax, dword [ecx]
lea edx, [ebp - 0xc8]
push edx
call dword [eax + 8]
mov byte [ebp - 4], 0x11
cmp dword [eax + 0x18], 0x10
jb 0x446258
mov eax, dword [eax + 4]
jmp 0x44625b
add eax, 4
push dword [ebp - 0xf8]
lea esi, [ebp - 0x134]
push eax
push str.__s__S
call fcn.004318ef
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0x12
call fcn.00407320
mov ecx, esi
call fcn.00406d50
lea ecx, [ebp - 0xc8]
call fcn.00406d50
mov edi, dword [edi]
mov eax, dword [ebp + 0xc]
sub esp, 0x20
cmp byte [ebp + 0x10], bl
mov dword [ebp - 0x110], 0x445e67
lea esi, [ebp - 0x110]
mov dword [ebp - 0x108], edi
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x104], esp
mov ebx, esp
je 0x446331
sub esp, 0xc
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00446d9f
push 0
lea eax, [ebp - 0x88]
push eax
sub esp, 0x1c
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0xa4]
mov ecx, esp
mov dword [ebp - 0x100], esp
push eax
lea esi, [ebp - 0x1f4]
call fcn.00406d20
mov byte [ebp - 4], 0x14
mov ebx, dword [ebp - 0xf0]
mov ecx, dword [ebx]
mov eax, dword [ecx]
sub esp, 0x1c
mov edx, esp
mov dword [ebp - 0xf0], esp
push edx
call dword [eax + 4]
mov byte [ebp - 4], 0xf
mov ecx, dword [ebx]
mov edx, esi
call fcn.00437631
add esp, 0x60
jmp 0x446399
sub esp, 0xc
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00446d9f
push 1
push 0
lea eax, [ebp - 0x88]
push eax
sub esp, 0x1c
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0xa4]
mov ecx, esp
mov dword [ebp - 0x100], esp
push eax
lea edi, [ebp - 0x1f4]
call fcn.00406d20
mov byte [ebp - 4], 0x16
mov esi, dword [ebp - 0xf0]
mov ecx, dword [esi]
mov eax, dword [ecx]
sub esp, 0x1c
mov edx, esp
mov dword [ebp - 0x138], esp
push edx
call dword [eax + 4]
mov byte [ebp - 4], 0xf
mov edx, dword [esi]
mov ecx, edi
call fcn.0043577f
add esp, 0x64
mov ebx, esi
lea ecx, [ebp - 0xa4]
call fcn.00406d50
lea eax, [ebp - 0x1f4]
mov byte [ebp - 4], 0xd
call fcn.0041b936
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0x14]
lea ecx, [ebp - 0x88]
lea edi, [ebp - 0xc8]
call fcn.00431734
push eax
lea eax, [ebp - 0xec]
push eax
lea edi, [ebp - 0x6c]
mov byte [ebp - 4], 0x17
call fcn.00409530
pop ecx
pop ecx
lea esi, [ebp - 0xc8]
mov byte [ebp - 4], 0x19
call fcn.00406e40
cmp dword [ebp - 0x54], 8
mov eax, dword [ebp - 0x68]
jae 0x4463fc
lea eax, [ebp - 0x68]
mov edi, dword [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x34]
call fcn.00409dd0
test eax, eax
je 0x446581
cmp dword [ebp - 0x20], 0
je 0x446481
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x446425
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x446481
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x446481
lea eax, [ebp - 0xf0]
push eax
call fcn.0042fa0c
pop ecx
mov byte [ebp - 4], 0x1a
cmp dword [ebp - 0x1c], 8
mov eax, dword [eax]
mov edx, dword [ebp - 0x30]
jae 0x44645a
lea edx, [ebp - 0x30]
mov ecx, dword [ebx]
push eax
mov eax, dword [ecx]
push edx
push str.Failed_to_delete_old__S:__S
call dword [eax + 0xc]
mov esi, eax
call fcn.00406fa0
add esp, 0xc
lea eax, [ebp - 0xf0]
mov byte [ebp - 4], 0x19
call fcn.0040c440
mov eax, dword [ebp - 0x68]
push 8
pop esi
cmp dword [ebp - 0x54], esi
jae 0x44648f
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4464f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4464f2
lea eax, [ebp - 0xf8]
push eax
call fcn.0042fa0c
pop ecx
mov byte [ebp - 4], 0x1b
mov eax, dword [eax]
mov edx, dword [ebp - 0x68]
cmp dword [ebp - 0x54], esi
jae 0x4464c3
lea edx, [ebp - 0x68]
mov ecx, dword [ebx]
push eax
mov eax, dword [ecx]
push edx
push str.Failed_to_delete__S:__S
call dword [eax + 0xc]
mov esi, eax
call fcn.00406fa0
add esp, 0xc
lea eax, [ebp - 0xf8]
mov byte [ebp - 4], 0x19
call fcn.0040c440
lea eax, [ebp - 0x50]
jmp 0x4465e1
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x38], esi
jae 0x4464fd
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0xac]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x44651a
mov eax, dword [ebp - 0x8c]
add dword [ebx + 8], eax
mov edx, dword [ebp - 0x68]
cmp dword [ebp - 0x54], esi
jae 0x446525
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x38], esi
jae 0x446530
lea eax, [ebp - 0x4c]
mov ecx, dword [ebx]
push edx
push eax
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, eax
call fcn.0042fcfb
pop ecx
pop ecx
lea ecx, [ebp - 0x88]
lea edi, [ebp - 0x134]
call fcn.00431734
cmp dword [eax + 0x18], esi
jb 0x44655d
mov eax, dword [eax + 4]
jmp 0x446560
add eax, 4
push 1
push dword [ebp - 0xf8]
lea ecx, [ebp - 0x118]
push ecx
mov esi, eax
call fcn.0040b390
lea esi, [ebp - 0x134]
call fcn.00406e40
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x44658d
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4465de
lea eax, [ebp - 0x100]
push eax
call fcn.0042fa0c
pop ecx
mov byte [ebp - 4], 0x1c
cmp dword [ebp - 0x38], 8
mov eax, dword [eax]
mov edx, dword [ebp - 0x4c]
jae 0x4465b7
lea edx, [ebp - 0x4c]
mov ecx, dword [ebx]
push eax
mov eax, dword [ecx]
push edx
push str.Failed_to_delete__S:__S
call dword [eax + 0xc]
mov esi, eax
call fcn.00406fa0
add esp, 0xc
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 0x19
call fcn.0040c440
lea eax, [ebp - 0x6c]
mov esi, dword [ebp - 0xfc]
push eax
call fcn.00406e10
lea esi, [ebp - 0x6c]
call fcn.00406e40
lea esi, [ebp - 0x50]
call fcn.00406e40
lea esi, [ebp - 0x34]
call fcn.00406e40
lea ecx, [ebp - 0x88]
call fcn.00406d50
lea esi, [ebp - 0x118]
call fcn.0040b400
lea esi, [ebp - 0xec]
call fcn.00406e40
mov eax, dword [ebp - 0xfc]
call fcn.004512d8
ret 0xc