Function at 0x433b20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51aa35
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x580b30]
xor eax, esp
mov dword [esp + 0x430], eax
push ebx
push esi
push edi
mov eax, dword [0x580b30]
xor eax, esp
push eax
lea eax, [esp + 0x448]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov edi, ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x34], 0x534e40
mov dword [esp + 0x44], 0x537b70
mov dword [esp + 0x94], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x454], ebx
mov esi, 1
push ecx
mov dword [esp + 0x30], esi
call fcn.004034a0
mov dword [esp + 0x450], esi
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + eax + 0x38], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
call fcn.00403fb0
mov dword [esp + 0x4c], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
lea edx, [esp + 0x44]
push str.NetworkService::TaskManager::DeleteOrphanedDownloads:_Cleaning_up_older_downloaded_packages_on_system
push edx
mov dword [esp + 0x458], 3
call fcn.004050c0
add esp, 8
lea ecx, [esp + 0x424]
lea eax, [esp + 0x34]
call fcn.00402c70
push eax
push 3
mov byte [esp + 0x458], 4
call fcn.00409e90
mov ecx, eax
call fcn.004688b0
cmp dword [esp + 0x438], 8
jb 0x433c3a
mov eax, dword [esp + 0x424]
push eax
call fcn.00469e1a
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esp + 0x450], 0xffffffff
call fcn.00401820
mov ecx, dword [edi + 8]
mov dword [esp + 0x14], ecx
cmp ecx, dword [edi + 0xc]
je 0x434338
jmp 0x433c62
xor ebx, ebx
lea edx, [esp + 0x18]
push edx
call fcn.00435150
add esp, 4
mov dword [esp + 0x450], 5
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4342e5
mov dword [esp + 0x24], eax
lea esi, [eax + 0x48]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
cmp dword [esi + 4], ebx
lea edi, [esi + 4]
jne 0x433ca1
inc dword [esi]
jmp 0x433cb3
lea ecx, [esi + 8]
call fcn.00417a90
mov eax, edi
xchg dword [eax], ebx
mov dword [esi], 1
mov ecx, dword [esp + 0x24]
mov ebx, dword [ecx + 0x20]
dec dword [esi]
jne 0x433d1a
xor edx, edx
xchg dword [edi], edx
mov eax, closesocket
lea ecx, [esi + 8]
lock xadd dword [ecx], eax
test eax, 0x40000000
jne 0x433d1a
cmp eax, 0x80000000
jle 0x433d1a
lea edx, [esi + 8]
lock bts dword [edx], 0x1e
jb 0x433d1a
mov ecx, dword [esi + 0xc]
add esi, 0xc
test ecx, ecx
jne 0x433d13
push ecx
push ecx
call fcn.0040b580
mov ecx, eax
add esp, 8
mov edx, ecx
xor eax, eax
lock cmpxchg dword [esi], edx
mov esi, eax
test esi, esi
je 0x433d13
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp ebx, 2
jne 0x4342e5
mov eax, dword [esp + 0x18]
cmp dword [eax + 0xc8], 0
jne 0x4342e5
lea ecx, [esp + 0x328]
push ecx
push eax
call fcn.0044b8d0
mov ecx, eax
lea esi, [esp + 0x344]
mov byte [esp + 0x450], 6
call fcn.004355f0
push eax
mov edx, str..xml
lea esi, [esp + 0x2f4]
mov byte [esp + 0x454], 7
call fcn.004053f0
add esp, 4
mov ebx, 8
cmp dword [esp + 0x358], ebx
jb 0x433d93
mov edx, dword [esp + 0x344]
push edx
call fcn.00469e1a
add esp, 4
mov esi, 7
xor edi, edi
xor eax, eax
mov dword [esp + 0x358], esi
mov dword [esp + 0x354], edi
mov word [esp + 0x344], ax
mov byte [esp + 0x450], 0xa
cmp dword [esp + 0x33c], ebx
jb 0x433dd3
mov ecx, dword [esp + 0x328]
push ecx
call fcn.00469e1a
add esp, 4
mov dword [esp + 0x338], edi
xor edx, edx
lea edi, [esp + 0x398]
mov dword [esp + 0x33c], esi
mov word [esp + 0x328], dx
call fcn.0040e610
push 0x53335c
push eax
lea eax, [esp + 0x368]
push eax
mov byte [esp + 0x45c], 0xb
call fcn.00405480
add esp, 0xc
mov ecx, eax
lea eax, [esp + 0x2f0]
lea esi, [esp + 0x2d4]
mov byte [esp + 0x450], 0xc
call fcn.00405440
cmp dword [esp + 0x374], ebx
jb 0x433e4b
mov ecx, dword [esp + 0x360]
push ecx
call fcn.00469e1a
add esp, 4
mov esi, 7
xor edi, edi
xor edx, edx
mov dword [esp + 0x374], esi
mov dword [esp + 0x370], edi
mov word [esp + 0x360], dx
mov byte [esp + 0x450], 0xf
cmp dword [esp + 0x3ac], ebx
jb 0x433e8b
mov eax, dword [esp + 0x398]
push eax
call fcn.00469e1a
add esp, 4
mov eax, dword [esp + 0x2d4]
xor ecx, ecx
mov dword [esp + 0x3ac], esi
mov dword [esp + 0x3a8], edi
mov word [esp + 0x398], cx
cmp dword [esp + 0x2e8], ebx
jae 0x433eba
lea eax, [esp + 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x434283
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x2dc]
xor edx, edx
push eax
lea ecx, [esp + 0x318]
mov dword [esp + 0x32c], esi
mov dword [esp + 0x328], edi
mov word [esp + 0x318], dx
call fcn.0040a8b0
push edi
mov byte [esp + 0x454], 0x10
call fcn.004d5959
add esp, 4
lea ecx, [esp + 0x30c]
push 0
push ecx
mov esi, eax
mov edi, edx
call fcn.004bb070
add esp, 8
sub esi, eax
sbb edi, edx
mov byte [esp + 0x450], 0xf
cmp dword [esp + 0x320], ebx
jb 0x433f45
mov edx, dword [esp + 0x30c]
push edx
call fcn.00469e1a
add esp, 4
test edi, edi
jl 0x43427c
jg 0x433f5b
cmp esi, 0xed4e00
jbe 0x43427c
lea eax, [esp + 0x22c]
push eax
call fcn.00402bd0
push str.seconds_ago
push ecx
push edi
push esi
lea ecx, [esp + 0x24c]
push str.NetworkService::TaskManager::DeleteOrphanedDownloads:_Task_is_considered_as_old__removing_task._Task_was_last_modified
push ecx
mov byte [esp + 0x468], 0x11
call fcn.004050c0
add esp, 8
push eax
call fcn.00434360
add esp, 4
push eax
call fcn.00413190
add esp, 8
lea ecx, [esp + 0x408]
lea eax, [esp + 0x22c]
call fcn.00402c70
push eax
push 3
mov byte [esp + 0x458], 0x12
call fcn.00409e90
mov ecx, eax
call fcn.004688b0
cmp dword [esp + 0x41c], ebx
jb 0x433fe2
mov edx, dword [esp + 0x408]
push edx
call fcn.00469e1a
add esp, 4
lea ecx, [esp + 0x22c]
mov byte [esp + 0x450], 0xf
call fcn.00401820
mov ecx, dword [esp + 0x18]
call fcn.00459a10
test al, al
je 0x434186
lea eax, [esp + 0x184]
push eax
call fcn.00402bd0
lea ecx, [esp + 0x3d0]
mov byte [esp + 0x450], 0x13
mov edx, dword [esp + 0x18]
push ecx
push edx
call fcn.0044b8d0
push str._removed_successfully
push ecx
push eax
push ecx
lea eax, [esp + 0x1a4]
push str.NetworkService::TaskManager::DeleteOrphanedDownloads:_Download_task
push eax
mov byte [esp + 0x468], 0x14
call fcn.004050c0
add esp, 0xc
push eax
call fcn.00413550
add esp, 0xc
push eax
call fcn.00413190
add esp, 8
mov byte [esp + 0x450], 0x13
cmp dword [esp + 0x3e4], ebx
jb 0x434086
mov ecx, dword [esp + 0x3d0]
push ecx
call fcn.00469e1a
add esp, 4
lea ecx, [esp + 0x3ec]
lea eax, [esp + 0x184]
call fcn.00402c70
push eax
push 3
mov byte [esp + 0x458], 0x15
call fcn.00409e90
mov ecx, eax
call fcn.004688b0
cmp dword [esp + 0x400], ebx
jb 0x4340c9
mov edx, dword [esp + 0x3ec]
push edx
call fcn.00469e1a
add esp, 4
lea ecx, [esp + 0x184]
mov byte [esp + 0x450], 0xf
call fcn.00401820
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
add esi, 8
push eax
cmp eax, dword [esi]
jne 0x4340fe
lea edi, [esp + 0x30]
call fcn.00434720
mov eax, dword [esi]
mov dword [esp + 0x14], eax
jmp 0x434107
lea edi, [esp + 0x34]
call fcn.00434720
cmp dword [esp + 0x2e8], ebx
jb 0x434120
mov ecx, dword [esp + 0x2d4]
push ecx
call fcn.00469e1a
add esp, 4
xor edi, edi
xor edx, edx
mov esi, 7
mov dword [esp + 0x2e8], esi
mov dword [esp + 0x2e4], edi
mov word [esp + 0x2d4], dx
cmp dword [esp + 0x304], ebx
jb 0x434158
mov eax, dword [esp + 0x2f0]
push eax
call fcn.00469e1a
add esp, 4
mov dword [esp + 0x304], esi
xor ecx, ecx
mov dword [esp + 0x450], 0xffffffff
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x300], edi
mov word [esp + 0x2f0], cx
cmp esi, edi
jmp 0x4342fb
lea eax, [esp + 0xdc]
push eax
call fcn.00402bd0
lea ecx, [esp + 0x3b4]
mov byte [esp + 0x450], 0x16
mov edx, dword [esp + 0x18]
push ecx
push edx
call fcn.0044b8d0
push eax
push ecx
push str.:_Failed_to_clean_up_the_task:
push ecx
lea eax, [esp + 0xfc]
push str.NetworkService::TaskManager::DeleteOrphanedDownloads
push eax
mov byte [esp + 0x468], 0x17
call fcn.004050c0
add esp, 0xc
push eax
call fcn.004050c0
add esp, 0xc
push eax
call fcn.00413550
add esp, 8
mov byte [esp + 0x450], 0x16
cmp dword [esp + 0x3c8], ebx
jb 0x434205
mov ecx, dword [esp + 0x3b4]
push ecx
call fcn.00469e1a
add esp, 4
lea ecx, [esp + 0x37c]
lea eax, [esp + 0xdc]
call fcn.00402c70
push eax
push 3
mov byte [esp + 0x458], 0x18
call fcn.00409e90
mov ecx, eax
call fcn.004688b0
cmp dword [esp + 0x390], ebx
jb 0x434248
mov edx, dword [esp + 0x37c]
push edx
call fcn.00469e1a
add esp, 4
xor eax, eax
lea ecx, [esp + 0xdc]
mov dword [esp + 0x390], 7
mov dword [esp + 0x38c], 0
mov word [esp + 0x37c], ax
mov byte [esp + 0x450], 0xf
call fcn.00401820
mov esi, 7
xor edi, edi
cmp dword [esp + 0x2e8], ebx
jb 0x43429c
mov ecx, dword [esp + 0x2d4]
push ecx
call fcn.00469e1a
add esp, 4
xor edx, edx
mov dword [esp + 0x2e8], esi
mov dword [esp + 0x2e4], edi
mov word [esp + 0x2d4], dx
cmp dword [esp + 0x304], ebx
jb 0x4342cd
mov eax, dword [esp + 0x2f0]
push eax
call fcn.00469e1a
add esp, 4
xor ecx, ecx
mov dword [esp + 0x304], esi
mov dword [esp + 0x300], edi
mov word [esp + 0x2f0], cx
add dword [esp + 0x14], 8
mov dword [esp + 0x450], 0xffffffff
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x434327
or eax, 0xffffffff
lea edx, [esi + 4]
lock xadd dword [edx], eax
jne 0x434327
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
or edx, 0xffffffff
lea ecx, [esi + 8]
lock xadd dword [ecx], edx
jne 0x434327
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
cmp ecx, dword [eax + 0xc]
jne 0x433c60
mov ecx, dword [esp + 0x448]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x430]
xor ecx, esp
call fcn.004d31b7
mov esp, ebp
pop ebp
ret