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

Disassembly:
push 0x1cc
mov eax, 0x43daa3
call fcn.004380ca
mov esi, ecx
mov dword [ebp - 0xf8], esi
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xc8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 1
push str.Downloads
mov dword [ebp - 0x100], eax
xor eax, eax
cmp byte [esi + 4], al
push 1
push 2
pop edx
cmovne edx, eax
mov dword [ebp - 0xfc], esi
mov dword [ebp - 0xec], esi
mov dword [ebp - 0xf0], edi
call fcn.0042f7a2
add esp, 0xc
mov dword [ebp - 4], ebx
cmp dword [ebp - 0xb8], ebx
je 0x42df14
xor edx, edx
lea ecx, [ebp - 0x10c]
cmp byte [esi + 4], dl
push ebx
sete dl
push ebx
push str.SoftwareRobloxRegETags
add edx, 0x80000001
call fcn.0041c356
add esp, 0xc
push edi
lea edx, [ebp - 0x10c]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.0041c2ce
pop ecx
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
push 7
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x1c], ebx
pop ebx
mov ecx, ebx
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 3
cmp dword [ebp - 0x34], eax
je 0x42da91
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0xa4]
call fcn.0040ee2a
mov ecx, eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0xc8]
cmp dword [ebp - 0xb4], ebx
push dword [ebp - 0xb8]
cmova eax, dword [ebp - 0xc8]
push eax
push ecx
call fcn.0041d939
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040bb63
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040bb2c
lea ecx, [ebp - 0x5c]
call fcn.00402ab8
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 3
call fcn.00402ab8
cmp dword [ebp - 0x18], ebx
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42d8fa
and dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 0xf
cmova eax, dword [ebp - 0x44]
mov byte [eax], 0
jmp 0x42da88
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 5
call fcn.00430927
mov byte [ebp - 4], 6
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x1d8]
cmova eax, dword [ebp - 0x2c]
sub esp, 0xc
push eax
call fcn.0041d720
push eax
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], bl
call fcn.00430a02
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 6
call fcn.0041d6f0
lea ecx, [ebp - 0x168]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xe8]
call fcn.00430aa3
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040417c
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x5c]
call fcn.0040c25c
test al, al
jne 0x42d9de
cmp dword [ebp - 0x30], 0xf
lea edi, [ebp - 0x44]
mov ecx, dword [esi]
lea eax, [ebp - 0x5c]
cmova edi, dword [ebp - 0x44]
cmp dword [ebp - 0x48], 0xf
cmova eax, dword [ebp - 0x5c]
mov dword [ebp - 0xf4], eax
mov eax, dword [ecx]
call dword [eax + 0xc]
push dword [ebp - 0xf4]
push edi
push dword [ebp - 0xf0]
push str.WARNING:_etag_and_hash_dont_match_for__S:_etag_s_hash_s
push eax
call fcn.004026dd
and dword [ebp - 0x34], 0
lea eax, [ebp - 0x44]
add esp, 0x14
cmp dword [ebp - 0x30], 0xf
cmova eax, dword [ebp - 0x44]
mov byte [eax], 0
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x5c]
call fcn.004027a6
lea ecx, [ebp - 0xe8]
call fcn.004309e3
jmp 0x42da81
mov dword [ebp - 4], 3
cmp dword [ebp - 0x34], 0
jne 0x42daa3
mov ecx, dword [ebp - 0x18]
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x2c]
cmp ecx, ebx
cmova eax, dword [ebp - 0x2c]
xor ecx, ecx
mov word [eax], cx
mov edx, 0x445338
lea ecx, [ebp - 0x74]
call fcn.0040b057
push ecx
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x74]
cmp dword [ebp - 0x60], ebx
push ecx
cmova eax, dword [ebp - 0x74]
lea ecx, [ebp - 0x1d0]
push 0x20
push eax
call fcn.0040b92c
xor eax, eax
lea edi, [ebp - 0x5c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
mov byte [ebp - 4], 0xd
lea edx, [ebp - 0xa4]
mov ecx, dword [esi]
push edx
mov eax, dword [ecx]
call dword [eax + 8]
lea ecx, [ebp - 0xa4]
mov esi, dword [eax + 0x10]
call fcn.004027a6
test esi, esi
jne 0x42db35
push dword [ebp - 0xf0]
lea eax, [ebp - 0xa4]
push 0x44bddc
push eax
call fcn.0040f01b
add esp, 0xc
lea ecx, [ebp - 0x5c]
push eax
call fcn.004027c9
lea ecx, [ebp - 0xa4]
jmp 0x42db8a
mov ecx, dword [ebp - 0xf8]
lea edx, [ebp - 0xe0]
push edx
mov ecx, dword [ecx]
mov eax, dword [ecx]
call dword [eax + 8]
mov byte [ebp - 4], 0xe
cmp dword [eax + 0x14], 0xf
jbe 0x42db55
mov eax, dword [eax]
push dword [ebp - 0xf0]
push eax
lea eax, [ebp - 0xa4]
push str.__s__S
push eax
call fcn.0040f01b
add esp, 0x10
lea ecx, [ebp - 0x5c]
push eax
call fcn.004027c9
lea ecx, [ebp - 0xa4]
call fcn.004027a6
lea ecx, [ebp - 0xe0]
call fcn.004027a6
mov ecx, dword [ebp - 0xec]
lea esi, [ebp - 0x98]
mov eax, dword [ebp + 0x10]
sub esp, 0x20
mov dword [ebp - 0xec], esp
mov dword [ebp - 0x94], eax
mov ecx, dword [ecx]
mov dword [ebp - 0x90], ecx
mov ecx, esp
sub esp, 0x10
mov dword [ebp - 0x98], 0x42d78b
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0042e67b
cmp byte [ebp + 0x14], 0
je 0x42dc1d
sub esp, 0x18
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x5c]
mov dword [ebp - 0xf4], esp
mov ecx, esp
push eax
call fcn.0040417c
mov edi, dword [ebp - 0xf8]
sub esp, 0x18
mov byte [ebp - 4], 0x10
mov ecx, dword [edi]
push esp
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x1d0]
mov byte [ebp - 4], 0xd
mov ecx, dword [edi]
lea edx, [ebp - 0x44]
push 0
push eax
call fcn.0041562e
add esp, 0x58
jmp 0x42dc66
sub esp, 0x18
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x5c]
mov dword [ebp - 0xf4], esp
mov ecx, esp
push eax
call fcn.0040417c
mov edi, dword [ebp - 0xf8]
sub esp, 0x18
mov byte [ebp - 4], 0x12
mov ecx, dword [edi]
push esp
mov eax, dword [ecx]
call dword [eax + 4]
push 1
lea eax, [ebp - 0x1d0]
mov byte [ebp - 4], 0xd
mov ecx, dword [edi]
lea edx, [ebp - 0x44]
push 0
push eax
call fcn.00413887
add esp, 0x5c
lea ecx, [ebp - 0x5c]
call fcn.004027a6
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 0xb
call fcn.0040b8fc
lea ecx, [ebp - 0x168]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x14]
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0xe0]
call fcn.0040ee2a
mov ecx, eax
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0xc8]
cmp dword [ebp - 0xb4], ebx
push dword [ebp - 0xb8]
cmova eax, dword [ebp - 0xc8]
push eax
push ecx
call fcn.0041d939
push eax
lea ecx, [ebp - 0x8c]
call fcn.0040bb63
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 0x15
call fcn.00402ab8
lea edx, [ebp - 0x8c]
lea ecx, [ebp - 0x2c]
call fcn.0040c290
test al, al
jne 0x42de52
cmp dword [ebp - 0x1c], 0
je 0x42dd5f
cmp dword [ebp - 0x18], ebx
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42dd5f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x42dd65
lea ecx, [ebp - 0xec]
call fcn.0041c234
push dword [eax]
mov byte [ebp - 4], 0x16
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
mov ecx, dword [edi]
cmova eax, dword [ebp - 0x2c]
push eax
push str.Failed_to_delete_old__S:__S
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.004026dd
add esp, 0x10
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0xec]
call fcn.00402b3c
jmp 0x42dd65
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x78], ebx
lea eax, [ebp - 0x8c]
cmova eax, dword [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42ddd1
call esi
cmp eax, 2
je 0x42ddd1
lea ecx, [ebp - 0xec]
call fcn.0041c234
push dword [eax]
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x8c]
cmp dword [ebp - 0x78], ebx
mov ecx, dword [edi]
cmova eax, dword [ebp - 0x8c]
push eax
push str.Failed_to_delete__S:__S
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.004026dd
add esp, 0x10
lea ecx, [ebp - 0xec]
call fcn.00402b3c
lea eax, [ebp - 0x74]
jmp 0x42dea9
cmp dword [ebp - 0x60], ebx
lea ecx, [ebp - 0xb0]
push ecx
lea eax, [ebp - 0x74]
cmova eax, dword [ebp - 0x74]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x42ddf8
mov eax, dword [ebp - 0x90]
add dword [edi + 8], eax
cmp dword [ebp - 0x78], ebx
lea eax, [ebp - 0x8c]
mov ecx, dword [edi]
lea esi, [ebp - 0x74]
cmova eax, dword [ebp - 0x8c]
cmp dword [ebp - 0x60], ebx
push eax
mov eax, dword [ecx]
cmova esi, dword [ebp - 0x74]
call dword [eax + 0xc]
mov edx, esi
mov ecx, eax
call fcn.0041c585
pop ecx
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x5c]
call fcn.0040ee2a
cmp dword [eax + 0x14], ebx
jbe 0x42de36
mov eax, dword [eax]
push 1
push eax
push dword [ebp - 0xf0]
lea ecx, [ebp - 0x10c]
call fcn.00405a63
lea ecx, [ebp - 0x5c]
call fcn.00402ab8
cmp dword [ebp - 0x60], ebx
lea eax, [ebp - 0x74]
cmova eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42dea3
lea ecx, [ebp - 0xf4]
call fcn.0041c234
mov byte [ebp - 4], 0x18
lea edx, [ebp - 0x74]
mov ecx, dword [edi]
cmp dword [ebp - 0x60], ebx
push dword [eax]
cmova edx, dword [ebp - 0x74]
mov eax, dword [ecx]
push edx
push str.Failed_to_delete__S:__S
call dword [eax + 0xc]
push eax
call fcn.004026dd
add esp, 0x10
lea ecx, [ebp - 0xf4]
call fcn.00402b3c
lea eax, [ebp - 0x8c]
mov esi, dword [ebp - 0x100]
mov ecx, esi
push eax
call fcn.0040bb63
lea ecx, [ebp - 0x8c]
call fcn.00402ab8
lea ecx, [ebp - 0x74]
call fcn.00402ab8
mov edx, dword [ebp - 0x18]
cmp edx, ebx
jbe 0x42dee0
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
call fcn.00403293
xor eax, eax
mov dword [ebp - 0x18], ebx
and dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x44]
mov word [ebp - 0x2c], ax
call fcn.004027a6
lea ecx, [ebp - 0x10c]
call fcn.004058ae
lea ecx, [ebp - 0xc8]
call fcn.00402ab8
mov eax, esi
call fcn.0043801c
ret 0x10
push str.Failed_to_create_Downloads_folder
lea ecx, [ebp - 0x120]
call fcn.00405d9e
push 0x456d68
lea eax, [ebp - 0x120]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3