Function at 0x4073a3
Capabilities:
Check internet connectivity via wininet
Create http request
Delete file
Get http content length
Read data from internet
Receive data

Disassembly:
mov eax, 0x426b36
call fcn.0040bb88
push ecx
mov eax, 0x385d4
call fcn.0040b780
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], ebx
push 4
mov esi, 0x432ffc
pop edi
lea ecx, [ebp - 0x14]
push esi
mov dword [ebp - 4], edi
call fcn.00418001
push 0x401
lea eax, [ebp - 0x5d4]
push ebx
push eax
call fcn.0040b690
add esp, 0xc
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 6
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
call dword [sym.imp.WINMM.dll_timeGetTime]
push eax
lea eax, [ebp - 0xb8]
push str.Agent_ld
push eax
call fcn.0040c735
add esp, 0xc
lea eax, [ebp - 0xb8]
test byte [ebp - 0x58], 4
push ebx
push ebx
push ebx
jne 0x407428
push edi
jmp 0x407429
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [ebp - 0x38], eax
jne 0x407463
push esi
push dword [ebp + 0x10]
call fcn.0040bfb0
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
test eax, eax
je 0x4074d0
push str.Internet_open_error_
call fcn.00418001
mov dword [ebp - 0x24], 1
jmp 0x40795e
mov esi, str.Accept:___r_n_r_n
lea edi, [ebp - 0x78]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x18]
push eax
movsd dword es:[edi], dword [esi]
call fcn.00417d08
mov esi, dword [eax]
push ebx
lea eax, [ebp - 0x78]
push 0x84000100
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
push dword [ebp - 0x38]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp eax, ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x34], eax
sete byte [ebp - 0x1d]
call fcn.00417f93
cmp byte [ebp - 0x1d], bl
je 0x4074e2
mov esi, 0x432ffc
push esi
push dword [ebp + 0x10]
call fcn.0040bfb0
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
test eax, eax
je 0x4074d0
push str.URL_open_error_
jmp 0x4074d1
push esi
call fcn.00418001
mov dword [ebp - 0x24], 1
jmp 0x40795e
lea eax, [ebp - 0x30]
mov dword [ebp - 0x28], ebx
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x20000005
push dword [ebp - 0x34]
mov dword [ebp - 0x60], 4
mov dword [ebp - 0x30], ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x407510
mov dword [ebp - 0x28], ebx
lea ecx, [ebp - 0x54]
call fcn.0041cf1a
mov eax, dword [0x431838]
mov dword [ebp - 0x44], eax
or dword [ebp - 0x48], 0xffffffff
push ebx
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 8
mov dword [ebp - 0x54], vtable.CFileException.0
mov dword [ebp - 0x4c], ebx
call fcn.004180d0
push str.FIcq.exe
mov byte [ebp - 4], 9
push dword [ebp + 0x1c]
call fcn.0040bfb0
pop ecx
test eax, eax
pop ecx
jne 0x407561
cmp dword [ebp - 0x30], ebx
je 0x407561
mov dword [0x434018], 1
push str.UFIcq.exe
push dword [ebp + 0x1c]
call fcn.0040bfb0
pop ecx
test eax, eax
pop ecx
jne 0x407583
cmp dword [ebp - 0x30], ebx
je 0x407583
mov dword [0x43401c], 1
push 0x432ffc
push dword [ebp + 0x10]
call fcn.0040bfb0
pop ecx
test eax, eax
pop ecx
je 0x407824
cmp dword [ebp - 0x30], ebx
je 0x407824
push 0x10
call fcn.00418529
pop ecx
mov ecx, eax
mov dword [ebp - 0x3c], ecx
cmp ecx, ebx
mov byte [ebp - 4], 0xa
je 0x4075c1
call fcn.0041d7e0
mov esi, eax
jmp 0x4075c3
xor esi, esi
push ebx
lea ecx, [ebp + 0x10]
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 9
call fcn.00418377
mov edx, dword [esi]
lea ecx, [ebp - 0x54]
push ecx
push 0x9002
push eax
mov ecx, esi
call dword [edx + 0x20]
cmp eax, ebx
jne 0x40765b
push ebx
lea eax, [ebp - 0x5d4]
push 0x400
push eax
lea ecx, [ebp - 0x54]
call fcn.0041cfb8
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x18]
push str.open_file_
push eax
call fcn.00418250
push str._error_
push eax
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 0xb
push eax
call fcn.004181dc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xc
call fcn.00418080
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 0xb
call fcn.00417f93
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 9
call fcn.00417f93
lea eax, [ebp - 0x5d4]
lea ecx, [ebp - 0x14]
push eax
call fcn.00418323
jmp 0x4077f3
cmp dword [ebp - 0x30], ebx
mov dword [ebp - 0x18], ebx
je 0x40772d
mov edi, dword [ebp + 0x18]
mov esi, 0x4000
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x105d8]
push esi
push eax
push dword [ebp - 0x34]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40772a
cmp dword [ebp - 0x1c], ebx
je 0x40772a
push 0x432ffc
push dword [0x434014]
call fcn.0040bfb0
pop ecx
test eax, eax
pop ecx
je 0x40772a
mov ecx, dword [ebp - 0x2c]
push dword [ebp - 0x1c]
lea edx, [ebp - 0x105d8]
mov eax, dword [ecx]
push edx
call dword [eax + 0x38]
cmp edi, ebx
je 0x40766f
mov eax, dword [ebp - 0x18]
mov ecx, dword [0x431838]
add eax, dword [ebp - 0x1c]
mov dword [ebp + 0x18], ecx
mov dword [ebp - 0x18], eax
cdq
mov ecx, 0x400
mov byte [ebp - 4], 0xd
idiv ecx
push eax
lea eax, [ebp + 0x18]
push dword [ebp + 0x1c]
push str._s___ldkb_
push eax
call fcn.0041650e
add esp, 0x10
lea ecx, [edi + 0x5ec]
push dword [ebp + 0x18]
call fcn.0041be3f
push 1
push ebx
push dword [edi + 0x608]
call dword [sym.imp.USER32.dll_InvalidateRect]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 9
call fcn.00417f93
jmp 0x40766f
mov esi, dword [ebp - 0x2c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x30]
sub dword [ebp - 0x28], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x4c]
cmp dword [ebp - 0x28], ebx
jne 0x4077ea
push ebx
lea ecx, [ebp + 0x14]
call fcn.00418377
lea ecx, [ebp + 0x18]
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
push str._d__d__d__d:_d:_d
push eax
call fcn.0040c701
push 4
call fcn.00418529
mov ecx, eax
add esp, 0x24
mov dword [ebp - 0x68], ecx
cmp ecx, ebx
mov byte [ebp - 4], 0xe
je 0x4077a7
push 0xffffffffffffffff
push dword [ebp + 0x18]
push dword [ebp - 0x18]
push dword [ebp - 0x2c]
push dword [ebp - 0x40]
push dword [ebp - 0x5c]
push dword [ebp - 0x3c]
call fcn.0041665d
mov edi, eax
jmp 0x4077a9
xor edi, edi
push ebx
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 9
call fcn.00418377
lea ecx, [ebp - 0x1d0]
push ecx
push eax
call fcn.0041d54e
mov eax, dword [edi]
push ebx
lea ecx, [ebp + 0x10]
mov dword [ebp - 0x1cc], eax
call fcn.00418377
lea ecx, [ebp - 0x1d0]
push ecx
push eax
call fcn.0041d6b3
push edi
call fcn.00418552
pop ecx
jmp 0x4077f3
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
push dword [ebp - 0x34]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x38]
call esi
mov dword [ebp - 0x54], vtable.CFileException.0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xf
call fcn.00417f93
jmp 0x407908
mov esi, 0x4000
push 0x4001
lea eax, [ebp - 0x105d8]
push ebx
push eax
call fcn.0040b690
push 0x10004
lea eax, [ebp - 0x205dc]
push ebx
push eax
call fcn.0040b690
push 0xc003
lea eax, [ebp - 0x385e4]
push ebx
push eax
call fcn.0040b690
add esp, 0x24
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x105d8]
push esi
push eax
push dword [ebp - 0x34]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4077fc
cmp dword [ebp - 0x1c], ebx
je 0x4077fc
push dword [ebp - 0x1c]
lea eax, [ebp - 0x385e4]
push eax
lea eax, [ebp - 0x105d8]
push dword [ebp - 0x1c]
push eax
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push ebx
lea ecx, [ebp - 0x205dc]
push esi
push ecx
push eax
lea eax, [ebp - 0x385e4]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x205dc]
lea ecx, [ebp - 0x14]
push eax
call fcn.00418323
jmp 0x407829
mov esi, 0x432ffc
mov dword [ebp - 4], 5
push esi
push dword [ebp + 0x10]
call fcn.0040bfb0
pop ecx
test eax, eax
pop ecx
je 0x40794e
push esi
push dword [ebp - 0x14]
call fcn.0040bfb0
pop ecx
test eax, eax
pop ecx
jne 0x40794e
lea eax, [ebp + 0x10]
mov esi, 0x434010
push eax
mov ecx, esi
call fcn.0041835f
push 0x431164
mov ecx, esi
call fcn.00418323
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.00417d08
or dword [ebp - 0x24], 1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00417f93
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
call fcn.00417f93
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.00417f93
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 1
call fcn.00417f93
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], bl
call fcn.00417f93
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret