Function at 0x414ce0
Capabilities:
Check http status code
Download and write a file
Get common file path
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x418af0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x14], str.__HttpTaskImpl::DoReceive__
mov eax, dword [esp + 0x28]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x20], ebx
jne 0x414d27
mov eax, dword [esi + 4]
mov dword [esi + 0x20], 6
mov ecx, dword [eax + 0x20]
push ecx
jmp 0x414f1f
cmp dword [esi + 0x90], ebx
jne 0x414da5
push 0x1000
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
cmp eax, ebx
mov dword [esi + 0x90], eax
je 0x414f11
mov eax, dword [esi + 0x48]
lea ecx, [esp + 0x10]
push ebx
lea edx, [esp + 0x2c]
push ecx
push edx
push 0x20000013
push eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x24], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
cmp eax, ebx
jne 0x414d88
mov ecx, dword [esi + 4]
mov dword [esi + 0x20], 6
mov edx, dword [ecx + 0x20]
push edx
jmp 0x414f1f
cmp dword [esp + 0x28], 0xc8
je 0x414da5
mov eax, dword [esi + 4]
mov dword [esi + 0x20], 6
mov ecx, dword [eax + 0x20]
push ecx
jmp 0x414f1f
cmp dword [esi + 0x3c], ebx
jne 0x414e43
mov edx, dword [esi + 0x28]
lea edi, [esi + 0x28]
cmp dword [edx - 8], ebx
jne 0x414e10
mov eax, dword [0x41f020]
mov dword [esp + 0x28], eax
push 0x104
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 1
call fcn.0040392f
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebp, dword [esp + 0x28]
push 0x104
mov ecx, edi
call fcn.0040392f
push eax
push ebx
push 0x420098
push ebp
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [esp + 0x28]
mov byte [esi + 0x38], 1
mov byte [esp + 0x20], bl
call fcn.00403a04
mov edi, dword [edi]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x3c], eax
jne 0x414e43
mov ecx, dword [esi + 4]
mov dword [esi + 0x20], 6
mov edx, dword [ecx + 0x20]
push edx
jmp 0x414f1f
mov ebp, dword [sym.imp.WININET.dll_InternetReadFile]
lea edi, [esi + 0x94]
mov eax, dword [edi]
cmp eax, ebx
jbe 0x414e87
mov edx, dword [esi + 0x90]
lea ecx, [esp + 0x28]
push ebx
push ecx
push eax
mov eax, dword [esi + 0x3c]
push edx
push eax
mov dword [esp + 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 0x98]
add edx, ecx
cmp eax, ebx
mov dword [esi + 0x98], edx
je 0x414e30
mov edx, dword [esi + 0x90]
mov eax, dword [esi + 0x48]
push edi
push 0x1000
push edx
push eax
call ebp
cmp eax, ebx
je 0x414efb
cmp dword [edi], ebx
jne 0x414e4f
mov edx, dword [esi + 0x48]
lea eax, [esp + 0x10]
push ebx
lea ecx, [esp + 0x2c]
push eax
push ecx
push 0x20000005
push edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x24], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x414d92
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0x98]
cmp eax, ecx
jne 0x414d92
push 1
mov ecx, esi
call fcn.00414c40
mov ecx, dword [esi + 4]
mov dword [esi + 0x20], 5
mov edx, dword [ecx + 0x20]
push edx
jmp 0x414f1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x414f11
mov dword [esi + 0x20], 4
jmp 0x414f25
mov edx, dword [esi + 4]
mov dword [esi + 0x20], 6
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4