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

Disassembly:
push 0x1cc
mov eax, 0x447f35
call fcn.00440abc
mov esi, ecx
mov dword [ebp - 0x100], esi
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 1
push str.Downloads
mov dword [ebp - 0xfc], eax
push 1
xor eax, eax
xor ebx, ebx
cmp byte [esi + 4], al
push 2
pop edx
cmovne edx, eax
lea ecx, [ebp - 0xe8]
mov dword [ebp - 0xf0], esi
mov dword [ebp - 0xf4], edi
mov dword [ebp - 0x114], ebx
call fcn.00435d17
add esp, 0xc
mov dword [ebp - 4], ebx
cmp dword [ebp - 0xd8], ebx
jne 0x436bae
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0x120]
mov dword [ebp - 0xf4], str.Failed_to_create_Downloads_folder
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x45bfd4
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - method.std::logic_error.virtual_0], vtable.std::runtime_error.0
call sub.MSVCR110.dll__CxxThrowException
xor edx, edx
cmp byte [esi + 4], dl
push ebx
sete dl
push ebx
push str.SoftwareProject_EconomyRegETags
lea ecx, [ebp - 0x10c]
add edx, 0x80000001
call fcn.00433bae
add esp, 0xc
push edi
lea edx, [ebp - 0x10c]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.00433b11
pop ecx
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x34], eax
je 0x436e13
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0xa4]
call fcn.0040fb3a
push eax
lea edx, [ebp - 0xe8]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 4
call fcn.0042e42a
pop ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040bcd5
push ebx
push 1
lea ecx, [ebp - 0x5c]
call fcn.0040253d
push ebx
push 1
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 3
call fcn.0040253d
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x436c74
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
mov dword [ebp - 0x34], ebx
mov byte [eax], bl
jmp 0x436e0a
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 5
call fcn.00438602
mov byte [ebp - 4], 6
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
sub esp, 0xc
lea ecx, [ebp - 0x1d8]
push eax
call fcn.004354bd
push eax
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 7
call fcn.004386d6
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 6
call fcn.0042c7b2
lea ecx, [ebp - 0x168]
call dword [sym.imp.MSVCP110.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xd0]
call fcn.004387cd
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00403fe0
mov byte [ebp - 4], 8
cmp dword [ebp - 0x30], 0x10
push dword [ebp - 0x34]
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
push dword [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.00404787
test eax, eax
je 0x436d6f
cmp dword [ebp - 0x48], 0x10
mov ecx, dword [esi]
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
cmp dword [ebp - 0x30], 0x10
mov dword [ebp - 0xf8], eax
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
mov dword [ebp - 0xec], eax
mov eax, dword [ecx]
call dword [eax + 0xc]
push dword [ebp - 0xf8]
push dword [ebp - 0xec]
push edi
push str.WARNING:_etag_and_hash_dont_match_for__S:_etag_s_hash_s
push eax
call fcn.00402357
add esp, 0x14
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
mov dword [ebp - 0x34], ebx
mov byte [eax], bl
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x5c]
call fcn.00402286
lea ecx, [ebp - 0xd0]
call fcn.004386b7
mov dword [ebp - 4], 3
jmp 0x436e0a
cmp dword [ebp - 0x34], 0
jne 0x436e25
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
xor ecx, ecx
mov dword [ebp - 0x1c], ebx
mov word [eax], cx
mov edx, 0x44cd08
lea ecx, [ebp - 0x74]
call fcn.0040c67f
push ecx
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x60], 8
push ecx
lea eax, [ebp - 0x74]
cmovae eax, dword [ebp - 0x74]
push 0x20
push eax
lea ecx, [ebp - 0x1c8]
call fcn.0040bd08
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 0x5c], bl
mov byte [ebp - 4], 0xd
mov ecx, dword [esi]
lea edx, [ebp - 0xa4]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
cmp dword [eax + 0x10], ebx
lea ecx, [ebp - 0xa4]
sete bl
call fcn.00402286
test bl, bl
je 0x436eab
push edi
lea eax, [ebp - 0xa4]
push 0x454754
push eax
call fcn.0040fd09
add esp, 0xc
lea ecx, [ebp - 0x5c]
push eax
call fcn.0040224d
lea ecx, [ebp - 0xa4]
jmp 0x436ef5
mov ecx, dword [esi]
lea edx, [ebp - 0xc8]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
mov byte [ebp - 4], 0xe
cmp dword [eax + 0x14], 0x10
jb 0x436ec5
mov eax, dword [eax]
push edi
push eax
lea eax, [ebp - 0xa4]
push str.__s__S
push eax
call fcn.0040fd09
add esp, 0x10
lea ecx, [ebp - 0x5c]
push eax
call fcn.0040224d
lea ecx, [ebp - 0xa4]
call fcn.00402286
lea ecx, [ebp - 0xc8]
call fcn.00402286
mov ecx, dword [esi]
mov eax, dword [ebp + 0x10]
sub esp, 0x20
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0xec], esp
mov ecx, esp
sub esp, 0x10
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x98], 0x436af4
mov edi, esp
lea esi, [ebp - 0x98]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00437954
cmp byte [ebp + 0x14], 0
je 0x436f83
sub esp, 0x18
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x5c]
mov ecx, esp
mov dword [ebp - 0xf8], esp
push eax
call fcn.00403fe0
mov edi, dword [ebp - 0x100]
mov byte [ebp - 4], 0x10
mov ecx, dword [edi]
sub esp, 0x18
mov edx, dword [ecx]
push esp
call dword [edx + 4]
xor ebx, ebx
lea eax, [ebp - 0x1c8]
push ebx
mov byte [ebp - 4], 0xd
mov ecx, dword [edi]
push eax
lea edx, [ebp - 0x44]
call fcn.00415aa8
add esp, 0x58
jmp 0x436fcd
sub esp, 0x18
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x5c]
mov ecx, esp
mov dword [ebp - 0xf8], esp
push eax
call fcn.00403fe0
mov edi, dword [ebp - 0x100]
mov byte [ebp - 4], 0x12
mov ecx, dword [edi]
sub esp, 0x18
mov edx, dword [ecx]
push esp
call dword [edx + 4]
push 1
xor ebx, ebx
lea eax, [ebp - 0x1c8]
push ebx
mov byte [ebp - 4], 0xd
mov ecx, dword [edi]
push eax
lea edx, [ebp - 0x44]
call fcn.00413a48
add esp, 0x5c
lea ecx, [ebp - 0x5c]
call fcn.00402286
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 0xb
call fcn.0040bd9d
lea ecx, [ebp - 0x168]
call dword [sym.imp.MSVCP110.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 - 0xc8]
call fcn.0040fb3a
push eax
lea edx, [ebp - 0xe8]
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0x13
call fcn.0042e42a
pop ecx
push ebx
push 1
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 0x15
call fcn.0040253d
push 8
pop esi
cmp dword [ebp - 0x78], esi
push dword [ebp - 0x7c]
lea eax, [ebp - 0x8c]
cmovae eax, dword [ebp - 0x8c]
push eax
push dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004036d3
test eax, eax
je 0x4371b8
cmp dword [ebp - 0x1c], 0
je 0x4370bf
cmp dword [ebp - 0x18], esi
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4370bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4370bf
lea ecx, [ebp - 0xec]
call fcn.00433a72
mov byte [ebp - 4], 0x16
cmp dword [ebp - 0x18], esi
push dword [eax]
mov ecx, dword [edi]
lea edx, [ebp - 0x2c]
cmovae edx, dword [ebp - 0x2c]
mov eax, dword [ecx]
push edx
push str.Failed_to_delete_old__S:__S
call dword [eax + 0xc]
push eax
call fcn.00402357
add esp, 0x10
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 0x15
call fcn.00402409
cmp dword [ebp - 0x78], esi
lea eax, [ebp - 0x8c]
cmovae eax, dword [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x43712f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x43712f
lea ecx, [ebp - 0xec]
call fcn.00433a72
mov byte [ebp - 4], 0x17
cmp dword [ebp - 0x78], esi
push dword [eax]
mov ecx, dword [edi]
lea edx, [ebp - 0x8c]
cmovae edx, dword [ebp - 0x8c]
mov eax, dword [ecx]
push edx
push str.Failed_to_delete__S:__S
call dword [eax + 0xc]
push eax
call fcn.00402357
add esp, 0x10
lea ecx, [ebp - 0xec]
call fcn.00402409
lea eax, [ebp - 0x74]
jmp 0x43720f
cmp dword [ebp - 0x60], esi
lea ecx, [ebp - 0xb0]
push ecx
lea eax, [ebp - 0x74]
cmovae eax, dword [ebp - 0x74]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x437155
mov eax, dword [ebp - 0x90]
add dword [edi + 8], eax
cmp dword [ebp - 0x78], 8
mov ecx, dword [edi]
lea eax, [ebp - 0x8c]
cmovae eax, dword [ebp - 0x8c]
cmp dword [ebp - 0x60], 8
push eax
mov eax, dword [ecx]
lea esi, [ebp - 0x74]
cmovae esi, dword [ebp - 0x74]
call dword [eax + 0xc]
mov edx, esi
mov ecx, eax
call fcn.00433e72
pop ecx
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x5c]
call fcn.0040fb3a
cmp dword [eax + 0x14], 8
jb 0x437196
mov eax, dword [eax]
push 1
push eax
push dword [ebp - 0xf4]
lea ecx, [ebp - 0x10c]
call fcn.0040e9aa
push ebx
push 1
lea ecx, [ebp - 0x5c]
call fcn.0040253d
push 8
pop esi
cmp dword [ebp - 0x60], esi
lea eax, [ebp - 0x74]
cmovae eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x437209
lea ecx, [ebp - 0xec]
call fcn.00433a72
mov byte [ebp - 4], 0x18
cmp dword [ebp - 0x60], esi
push dword [eax]
mov ecx, dword [edi]
lea edx, [ebp - 0x74]
cmovae 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.00402357
add esp, 0x10
lea ecx, [ebp - 0xec]
call fcn.00402409
lea eax, [ebp - 0x8c]
mov esi, dword [ebp - 0xfc]
push eax
mov ecx, esi
call fcn.0040bcb0
push ebx
push 1
lea ecx, [ebp - 0x8c]
call fcn.0040253d
push ebx
push 1
lea ecx, [ebp - 0x74]
call fcn.0040253d
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040253d
lea ecx, [ebp - 0x44]
call fcn.00402286
cmp dword [ebp - 0x10c], 0
je 0x437264
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10c], ebx
push ebx
push 1
lea ecx, [ebp - 0xe8]
mov dword [ebp - 0x108], ebx
call fcn.0040253d
mov eax, esi
call fcn.00440a0e
ret 0x10