Function at 0x45bf50
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb7f6
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x55a3d0]
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 0x45c1c1
lea eax, [ebp - 0x48]
push eax
call fcn.00457db0
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x45bfa4
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x6c]
push ecx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x45bfb8
xor edi, edi
jmp 0x45bfc4
mov edi, dword [ebp - 0x4c]
xor eax, eax
xor ebx, ebx
add edi, eax
adc ebx, dword [ebp - 0x50]
lea ecx, [esi + 0x48]
mov dword [ebp - 0x70], ecx
call fcn.00420730
mov byte [ebp - 4], 1
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x45bfdf
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
jne 0x45c0b3
mov ebx, 7
push esi
lea edi, [ebp - 0x64]
mov dword [esi + 0x20], ecx
mov dword [esi + 0x28], ebx
call fcn.00454960
mov esi, eax
lea edx, [ebp - 0x108]
push edx
mov byte [ebp - 4], 2
call fcn.00403200
lea eax, [ebp - 0x108]
push str.NetworkService::DownloadTask::ValidateCompletedTaskAndMarkError:_File_for_completed_download_task
push eax
mov byte [ebp - 4], 3
call fcn.00404d50
lea ecx, [ebp - 0x108]
push esi
push ecx
call fcn.0041b8e0
lea edx, [ebp - 0x108]
push str._does_not_exist.
push edx
call fcn.00404d50
add esp, 0x18
lea esi, [ebp - 0x2c]
lea eax, [ebp - 0x108]
call fcn.00402e30
mov eax, esi
push eax
push 2
mov byte [ebp - 4], 4
call fcn.00423a40
mov esi, 8
add esp, 8
cmp dword [ebp - 0x18], esi
jb 0x45c082
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b5907
add esp, 4
xor edx, edx
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
mov byte [ebp - 4], 2
call fcn.00401690
cmp dword [ebp - 0x50], esi
jb 0x45c17a
mov eax, dword [ebp - 0x64]
push eax
jmp 0x45c172
cmp edi, dword [esi + 0xe0]
jne 0x45c0c7
cmp ebx, dword [esi + 0xe4]
je 0x45c17a
mov ebx, 6
push esi
lea edi, [ebp - 0x64]
mov dword [esi + 0x20], ecx
mov dword [esi + 0x28], ebx
call fcn.00454960
mov esi, eax
lea ecx, [ebp - 0x108]
push ecx
mov byte [ebp - 4], 5
call fcn.00403200
lea edx, [ebp - 0x108]
push str.NetworkService::DownloadTask::ValidateCompletedTaskAndMarkError:_Size_mismatch_for_completed_download_task
push edx
mov byte [ebp - 4], bl
call fcn.00404d50
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.0041b8e0
add esp, 0x10
lea esi, [ebp - 0x2c]
lea eax, [ebp - 0x108]
call fcn.00402e30
mov ecx, esi
push ecx
mov ebx, 7
push 2
mov byte [ebp - 4], bl
call fcn.00423a40
mov esi, 8
add esp, 8
cmp dword [ebp - 0x18], esi
jb 0x45c14a
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b5907
add esp, 4
xor eax, eax
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 5
call fcn.00401690
cmp dword [ebp - 0x50], esi
jb 0x45c17a
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004b5907
add esp, 4
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x70]
mov eax, closesocket
mov edx, ecx
lock xadd dword [edx], eax
test eax, 0x40000000
jne 0x45c1af
cmp eax, 0x80000000
jle 0x45c1af
mov eax, ecx
lock bts dword [eax], 0x1e
jb 0x45c1af
call fcn.00412ee0
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [ebp - 0x34], 8
jb 0x45c1c1
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004b5907
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.004b58f8
mov esp, ebp
pop ebp
ret