Function at 0x45cdf0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b88c
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x580b30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x20], 2
jne 0x45d0b6
lea eax, [ebp - 0x2c]
push eax
call fcn.004588f0
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x45ce44
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0xc0]
push ecx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x45ce5f
mov dword [ebp - 0xcc], ebx
jmp 0x45ce77
mov ebx, dword [ebp - 0xa0]
xor ecx, ecx
xor eax, eax
add ebx, ecx
adc eax, dword [ebp - 0xa4]
mov dword [ebp - 0xcc], eax
lea edx, [esi + 0x48]
mov dword [ebp - 0xc4], edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov eax, dword [ebp - 0xc4]
add eax, 4
mov dword [ebp - 0xc8], eax
cmp dword [eax], edi
jne 0x45cea5
mov eax, dword [ebp - 0xc4]
inc dword [eax]
jmp 0x45cec7
mov ecx, dword [ebp - 0xc4]
add ecx, 8
call fcn.00417a90
mov eax, dword [ebp - 0xc8]
xchg dword [eax], edi
mov ecx, dword [ebp - 0xc4]
mov dword [ecx], 1
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x45ced7
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or edi, 0xffffffff
cmp eax, edi
jne 0x45cf96
lea edx, [ebp - 0x178]
push edx
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], 7
call fcn.00402bd0
lea eax, [ebp - 0x80]
push eax
push esi
mov byte [ebp - 4], 2
call fcn.0044b8d0
push str._does_not_exist.
push ecx
push eax
push ecx
lea ecx, [ebp - 0x168]
push str.NetworkService::DownloadTask::ValidateCompletedTaskAndMarkError:_File_for_completed_download_task
push ecx
mov byte [ebp - 4], 3
call fcn.004050c0
add esp, 0xc
push eax
call fcn.00413550
add esp, 0xc
push eax
call fcn.004050c0
mov esi, 8
add esp, 8
mov byte [ebp - 4], 2
cmp dword [ebp - 0x6c], esi
jb 0x45cf59
mov edx, dword [ebp - 0x80]
push edx
call fcn.00469e1a
add esp, 4
lea ecx, [ebp - 0x48]
lea eax, [ebp - 0x178]
call fcn.00402c70
push eax
push 2
mov byte [ebp - 4], 4
call fcn.00409e90
mov ecx, eax
call fcn.004688b0
cmp dword [ebp - 0x34], esi
jb 0x45cf8b
mov eax, dword [ebp - 0x48]
push eax
call fcn.00469e1a
add esp, 4
lea ecx, [ebp - 0x178]
jmp 0x45d052
cmp ebx, dword [esi + 0xf0]
jne 0x45cfb0
mov ecx, dword [ebp - 0xcc]
cmp ecx, dword [esi + 0xf4]
je 0x45d05b
lea edx, [ebp - 0x220]
push edx
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], 6
call fcn.00402bd0
lea eax, [ebp - 0x64]
push eax
mov bl, 5
push esi
mov byte [ebp - 4], bl
call fcn.0044b8d0
push eax
push ecx
lea ecx, [ebp - 0x210]
push str.NetworkService::DownloadTask::ValidateCompletedTaskAndMarkError:_Size_mismatch_for_completed_download_task
push ecx
mov byte [ebp - 4], 6
call fcn.004050c0
add esp, 0xc
push eax
call fcn.00413550
mov esi, 8
add esp, 8
mov byte [ebp - 4], bl
cmp dword [ebp - 0x50], esi
jb 0x45d011
mov edx, dword [ebp - 0x64]
push edx
call fcn.00469e1a
add esp, 4
lea ecx, [ebp - 0x9c]
lea eax, [ebp - 0x220]
call fcn.00402c70
push eax
push 2
mov byte [ebp - 4], 7
call fcn.00409e90
mov ecx, eax
call fcn.004688b0
cmp dword [ebp - 0x88], esi
jb 0x45d04c
mov eax, dword [ebp - 0x9c]
push eax
call fcn.00469e1a
add esp, 4
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call fcn.00401820
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0xc4]
add dword [ecx], edi
jne 0x45d0a4
mov eax, dword [ebp - 0xc8]
xor edx, edx
xchg dword [eax], edx
add ecx, 8
mov eax, closesocket
mov edx, ecx
lock xadd dword [edx], eax
test eax, 0x40000000
jne 0x45d0a4
cmp eax, 0x80000000
jle 0x45d0a4
mov eax, ecx
lock bts dword [eax], 0x1e
jb 0x45d0a4
call fcn.0040b610
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [ebp - 0x18], 8
jb 0x45d0b6
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00469e1a
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d31b7
mov esp, ebp
pop ebp
ret