Function at 0x40b910
Capabilities:
Connect to http server
Delete file
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Send data
Send http request
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
lea eax, [ebp - 8]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x8c]
mov dword [esp], eax
mov dword [ebp - 0x64], esp
mov dword [ebp - 0x74], 0x41caa0
mov dword [ebp - 0x70], 0x41d26a
mov dword [ebp - 0x68], 0x40c182
call fcn.00418ac0
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x68]
xor edx, edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
cmp eax, 0x1bb
movzx eax, ax
setne dl
sub edx, 1
and edx, 0x803000
mov dword [ebp - 0x90], edx
mov edx, dword [ecx + 0x6c]
mov dword [esp + 0x14], edx
mov edx, dword [ecx + 0x44]
mov dword [esp + 0x10], edx
mov edx, dword [ecx + 0x3c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov eax, dword [ecx + 0x4c]
mov dword [esp + 4], eax
mov eax, dword [ecx]
mov dword [ebp - 0x88], 0xffffffff
mov dword [esp], eax
call sub.WININET.DLL_InternetConnectA
mov dword [ebp - 0x94], eax
sub eax, 1
sub esp, 0x20
cmp eax, 0xfffffffd
ja 0x40bbd7
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
mov dword [esp], eax
mov dword [ebp - 0x88], 9
add edx, 0x58
mov dword [esp + 8], edx
mov edx, dword [ebp + 8]
add edx, 0x50
mov dword [esp + 4], edx
call fcn.004037b0
mov eax, dword [ebp + 8]
sub esp, 4
cmp dword [eax + 0x6c], 3
je 0x40ba40
mov byte [ebp - 0x95], 1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40ba0e
mov dword [esp], eax
call fcn.0041bd20
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0x88], 0xffffffff
mov dword [esp], edx
call sub.WININET.DLL_InternetCloseHandle
sub esp, 4
lea eax, [ebp - 0x8c]
mov dword [esp], eax
call fcn.00418a60
movzx eax, byte [ebp - 0x95]
leave
ret
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x90]
mov dword [esp + 0x14], eax
mov ecx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], 0x422da8
mov dword [ebp - 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0x422dac
mov dword [esp], ecx
mov dword [ebp - 0x88], 8
call sub.WININET.DLL_HttpOpenRequestA
mov dword [ebp - 0x9c], eax
sub eax, 1
sub esp, 0x20
cmp eax, 0xfffffffd
ja 0x40b9f8
mov eax, dword [ebp - 0x9c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [ebp - 0x88], 7
call sub.WININET.DLL_HttpSendRequestA
sub esp, 0x14
test eax, eax
je 0x40bcf0
mov edx, dword [ebp - 0x9c]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x88], 7
mov dword [esp + 4], edx
mov dword [esp], ecx
call fcn.0040aa70
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0040a960
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
mov dword [esp + 8], str.Content_Type:
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0040a890
mov eax, dword [ebp - 0x28]
sub esp, 4
mov dword [esp + 4], str.html
mov dword [ebp - 0x88], 6
mov dword [esp], eax
call fcn.004026c0
test eax, eax
je 0x40bbe3
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov byte [ebp - 0x95], 0
test eax, eax
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0
je 0x40bbac
mov eax, ecx
add eax, 0x10
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], 3
mov dword [ebp - 0x88], 6
mov dword [esp], eax
call dword [ebp + 0x10]
mov byte [ebp - 0x95], 0
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call fcn.0041a790
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x88], 8
mov dword [esp], eax
call sub.WININET.DLL_InternetCloseHandle
sub esp, 4
jmp 0x40b9ff
mov byte [ebp - 0x95], 1
jmp 0x40ba29
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], 0x422dc4
mov dword [esp], eax
call fcn.004026c0
test eax, eax
jne 0x40bb62
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], str.plain
mov dword [esp], eax
call fcn.004026c0
test eax, eax
jne 0x40bb62
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x34]
mov dword [esp + 8], str.Content_Length:
mov dword [esp], eax
mov dword [ebp - 0x88], 6
mov dword [esp + 4], ecx
call fcn.0040a890
push eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x88], 5
mov dword [esp], eax
call fcn.004025c0
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0x34]
mov dword [esp], eax
call fcn.0041a790
mov ecx, dword [ebp - 0xa4]
test ecx, ecx
jne 0x40bc78
mov dword [ebp - 0xa4], 0x186a0
mov edx, dword [ebp + 8]
mov dword [ebp - 0x88], 6
mov dword [esp], edx
call fcn.0040a840
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0x44]
mov dword [esp + 8], str.Last_Modified:
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0040a890
mov eax, dword [ebp - 0x40]
sub esp, 4
mov dword [ebp - 0x88], 4
mov dword [esp], eax
call fcn.0040abd0
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x38], edx
mov dword [esp], eax
call fcn.0041a790
cmp dword [ebp - 0xb8], 0xc8
je 0x40bd09
mov byte [ebp - 0x95], 1
jmp 0x40bbac
call sub.KERNEL32.dll_GetLastError
test eax, eax
je 0x40baf6
mov byte [ebp - 0x95], 1
jmp 0x40bbb7
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xa4]
mov dword [eax + 0x24], 0
mov dword [eax + 0x20], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x40bd6f
mov ecx, dword [ebp + 0x14]
add eax, 0x10
mov dword [ebp - 0xc8], eax
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ecx
mov dword [ebp - 0x88], 6
call dword [ebp + 0x10]
cmp al, 1
je 0x40bd6f
mov eax, dword [ebp - 0xc8]
mov edx, dword [ebp + 0x14]
mov dword [esp + 4], 2
mov dword [esp + 8], eax
mov dword [esp], edx
call dword [ebp + 0x10]
jmp 0x40bce2
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x40000000
mov dword [esp], ecx
mov dword [ebp - 0x88], 6
call sub.KERNEL32.dll_CreateFileA
sub esp, 0x1c
test eax, eax
mov dword [ebp - 0xc4], eax
je 0x40bce2
mov eax, dword [ebp - 0xa4]
mov edx, 0x51eb851f
imul edx
mov eax, dword [ebp - 0xa4]
sar edx, 5
sar eax, 0x1f
sub edx, eax
mov dword [ebp - 0xb0], edx
je 0x40bdf4
cmp dword [ebp - 0xb0], 0x1400000
jle 0x40bdfe
mov dword [ebp - 0xb0], 0x1400000
mov edx, dword [ebp - 0xb0]
lea eax, [ebp - 0x4c]
mov dword [esp], eax
mov dword [ebp - 0x88], 6
mov dword [esp + 4], edx
call fcn.0041a760
lea eax, [ebp - 9]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [ebp - 0x88], 3
call fcn.00403e90
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xb0]
mov dword [ebp - 0xa0], 0
add eax, 0x10
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xc0], eax
jmp 0x40bfef
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x40be88
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0xa4], edx
lea ecx, [ebp - 0x54]
add dword [ebp - 0xa0], eax
mov dword [esp + 4], 0
mov dword [esp], ecx
mov dword [ebp - 0x88], 2
call fcn.0041a760
mov eax, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0xb0]
mov dword [esp + 4], str.code:__d__requested__d_bytes__read__d_bytes__total:__d_of__d
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x54]
mov dword [esp + 0xc], ecx
mov dword [esp], edx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x88], 1
mov dword [esp + 8], eax
call fcn.00402bd0
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 9]
mov dword [esp], eax
mov dword [ebp - 0xac], ecx
call fcn.00403b90
mov edx, dword [ebp - 0xac]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00403db0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40bf63
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x14]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc4]
mov dword [esp], eax
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
test eax, eax
je 0x40c048
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jne 0x40c176
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0x88], 1
mov dword [esp + 4], edx
mov dword [esp], ecx
call fcn.00402d30
mov edx, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0xa0]
mov eax, dword [ebp + 8]
cmp edx, ecx
mov dword [eax + 0x20], edx
mov dword [eax + 0x24], ecx
je 0x40c052
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x40c142
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x40bfde
mov edx, dword [ebp - 0xc0]
mov ecx, dword [ebp + 0x14]
mov dword [esp + 4], 1
mov dword [ebp - 0x88], 1
mov dword [esp + 8], edx
mov dword [esp], ecx
call dword [ebp + 0x10]
cmp al, 1
jne 0x40c122
lea ecx, [ebp - 0x54]
mov dword [esp], ecx
call fcn.0041a790
mov ecx, dword [ebp - 0xbc]
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x10]
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [ebp - 0x88], 2
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x9c]
mov dword [esp], eax
call sub.WININET.DLL_InternetReadFile
sub esp, 0x10
test eax, eax
mov dword [ebp - 0xa8], 0
jne 0x40be75
mov dword [ebp - 0x88], 2
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0xa8], eax
jmp 0x40be75
call sub.KERNEL32.dll_GetLastError
jmp 0x40bf57
cmp dword [ebp + 0x10], 0
je 0x40c073
mov eax, dword [ebp - 0xb4]
mov edx, dword [ebp + 0x14]
mov dword [esp + 4], 3
mov dword [esp + 8], eax
mov dword [esp], edx
call dword [ebp + 0x10]
mov byte [ebp - 0x95], 0
lea eax, [ebp - 0x54]
mov dword [esp], eax
call fcn.0041a790
lea eax, [ebp - 0x3c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xc4]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [ebp - 0x88], 2
mov dword [esp], eax
call sub.KERNEL32.dll_SetFileTime
mov edx, dword [ebp - 0xc4]
sub esp, 0x10
mov dword [ebp - 0x88], 2
mov dword [esp], edx
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebp + 0xc]
sub esp, 4
mov dword [esp + 4], pe_nt_image_headers32
mov dword [esp], eax
call sub.KERNEL32.dll_SetFileAttributesA
sub esp, 8
cmp byte [ebp - 0x95], 0
je 0x40c0fd
mov edx, dword [ebp + 0xc]
mov dword [esp], edx
call sub.KERNEL32.dll_DeleteFileA
push eax
lea eax, [ebp - 9]
mov dword [esp], eax
mov dword [ebp - 0x88], 3
call fcn.00403d60
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call fcn.0041a790
jmp 0x40bbac
mov eax, dword [ebp - 0xb4]
mov edx, dword [ebp + 0x14]
mov dword [esp + 4], 2
mov dword [esp + 8], eax
mov dword [esp], edx
call dword [ebp + 0x10]
jmp 0x40c073
cmp dword [ebp + 0x10], 0
je 0x40c073
mov ecx, dword [ebp - 0xb4]
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], 4
mov dword [ebp - 0x88], 1
mov dword [esp + 8], ecx
mov dword [esp], eax
call dword [ebp + 0x10]
jmp 0x40c073
mov byte [ebp - 0x95], 1
jmp 0x40c07a