Function at 0x41d910
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 0x474d0b
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.004498f0
add esp, 0xc
push ebp
lea ecx, [esp + 0x50]
mov byte [esp + 0x1b], 0
call fcn.00469560
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 0x41da04
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.0046c2f0
mov ecx, eax
call fcn.0046c360
mov ecx, eax
call fcn.0046c380
jmp 0x41dc74
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.00446633
add esp, 0xc
push str.cs1
lea ecx, [esp + 0x50]
mov ebp, eax
call fcn.00469430
push edi
push 0x84000000
push ebp
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x5c]
call fcn.00468ae0
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x38], ebx
jne 0x41dad4
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.0046c520
mov ecx, eax
call fcn.0046c360
jmp 0x41dc70
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 0x41de15
cmp dword [esp + 0x3c], 0xc8
jne 0x41de15
push 0
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x34]
push ecx
push 0x20000005
push ebx
call ebp
test eax, eax
jne 0x41db30
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 0x41dba4
cmp word [esp + 0x5c], 0x78
jne 0x41db63
cmp word [esp + 0x5e], 0x2d
jne 0x41db63
lea edi, [esp + 0x60]
mov ecx, str.gzip
mov eax, edi
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41db96
test dx, dx
je 0x41db92
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41db96
add eax, 4
add ecx, 4
test dx, dx
jne 0x41db70
xor eax, eax
jmp 0x41db9b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41dba4
mov byte [esp + 0x17], 1
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x41dbcf
mov eax, 0x51eb851f
mul ecx
mov edi, edx
shr edi, 4
cmp edi, 0x400
jae 0x41dbc7
mov edi, 0x400
jmp 0x41dbd4
cmp edi, 0x20000
jbe 0x41dbd4
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.0046d380
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00446c9e
add esp, 0xc
cmp dword [esp + 0x1c], 0
jne 0x41dcd2
mov ebp, dword [esi]
add ebp, 8
call fcn.00447a33
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.0046c2f0
mov ecx, eax
call fcn.0046c360
mov esi, eax
mov ecx, ebx
call fcn.0046d3a0
push eax
mov ecx, esi
call fcn.0046c360
mov eax, dword [esp + 0x24]
test eax, eax
je 0x41dc70
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 0x41dc85
push eax
call fcn.00446f88
add esp, 4
mov eax, dword [esp + 0x38]
test eax, eax
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x41dc96
push eax
call esi
test ebx, ebx
je 0x41dc9d
push ebx
call esi
lea ecx, [esp + 0x4c]
call fcn.00468c30
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.0044610a
add esp, 0x498
ret
mov eax, dword [esp + 0x2c]
xor ebx, ebx
test esi, esi
mov dword [esp + 0x48], eax
je 0x41dceb
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 0x41dd33
add ebx, eax
test esi, esi
je 0x41dd0c
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.0044735e
mov ebp, eax
mov eax, dword [esp + 0x2c]
push eax
call fcn.00447fa0
add esp, 0x14
cmp ebp, dword [esp + 0x28]
jb 0x41ddb2
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 0x41ddd2
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x28]
test eax, eax
ja 0x41dcf3
cmp byte [esp + 0x17], 0
je 0x41de0b
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00446f88
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x38]
add esp, 4
push esi
mov dword [esp + 0x20], 0
call fcn.0041d780
add esp, 4
test al, al
jne 0x41de0b
push 0x48622c
mov ecx, esi
call fcn.0046c2f0
mov ecx, eax
call fcn.0046c360
mov esi, eax
mov ecx, edi
jmp 0x41dc4b
mov ecx, dword [esp + 0x18]
push 0x483b40
call fcn.0046c2f0
mov ecx, eax
call fcn.0046c360
mov ecx, dword [esp + 0x34]
mov esi, eax
jmp 0x41dc4b
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.0046c2f0
mov ecx, eax
call fcn.0046c360
mov ecx, eax
call fcn.0046c380
jmp 0x41dc58
mov byte [esp + 0x16], 1
jmp 0x41dc58
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.0046c2f0
mov ecx, eax
call fcn.0046c360
mov ecx, eax
call fcn.0046c380
jmp 0x41dc70