Function at 0x6065ea
Capabilities:
Check http status code
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
mov eax, 0x61ec86
call fcn.0060ebd0
sub esp, 0x398
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
test byte [0x7234b8], 1
jne 0x60662e
or dword [0x7234b8], 1
mov dword [ebp - 4], edi
push 0x686bd0
call fcn.005a659d
mov esi, eax
pop ecx
mov dword [0x7234b4], esi
or dword [ebp - 4], 0xffffffff
jmp 0x606634
mov esi, dword [0x7234b4]
mov ecx, dword [ebp + 0x10]
push esi
push edi
push 0x686bd0
call fcn.00405fcb
cmp eax, edi
jl 0x60664b
add esi, eax
jmp 0x60664d
xor esi, esi
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x74], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x70], eax
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
call fcn.00409ad2
mov ecx, dword [ebp + 0x10]
push esi
push edi
lea eax, [ebp - 0xb4]
push eax
call fcn.00401926
mov dword [ebp - 4], 1
cmp esi, edi
jle 0x606725
cmp dword [ebp - 0x9c], 8
mov eax, dword [ebp - 0xb0]
jae 0x6066a8
lea eax, [ebp - 0xb0]
push esi
push 0x686bc0
push eax
call fcn.00413550
add esp, 0xc
test eax, eax
je 0x606725
cmp dword [ebp + 0x14], edi
je 0x6066fd
cmp dword [ebp - 0x9c], 8
mov eax, dword [ebp - 0xb0]
jae 0x6066d5
lea eax, [ebp - 0xb0]
push 0x686bc0
push eax
push str.CHECK_PROTOCOL_ERROR
push ecx
call fcn.0040171c
pop ecx
mov esi, eax
call fcn.0060d9f6
mov ecx, dword [ebp + 0x14]
push eax
push 2
pop esi
call fcn.004150a0
add esp, 0xc
or esi, 0xffffffff
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0xb4]
call fcn.00401c85
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10
push edi
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x80], 7
call fcn.0040209b
mov byte [ebp - 4], 2
push edi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], 7
call fcn.0040209b
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 0x10]
push 1
push esi
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], 0x2f
call fcn.00405fcb
cmp eax, edi
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 8], eax
jle 0x6067c2
sub eax, esi
push eax
push esi
lea eax, [ebp - 0xd8]
push eax
call fcn.00401926
mov byte [ebp - 4], 4
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x98]
call fcn.00401b58
mov byte [ebp - 4], 3
push edi
push 1
lea ecx, [ebp - 0xd8]
call fcn.00401c85
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
push dword [ebp + 8]
lea eax, [ebp - 0xd8]
push eax
call fcn.00401926
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x48]
jmp 0x6067db
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0xd8]
push eax
call fcn.00401926
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x98]
push 0xffffffffffffffff
push edi
push eax
call fcn.00401b58
mov byte [ebp - 4], 3
push edi
push 1
lea ecx, [ebp - 0xd8]
call fcn.00401c85
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
mov dword [ebp + 8], 5
mov dword [ebp - 0x58], edi
mov dword [ebp + 0x10], edi
mov dword [ebp - 0x20], edi
jae 0x606812
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x164]
call fcn.00409b0d
mov byte [ebp - 4], 7
push edi
push edi
push edi
push 1
push str.YmirPatcherv1.8.2
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x5c], eax
cmp eax, edi
jne 0x6068aa
cmp dword [ebp + 0x14], edi
je 0x606864
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.INTERNET_OPEN_ERROR
call fcn.0040171c
mov esi, eax
call fcn.0060d9f6
mov ecx, dword [ebp + 0x14]
push eax
push 2
pop esi
call fcn.004150a0
pop ecx
pop ecx
mov byte [ebp - 4], 3
lea eax, [ebp - 0x160]
cmp dword [ebp - 0x164], eax
je 0x606882
push dword [ebp - 0x164]
call fcn.005a6b81
pop ecx
mov byte [ebp - 4], 2
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.00401c85
mov byte [ebp - 4], 1
push edi
push 1
lea ecx, [ebp - 0x98]
call fcn.00401c85
xor esi, esi
jmp 0x606700
cmp dword [ebp + 0x10], edi
je 0x6068bb
push dword [ebp + 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp + 0x10], edi
cmp dword [ebp - 0x20], edi
je 0x6068c9
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x80], 8
mov eax, dword [ebp - 0x94]
jae 0x6068db
lea eax, [ebp - 0x94]
push edi
push edi
push 3
push edi
push edi
push 0x50
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x20], eax
cmp eax, edi
je 0x606b9e
mov ecx, dword [ebp - 0x164]
call fcn.00413960
mov esi, eax
imul esi, esi, 3
inc esi
lea eax, [esi + esi + 2]
push eax
call fcn.005a6c5e
pop ecx
mov ecx, dword [ebp - 0x164]
mov dword [ebp - 0x14], eax
call fcn.00413960
cmp dword [ebp - 0x14], edi
je 0x606933
mov edx, dword [ebp - 0x14]
push eax
push esi
mov eax, ecx
call fcn.004141a0
push edi
push 0x84000100
push edi
push edi
push str.HTTP_1.1
push dword [ebp - 0x14]
push 0x686c94
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
push dword [ebp - 0x14]
mov dword [ebp + 0x10], eax
call fcn.005a6b81
pop ecx
cmp dword [ebp + 0x10], edi
je 0x606be8
push 0x200
lea eax, [ebp - 0x3a4]
push edi
push eax
xor esi, esi
call fcn.005a90b0
mov eax, dword [ebp - 0x2c]
add esp, 0xc
or eax, dword [ebp - 0x28]
je 0x6069a6
push dword [ebp - 0x28]
lea eax, [ebp - 0x3a4]
push dword [ebp - 0x2c]
push str.Range:_bytes_I64u__r_n
push pe_nt_image_headers32
push eax
call fcn.00413760
add esp, 0x14
mov esi, eax
push edi
push edi
push esi
lea eax, [ebp - 0x3a4]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x606c0c
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
push edi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x20000013
push dword [ebp + 0x10]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x64], 4
call esi
test eax, eax
je 0x606c30
cmp dword [ebp - 0x14], 0xc8
je 0x606a02
cmp dword [ebp - 0x14], 0xce
jne 0x606c57
push edi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x1a4]
push eax
push 5
push dword [ebp + 0x10]
mov dword [ebp - 0x64], 0x40
call esi
test eax, eax
je 0x606c95
lea eax, [ebp - 0x1a4]
push eax
call fcn.005a9b32
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0xc]
pop ecx
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
xor edx, edx
xor esi, esi
cmp dword [ebp - 0x54], ecx
jne 0x606a4a
cmp edx, esi
je 0x606a52
push dword [ebp - 0x54]
call fcn.00409c60
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
xor esi, esi
cmp dword [ebp - 0x18], esi
jg 0x606cc9
jl 0x606a77
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x54]
jae 0x606cc9
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10]
test al, al
je 0x606cd0
mov eax, dword [ebp - 0x54]
sub eax, dword [ebp - 0x1c]
sbb esi, dword [ebp - 0x18]
mov dword [ebp - 0x64], esi
js 0x606aa6
jg 0x606a9d
cmp eax, 0x1000
jbe 0x606aa6
mov dword [ebp - 0x14], 0x1000
jmp 0x606aa9
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x60], edi
cmp dword [ebp - 0x14], edi
je 0x606cc9
mov edi, dword [ebp + 0xc]
push dword [edi + 0xc]
lea esi, [ebp - 0xbc]
call fcn.0040edee
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x14]
call fcn.004a72fd
add eax, dword [ebp - 0x1c]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x606b1a
mov ecx, dword [ebp - 0x60]
test ecx, ecx
je 0x606b8d
mov edx, dword [ebx]
xor eax, eax
add dword [ebp - 0x1c], ecx
push eax
push dword [ebp - 0x54]
adc dword [ebp - 0x18], eax
add dword [ebx + 0x18], ecx
push dword [ebp - 0x18]
adc dword [ebx + 0x1c], eax
add dword [ebx + 0x28], ecx
push dword [ebp - 0x1c]
mov ecx, ebx
adc dword [ebx + 0x2c], eax
call dword [edx + 4]
xor edi, edi
jmp 0x606a5e
cmp dword [ebp + 0x14], 0
je 0x606b62
cmp dword [ebp - 0x30], 8
mov esi, dword [ebp - 0x44]
jae 0x606b2c
lea esi, [ebp - 0x44]
xor eax, eax
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push esi
push str.INTERNET_READ_FILE_ERROR
push ecx
call fcn.0040171c
pop ecx
mov esi, eax
call fcn.0060d9f6
mov ecx, dword [ebp + 0x14]
push eax
push 2
pop esi
call fcn.004150a0
add esp, 0x1c
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp dword [ebp + 8], 0
jle 0x606cd0
mov eax, dword [ebp - 0x1c]
dec dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
xor edi, edi
jmp 0x6068aa
cmp dword [ebp + 0x14], 0
je 0x606b62
cmp dword [ebp - 0x30], 8
jb 0x606b29
mov esi, dword [ebp - 0x44]
jmp 0x606b2c
cmp dword [ebp + 0x14], edi
je 0x606cd0
cmp dword [ebp - 0x80], 8
mov esi, dword [ebp - 0x94]
jae 0x606bb9
lea esi, [ebp - 0x94]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push esi
push str.INTERNET_CONNECT_ERROR
push ecx
call fcn.0040171c
pop ecx
mov esi, eax
call fcn.0060d9f6
mov ecx, dword [ebp + 0x14]
push eax
push 2
pop esi
call fcn.004150a0
add esp, 0xc
jmp 0x606cd0
cmp dword [ebp + 0x14], edi
je 0x606cd0
cmp dword [ebp - 0x30], 8
mov esi, dword [ebp - 0x44]
jae 0x606bfd
lea esi, [ebp - 0x44]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push esi
push str.HTTP_OPEN_REQUEST_ERROR
jmp 0x606bc6
cmp dword [ebp + 0x14], edi
je 0x606cd0
cmp dword [ebp - 0x30], 8
mov esi, dword [ebp - 0x44]
jae 0x606c21
lea esi, [ebp - 0x44]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push esi
push str.HTTP_SEND_REQUEST_ERROR
jmp 0x606bc6
cmp dword [ebp + 0x14], edi
je 0x606cd0
cmp dword [ebp - 0x30], 8
mov esi, dword [ebp - 0x44]
jae 0x606c45
lea esi, [ebp - 0x44]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push esi
push str.HTTP_QUERY_STATUS_CODE_ERROR
jmp 0x606bc6
cmp dword [ebp + 0x14], edi
je 0x606cd0
cmp dword [ebp - 0x30], 8
mov esi, dword [ebp - 0x44]
jae 0x606c68
lea esi, [ebp - 0x44]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push esi
push str.HTTP_QUERY_STATUS_NOT_OK
call fcn.0040171c
mov esi, eax
call fcn.0060d9f6
push eax
mov ecx, dword [ebp + 0x14]
push 2
pop esi
call fcn.004150a0
add esp, 0x10
jmp 0x606cd0
cmp dword [ebp + 0x14], edi
je 0x606cd0
cmp dword [ebp - 0x30], 8
mov esi, dword [ebp - 0x44]
jae 0x606ca6
lea esi, [ebp - 0x44]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push esi
push str.HTTP_QUERY_CONTENT_LENGTH_ERROR
push ecx
call fcn.0040171c
pop ecx
mov esi, eax
call fcn.0060d9f6
push eax
push str._s__path_s__error_d_
jmp 0x606c85
mov dword [ebp - 0x58], 1
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x606ce0
push dword [ebp + 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x20], edi
je 0x606cee
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x5c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [ebp - 0x58]
cmp esi, edi
jne 0x606d16
mov eax, dword [ebp - 0x74]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x70]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0x78]
mov dword [ebx + 0x2c], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x160]
cmp dword [ebp - 0x164], eax
je 0x606d34
push dword [ebp - 0x164]
call fcn.005a6b81
pop ecx
mov byte [ebp - 4], 2
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.00401c85
mov byte [ebp - 4], 1
push edi
push 1
lea ecx, [ebp - 0x98]
call fcn.00401c85
jmp 0x606700