Function at 0x41d9a0
Capabilities:
Check http status code
Create http request
Download and write a file
Get http content length
Get http response content encoding
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4749eb
mov eax, dword fs:[0]
push eax
sub esp, 0x48c
mov eax, dword [0x4a7534]
xor eax, esp
mov dword [esp + 0x488], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a7534]
xor eax, esp
push eax
lea eax, [esp + 0x4a0]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4b0]
mov ebp, dword [esp + 0x4b4]
xor edi, edi
push 0x3fe
mov esi, edx
lea edx, [esp + 0xa2]
push edi
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edi
mov byte [esp + 0x22], 0
mov dword [esp + 0x38], edi
mov dword [esp + 0x4c], 4
mov dword [esp + 0x28], edi
mov word [esp + 0xa8], di
call fcn.00449450
add esp, 0xc
push ebp
lea ecx, [esp + 0x50]
mov byte [esp + 0x1b], 0
call fcn.004690c0
push edi
push edi
push edi
push edi
push str.SOGOU_UPDATER
mov dword [esp + 0x4bc], edi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
cmp ebx, edi
mov dword [esp + 0x30], ebx
jne 0x41da94
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
mov edx, dword [eax + 8]
push edi
push 0x4839b4
mov ecx, esi
call edx
mov ecx, dword [esp + 0x18]
push edi
push str.InetOpen
call fcn.0046be50
mov ecx, eax
call fcn.0046bec0
mov ecx, eax
call fcn.0046bee0
jmp 0x41dd04
mov ebp, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [esp + 0x24]
push eax
push 5
push ebx
mov dword [esp + 0x30], 0x4e20
call ebp
push 4
lea ecx, [esp + 0x24]
push ecx
push 7
push ebx
call ebp
push 4
lea edx, [esp + 0x24]
push edx
push 2
push ebx
call ebp
push 4
lea eax, [esp + 0x24]
push eax
push 6
push ebx
call ebp
push 4
lea ecx, [esp + 0x24]
push ecx
push 8
push ebx
call ebp
push str.Accept_Encoding:_gzip_deflate_r_nAccept:_text_html_application_xhtmlxml_application_xml_q0.9___q0.8_r_nAccept_Language:_zh_cn_zh_q0.5_r_nAccept_Charset:_gb2312_utf_8_q0.7__q0.7_r_nKeep_Alive:_300_r_nConnection:_keep_alive_r_n
lea edx, [esp + 0xa0]
push 0x200
push edx
call fcn.00446193
add esp, 0xc
push str.cs1
lea ecx, [esp + 0x50]
mov ebp, eax
call fcn.00468f90
push edi
push 0x84000000
push ebp
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x5c]
call fcn.00468640
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x38], ebx
jne 0x41db64
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
mov edi, eax
mov eax, dword [edx + 8]
push edi
push 0x483a24
mov ecx, esi
call eax
mov ecx, dword [esp + 0x18]
push 0x483a3c
push edi
call fcn.0046c080
mov ecx, eax
call fcn.0046bec0
jmp 0x41dd00
mov ebp, dword [sym.imp.WININET.dll_HttpQueryInfoW]
push 0
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x44]
push edx
push 0x20000013
push ebx
mov dword [esp + 0x50], 0
mov dword [esp + 0x58], 4
call ebp
test eax, eax
je 0x41dea5
cmp dword [esp + 0x3c], 0xc8
jne 0x41dea5
push 0
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x34]
push ecx
push 0x20000005
push ebx
call ebp
test eax, eax
jne 0x41dbc0
mov dword [esp + 0x2c], eax
push 0
lea edx, [esp + 0x28]
push edx
lea edi, [esp + 0x64]
mov eax, edi
push eax
push 0x1d
push ebx
mov dword [esp + 0x38], 0x20
call ebp
test eax, eax
je 0x41dc34
cmp word [esp + 0x5c], 0x78
jne 0x41dbf3
cmp word [esp + 0x5e], 0x2d
jne 0x41dbf3
lea edi, [esp + 0x60]
mov ecx, str.gzip
mov eax, edi
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41dc26
test dx, dx
je 0x41dc22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41dc26
add eax, 4
add ecx, 4
test dx, dx
jne 0x41dc00
xor eax, eax
jmp 0x41dc2b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41dc34
mov byte [esp + 0x17], 1
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x41dc5f
mov eax, 0x51eb851f
mul ecx
mov edi, edx
shr edi, 4
cmp edi, 0x400
jae 0x41dc57
mov edi, 0x400
jmp 0x41dc64
cmp edi, 0x20000
jbe 0x41dc64
mov edi, 0x20000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [esp + 0x34]
push 0x483b24
mov ecx, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0
call fcn.0046cee0
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.004467fe
add esp, 0xc
cmp dword [esp + 0x1c], 0
jne 0x41dd62
mov ebp, dword [esi]
add ebp, 8
call fcn.00447593
mov edx, dword [eax]
mov eax, dword [ebp]
push edx
push str.OpenLocal
mov ecx, esi
call eax
mov ecx, dword [esp + 0x18]
push 0x483b2c
call fcn.0046be50
mov ecx, eax
call fcn.0046bec0
mov esi, eax
mov ecx, ebx
call fcn.0046cf00
push eax
mov ecx, esi
call fcn.0046bec0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x41dd00
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41dd15
push eax
call fcn.00446ae8
add esp, 4
mov eax, dword [esp + 0x38]
test eax, eax
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x41dd26
push eax
call esi
test ebx, ebx
je 0x41dd2d
push ebx
call esi
lea ecx, [esp + 0x4c]
call fcn.00468790
mov al, byte [esp + 0x16]
mov ecx, dword [esp + 0x4a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x488]
xor ecx, esp
call fcn.00445c6a
add esp, 0x498
ret
mov eax, dword [esp + 0x2c]
xor ebx, ebx
test esi, esi
mov dword [esp + 0x48], eax
je 0x41dd7b
mov edx, dword [esi]
push ebx
push eax
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov eax, dword [esp + 0x28]
test eax, eax
jbe 0x41ddc3
add ebx, eax
test esi, esi
je 0x41dd9c
mov edx, dword [esi]
mov eax, dword [esp + 0x48]
mov edx, dword [edx + 4]
push ebx
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
push ecx
push eax
push 1
push edx
call fcn.00446ebe
mov ebp, eax
mov eax, dword [esp + 0x2c]
push eax
call fcn.00447b00
add esp, 0x14
cmp ebp, dword [esp + 0x28]
jb 0x41de42
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x28]
push ecx
push edi
push edx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x41de62
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x28]
test eax, eax
ja 0x41dd83
cmp byte [esp + 0x17], 0
je 0x41de9b
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00446ae8
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x38]
add esp, 4
push esi
mov dword [esp + 0x20], 0
call fcn.0041d810
add esp, 4
test al, al
jne 0x41de9b
push 0x48622c
mov ecx, esi
call fcn.0046be50
mov ecx, eax
call fcn.0046bec0
mov esi, eax
mov ecx, edi
jmp 0x41dcdb
mov ecx, dword [esp + 0x18]
push 0x483b40
call fcn.0046be50
mov ecx, eax
call fcn.0046bec0
mov ecx, dword [esp + 0x34]
mov esi, eax
jmp 0x41dcdb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
mov edi, eax
mov eax, dword [edx + 8]
push edi
push str.InetRFile
mov ecx, esi
call eax
mov ecx, dword [esp + 0x18]
push edi
push 0x483b64
call fcn.0046be50
mov ecx, eax
call fcn.0046bec0
mov ecx, eax
call fcn.0046bee0
jmp 0x41dce8
mov byte [esp + 0x16], 1
jmp 0x41dce8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
mov edi, eax
mov eax, dword [edx + 8]
push edi
push 0x483a80
mov ecx, esi
call eax
mov ecx, dword [esp + 0x18]
push edi
push str.HttpQueryInfo
call fcn.0046be50
mov ecx, eax
call fcn.0046bec0
mov ecx, eax
call fcn.0046bee0
jmp 0x41dd00