Function at 0x407e80
Capabilities:
Check http status code
Connect to http server
Create http request
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
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4359a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1928
call fcn.0041a9c0
mov eax, dword [0x4476d4]
xor eax, dword [esp + 0x1938]
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x1934], eax
xor eax, eax
lea ebx, [ebp + 0x44c]
mov ecx, 0x40
mov edi, ebx
rep stosd dword es:[edi], eax
lea edi, [ebp + 0x54c]
mov ecx, 0x40
rep stosd dword es:[edi], eax
lea edx, [ebp + 0x24c]
mov ecx, 0x80
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x194c]
mov esi, edx
mov dword [ebp + 0x650], 3
mov word [ebp + 0x64c], 0x50
sub esi, eax
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x407f04
lea esi, [esp + 0x334]
mov eax, edx
sub esi, edx
lea esp, [esp]
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x407f20
mov eax, edx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407f30
sub eax, edx
xor edx, edx
xor ecx, ecx
test eax, eax
jle 0x407f5e
cmp byte [esp + ecx + 0x334], 0x2f
jne 0x407f54
mov byte [esp + ecx + 0x334], 0x20
inc edx
cmp edx, 3
je 0x407f5e
inc ecx
cmp ecx, eax
jl 0x407f41
movzx eax, word [ebp + 0x64c]
push eax
lea eax, [ebp + 0x54c]
push eax
push ebx
lea ecx, [esp + 0x1c0]
push ecx
lea edx, [esp + 0x344]
push str._s__s__s__s__d
push edx
call fcn.0041abc2
add esp, 0x18
mov edi, str.http:__
lea esi, [esp + 0x1b4]
mov ecx, 8
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x407fab
mov word [ebp + 0x64c], 0x50
call fcn.00432ac0
mov eax, dword [eax + 0x10]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
test edi, edi
mov dword [esp + 0x14], edi
jne 0x407fdf
push eax
push eax
push str.NotInternetOpen
call fcn.004306d9
xor eax, eax
jmp 0x4083ee
mov ecx, dword [ebp + 0x650]
push ebp
push 0
push ecx
xor edx, edx
mov dx, word [ebp + 0x64c]
push 0
push 0
push edx
push ebx
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x1c], ebx
jne 0x408023
push eax
push eax
push str.NotInternetConnect
call fcn.004306d9
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x4083ee
cmp word [ebp + 0x64c], 0x1bb
mov dword [esp + 0x34], 0x438188
mov dword [esp + 0x38], 0
mov eax, 0x84400100
jne 0x408048
mov eax, 0x84c03100
push ebp
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push str.HTTP_1.1
lea eax, [ebp + 0x54c]
push eax
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
push 0
mov dword [esp + 0x1c], esi
push 0
jne 0x408091
push str.NotOpenRequest
call fcn.004306d9
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
push edi
call esi
xor eax, eax
jmp 0x4083ee
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x40807e
push 0
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x23c]
push edx
push 5
push esi
mov dword [esp + 0x34], 0x100000
mov dword [esp + 0x3c], 0x20
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x4080e6
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x238]
push 0x438168
push ecx
call fcn.0041abc2
add esp, 0xc
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp ecx, eax
jne 0x4080ff
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
push edi
jmp 0x4083e7
mov esi, dword [esp + 0x1950]
lea edx, [esp + 0x8c]
push edx
push esi
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
call fcn.0042cf39
test eax, eax
je 0x408158
lea eax, [esp + 0x8c]
push eax
push esi
mov byte [esp + 0xb4], 0
call fcn.0042d0d6
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
jne 0x40821b
call fcn.0042bc3e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
push esi
lea eax, [esp + 0x14]
push 0x438150
push eax
mov dword [esp + 0x1950], 0
call fcn.004024d0
mov esi, dword [esp + 0x1c]
mov edi, dword [esi - 4]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, edi
add esp, 0xc
or ecx, eax
jge 0x4081da
push 0
lea ecx, [esp + 0x14]
call fcn.00402030
mov esi, dword [esp + 0x10]
push 0
push 0
push esi
call fcn.004306d9
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call edi
mov ecx, dword [esp + 0x14]
push ecx
call edi
lea eax, [esi - 0x10]
mov dword [esp + 0x1944], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408221
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x408221
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x74]
push ecx
push 0x13
push edx
mov dword [esp + 0x40], 0x20
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x408257
push ebx
call edi
mov eax, dword [esp + 0x14]
push eax
call edi
xor eax, eax
jmp 0x4083ee
lea ecx, [esp + 0x6c]
push ecx
call fcn.0041a4d0
add esp, 4
cmp eax, 0x197
mov ebx, 0x400
je 0x40829a
cmp eax, 0x191
je 0x40829a
cmp eax, 0xc8
je 0x4082bd
cmp eax, 0xce
je 0x4082bd
mov edx, dword [esp + 0x1c]
push edx
call edi
mov eax, dword [esp + 0x14]
push eax
call edi
xor eax, eax
jmp 0x4083ee
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push ebx
lea edx, [esp + 0x53c]
push edx
push eax
call esi
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4082a0
xor esi, esi
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x934]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov ebx, dword [esp + 0x1954]
mov dword [esp + 0x3c], 0x28
mov dword [esp + 0x50], ecx
mov dword [esp + 0x60], 0x3ff
lea esp, [esp]
mov eax, dword [esp + 0x18]
push 0
push 8
lea edx, [esp + 0x44]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
je 0x40841c
mov eax, dword [esp + 0x54]
test eax, eax
je 0x408359
lea ecx, [esp + 0x64]
call fcn.0042bbb4
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
push 0
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x1944], 0xffffffff
call fcn.0042bbca
test ebx, ebx
jne 0x40836e
mov edx, dword [ebp + 0x6b4]
push ebx
push 0x64
push 0x402
push edx
jmp 0x4083bc
add esi, dword [esp + 0x54]
test esi, esi
mov dword [esp + 0x30], esi
fild dword [esp + 0x30]
jge 0x408384
fadd dword [0x43814c]
test ebx, ebx
mov dword [esp + 0x30], ebx
fild dword [esp + 0x30]
jge 0x408396
fadd dword [0x43814c]
fdivp st(1)
fmul dword [0x438148]
call fcn.0041ac48
cmp eax, 0x64
jle 0x4083ad
mov eax, 0x64
push 0
push eax
mov eax, dword [ebp + 0x6b4]
push 0x402
push eax
call edi
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x408300
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
mov eax, 1
mov ecx, dword [esp + 0x193c]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1930]
xor ecx, dword [esp + 0x1944]
pop esi
pop ebp
pop ebx
call fcn.00419d0f
add esp, 0x1938
ret 0xc
mov ecx, dword [esp + 0x1c]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
xor eax, eax
jmp 0x4083ee