Function at 0x407520
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 0x437446
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x18a8
call fcn.0041c790
mov eax, dword [0x449704]
xor eax, dword [esp + 0x18b8]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x18b4], eax
xor eax, eax
lea ebp, [esi + 0x454]
mov ecx, 0x40
mov edi, ebp
rep stosd dword es:[edi], eax
lea ebx, [esi + 0x554]
mov ecx, 0x40
mov edi, ebx
rep stosd dword es:[edi], eax
lea edx, [esi + 0x254]
mov ecx, 0x80
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x18cc]
mov edi, edx
mov dword [esi + 0x658], 3
mov word [esi + 0x654], 0x50
sub edi, eax
mov cl, byte [eax]
mov byte [edi + eax], cl
inc eax
test cl, cl
jne 0x4075a6
lea edi, [esp + 0x1b4]
mov eax, edx
sub edi, edx
jmp 0x4075c0
mov cl, byte [eax]
mov byte [edi + eax], cl
inc eax
test cl, cl
jne 0x4075c0
mov eax, edx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4075d0
sub eax, edx
xor edx, edx
xor ecx, ecx
test eax, eax
jle 0x4075fe
cmp byte [esp + ecx + 0x1b4], 0x2f
jne 0x4075f4
mov byte [esp + ecx + 0x1b4], 0x20
inc edx
cmp edx, 1
je 0x4075fe
inc ecx
cmp ecx, eax
jl 0x4075e1
movzx eax, word [esi + 0x654]
push eax
push ebx
push ebp
lea ecx, [esp + 0x1c0]
push str._s__s__d
push ecx
call fcn.0041c992
add esp, 0x14
call fcn.00434636
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 0x407651
push eax
push eax
push str.NotInternetOpen
call fcn.004323c4
xor eax, eax
jmp 0x407a91
mov edx, dword [esi + 0x658]
push esi
push 0
push edx
xor eax, eax
mov ax, word [esi + 0x654]
push 0
push 0
push eax
push ebp
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x1c], ebp
jne 0x407695
push eax
push eax
push str.NotInternetConnect
call fcn.004323c4
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x407a91
cmp word [esi + 0x654], 0x1bb
mov dword [esp + 0x34], 0x43a148
mov dword [esp + 0x38], 0
mov eax, 0x84400100
jne 0x4076ba
mov eax, 0x84c03100
push esi
push eax
lea ecx, [esp + 0x3c]
push ecx
push 0
push str.HTTP_1.1
push ebx
push 0
push ebp
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
xor ebx, ebx
cmp eax, ebx
push ebx
mov dword [esp + 0x1c], eax
push ebx
jne 0x4076fb
push str.NotOpenRequest
call fcn.004323c4
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebp
call esi
push edi
call esi
xor eax, eax
jmp 0x407a91
push ebx
push ebx
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp eax, ebx
je 0x4076e8
mov ecx, dword [esp + 0x18]
push ebx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x3bc]
push eax
push 5
push ecx
mov dword [esp + 0x34], 0x100000
mov dword [esp + 0x40], 0x20
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x407751
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x3b8]
push 0x43a128
push eax
call fcn.0041c992
add esp, 0xc
cmp dword [esp + 0x20], ebx
jne 0x407766
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebp
call esi
push edi
jmp 0x407a8a
mov edi, dword [esp + 0x18d0]
lea ecx, [esp + 0x8c]
push ecx
push edi
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
call fcn.0042f81b
test eax, eax
je 0x4077bf
lea edx, [esp + 0x8c]
push edx
push edi
mov byte [esp + 0xb4], 0
call fcn.0042f9b8
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
jne 0x407882
call fcn.00429c9c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
push edi
lea eax, [esp + 0x14]
push 0x43a110
push eax
mov dword [esp + 0x18d0], 0
call fcn.00402240
mov edi, dword [esp + 0x1c]
mov ebx, dword [edi - 4]
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, ebx
add esp, 0xc
or ecx, eax
jge 0x407841
push 0
lea ecx, [esp + 0x14]
call fcn.00401da0
mov edi, dword [esp + 0x10]
push 0
push 0
push edi
call fcn.004323c4
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebp
call ebx
mov ecx, dword [esp + 0x14]
push ecx
call ebx
lea eax, [edi - 0x10]
mov dword [esp + 0x18c4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407888
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x407888
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x74]
push ecx
push 0x13
push edx
mov dword [esp + 0x44], 0x20
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x4078be
push ebp
call ebx
mov eax, dword [esp + 0x14]
push eax
call ebx
xor eax, eax
jmp 0x407a91
lea ecx, [esp + 0x6c]
push ecx
call fcn.0041c540
add esp, 4
cmp eax, 0x197
mov ebp, 0x400
je 0x407901
cmp eax, 0x191
je 0x407901
cmp eax, 0xc8
je 0x407938
cmp eax, 0xce
je 0x407938
mov edx, dword [esp + 0x1c]
push edx
call ebx
mov eax, dword [esp + 0x14]
push eax
call ebx
xor eax, eax
jmp 0x407a91
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push ebp
lea edx, [esp + 0x4bc]
push edx
push eax
call edi
mov ecx, esi
call fcn.00405d00
test eax, eax
je 0x407931
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x407907
jmp 0x407938
mov ecx, esi
call fcn.00407100
xor ebx, ebx
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 + 0x8b4]
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov ebp, dword [esp + 0x18d4]
mov dword [esp + 0x3c], 0x28
mov dword [esp + 0x50], ecx
mov dword [esp + 0x60], 0x3ff
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 0x407a4e
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4079d0
lea ecx, [esp + 0x64]
call fcn.00429c12
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 + 0x18c4], 0xffffffff
call fcn.00429c28
test ebp, ebp
jne 0x4079e5
mov edx, dword [esi + 0x6b0]
push ebp
push 0x64
push 0x402
push edx
jmp 0x407a33
add ebx, dword [esp + 0x54]
test ebx, ebx
mov dword [esp + 0x28], ebx
fild dword [esp + 0x28]
jge 0x4079fb
fadd dword [0x43a10c]
test ebp, ebp
mov dword [esp + 0x28], ebp
fild dword [esp + 0x28]
jge 0x407a0d
fadd dword [0x43a10c]
fdivp st(1)
fmul dword [0x43a108]
call fcn.0041ca18
cmp eax, 0x64
jle 0x407a24
mov eax, 0x64
push 0
push eax
mov eax, dword [esi + 0x6b0]
push 0x402
push eax
call edi
mov ecx, esi
call fcn.00405d00
test eax, eax
je 0x407a66
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x407977
jmp 0x407a6d
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 0x407a91
mov ecx, esi
call fcn.00407100
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 + 0x18bc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x18b0]
xor ecx, dword [esp + 0x18c4]
pop esi
pop ebp
pop ebx
call fcn.0041b931
add esp, 0x18b8
ret 0xc