Function at 0x41d560
Capabilities:
Check http status code
Create http request
Read data from internet
Receive data

Disassembly:
sub esp, 0x428
mov eax, dword [0x4a7534]
xor eax, esp
mov dword [esp + 0x424], eax
mov eax, dword [esp + 0x42c]
push ebx
mov ebx, dword [esp + 0x434]
push ebp
push esi
mov dword [esp + 0x18], eax
mov eax, dword [ebx]
push edi
mov edi, dword [esp + 0x444]
mov esi, edx
mov edx, dword [eax]
push edx
add eax, 4
push 0
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], edi
mov byte [esp + 0x1f], 0
call fcn.00449450
mov eax, dword [ebx]
add esp, 0xc
push 4
push eax
call fcn.004464a4
mov dword [ebx], eax
add esp, 8
test edi, edi
mov dword [eax], 0
mov dword [esi], 0
jne 0x41d5dd
call fcn.0041d330
mov dword [esp + 0x20], eax
mov edi, eax
push 0
push 0
push 0
push 0
push str.SOGOU_UPDATER
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebp, eax
test ebp, ebp
jne 0x41d641
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push 0x4839b4
call fcn.0041d220
mov ecx, dword [esp + 0x1c]
push esi
push str.InetOpen
call fcn.0046be50
mov ecx, eax
call fcn.0046bec0
mov ecx, eax
call fcn.0046bee0
xor al, al
mov ecx, dword [esp + 0x434]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00445c6a
add esp, 0x428
ret
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea ecx, [esp + 0x1c]
push ecx
push 5
push ebp
mov dword [esp + 0x28], 0x4e20
call edi
push 4
lea edx, [esp + 0x1c]
push edx
push 7
push ebp
call edi
push 4
lea eax, [esp + 0x1c]
push eax
push 2
push ebp
call edi
push 4
lea ecx, [esp + 0x1c]
push ecx
push 6
push ebp
call edi
push 4
lea edx, [esp + 0x1c]
push edx
push 8
push ebp
call edi
mov eax, dword [esp + 0x14]
push 0
push 0x84000000
push 0
push 0
push eax
push ebp
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov edi, eax
test edi, edi
mov dword [esp + 0x14], edi
jne 0x41d6d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x1c]
push eax
push str.InternetOpenUrl
call fcn.0046be50
mov ecx, eax
call fcn.0046bec0
mov ecx, eax
call fcn.0046bee0
jmp 0x41d7e0
push 0
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x30]
push edx
push 0x20000013
push edi
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x41d7a8
cmp dword [esp + 0x28], 0xc8
jne 0x41d7a8
mov dword [esp + 0x24], 0
lea ebx, [ebx]
push 0x3ff
lea eax, [esp + 0x35]
push 0
push eax
mov byte [esp + 0x3c], 0
call fcn.00449450
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
push 0x400
lea edx, [esp + 0x38]
push edx
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x41d789
mov eax, dword [esp + 0x24]
test eax, eax
jbe 0x41d782
mov ecx, dword [esi]
push ecx
mov edi, eax
call fcn.00413ad0
push edi
lea ecx, [esp + 0x34]
push ecx
push eax
call fcn.004490e0
mov eax, dword [esp + 0x30]
add dword [esi], eax
mov edi, dword [esp + 0x20]
add esp, 0xc
test eax, eax
ja 0x41d720
mov byte [esp + 0x13], 1
jmp 0x41d7e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [esp + 0x20]
mov esi, eax
push esi
push str.InetRFile
call fcn.0041d220
push esi
push 0x483b64
jmp 0x41d7c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [esp + 0x20]
mov esi, eax
push esi
push str.HttpQInfoUnkn
call fcn.0041d220
push esi
push str.HttpQInfoFail
mov ecx, dword [esp + 0x24]
call fcn.0046be50
mov ecx, eax
call fcn.0046bec0
mov ecx, eax
call fcn.0046bee0
mov edi, dword [esp + 0x14]
test edi, edi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x41d7ed
push edi
call esi
push ebp
call esi
cmp byte [esp + 0x13], 0
je 0x41d626
mov al, 1
jmp 0x41d628