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

Disassembly:
push 0x1cc
mov eax, 0x43db51
call fcn.0043815a
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.0042f82b
add esp, 0xc
mov dword [ebp - 4], ebx
cmp dword [ebp - 0xb8], ebx
je 0x42df9d
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.0041c3df
add esp, 0xc
push edi
lea edx, [ebp - 0x10c]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.0041c357
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 0x42db1a
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0xa4]
call fcn.0040eeb3
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.0041d9c2
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040bbec
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040bbb5
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 0x42d983
and dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 0xf
cmova eax, dword [ebp - 0x44]
mov byte [eax], 0
jmp 0x42db11
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 5
call fcn.004309b3
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.0041d7a9
push eax
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], bl
call fcn.00430a8e
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 6
call fcn.0041d779
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.00430b2f
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.0040c2e5
test al, al
jne 0x42da67
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.00430a6f
jmp 0x42db0a
mov dword [ebp - 4], 3
cmp dword [ebp - 0x34], 0
jne 0x42db2c
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.0040b0e0
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.0040b9b5
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 0x42dbbe
push dword [ebp - 0xf0]
lea eax, [ebp - 0xa4]
push 0x44be14
push eax
call fcn.0040f0a4
add esp, 0xc
lea ecx, [ebp - 0x5c]
push eax
call fcn.004027c9
lea ecx, [ebp - 0xa4]
jmp 0x42dc13
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 0x42dbde
mov eax, dword [eax]
push dword [ebp - 0xf0]
push eax
lea eax, [ebp - 0xa4]
push str.__s__S
push eax
call fcn.0040f0a4
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], 0x42d814
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0042e704
cmp byte [ebp + 0x14], 0
je 0x42dca6
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.004156b7
add esp, 0x58
jmp 0x42dcef
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.00413910
add esp, 0x5c
lea ecx, [ebp - 0x5c]
call fcn.004027a6
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 0xb
call fcn.0040b985
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.0040eeb3
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.0041d9c2
push eax
lea ecx, [ebp - 0x8c]
call fcn.0040bbec
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 0x15
call fcn.00402ab8
lea edx, [ebp - 0x8c]
lea ecx, [ebp - 0x2c]
call fcn.0040c319
test al, al
jne 0x42dedb
cmp dword [ebp - 0x1c], 0
je 0x42dde8
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 0x42dde8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x42ddee
lea ecx, [ebp - 0xec]
call fcn.0041c2bd
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 0x42ddee
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 0x42de5a
call esi
cmp eax, 2
je 0x42de5a
lea ecx, [ebp - 0xec]
call fcn.0041c2bd
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 0x42df32
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 0x42de81
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.0041c60e
pop ecx
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x5c]
call fcn.0040eeb3
cmp dword [eax + 0x14], ebx
jbe 0x42debf
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 0x42df2c
lea ecx, [ebp - 0xf4]
call fcn.0041c2bd
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.0040bbec
lea ecx, [ebp - 0x8c]
call fcn.00402ab8
lea ecx, [ebp - 0x74]
call fcn.00402ab8
mov edx, dword [ebp - 0x18]
cmp edx, ebx
jbe 0x42df69
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.004380ac
ret 0x10
push str.Failed_to_create_Downloads_folder
lea ecx, [ebp - 0x120]
call fcn.00405d9e
push 0x456dc8
lea eax, [ebp - 0x120]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3