Function at 0x410ed1
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, 0x62d486
call fcn.0060aa10
sub esp, 0x398
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
test byte [0x71dea4], 1
jne 0x410f15
or dword [0x71dea4], 1
mov dword [ebp - 4], edi
push 0x681a58
call fcn.005b30d0
mov esi, eax
pop ecx
mov dword [0x71dea0], esi
or dword [ebp - 4], 0xffffffff
jmp 0x410f1b
mov esi, dword [0x71dea0]
mov ecx, dword [ebp + 0x10]
push esi
push edi
push 0x681a58
call fcn.00408bb8
cmp eax, edi
jl 0x410f32
add esi, eax
jmp 0x410f34
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.00411b7c
mov ecx, dword [ebp + 0x10]
push esi
push edi
lea eax, [ebp - 0xb4]
push eax
call fcn.004023d3
mov dword [ebp - 4], 1
cmp esi, edi
jle 0x41100c
cmp dword [ebp - 0x9c], 8
mov eax, dword [ebp - 0xb0]
jae 0x410f8f
lea eax, [ebp - 0xb0]
push esi
push 0x681a48
push eax
call fcn.00420ee0
add esp, 0xc
test eax, eax
je 0x41100c
cmp dword [ebp + 0x14], edi
je 0x410fe4
cmp dword [ebp - 0x9c], 8
mov eax, dword [ebp - 0xb0]
jae 0x410fbc
lea eax, [ebp - 0xb0]
push 0x681a48
push eax
push str.CHECK_PROTOCOL_ERROR
push ecx
call fcn.004031f6
pop ecx
mov esi, eax
call fcn.004057ed
mov ecx, dword [ebp + 0x14]
push eax
push 2
pop esi
call fcn.00422740
add esp, 0xc
or esi, 0xffffffff
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0xb4]
call fcn.00403747
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.0040382e
mov byte [ebp - 4], 2
push edi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], 7
call fcn.0040382e
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.00408bb8
cmp eax, edi
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 8], eax
jle 0x4110a9
sub eax, esi
push eax
push esi
lea eax, [ebp - 0xd8]
push eax
call fcn.004023d3
mov byte [ebp - 4], 4
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x98]
call fcn.0040384c
mov byte [ebp - 4], 3
push edi
push 1
lea ecx, [ebp - 0xd8]
call fcn.00403747
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
push dword [ebp + 8]
lea eax, [ebp - 0xd8]
push eax
call fcn.004023d3
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x48]
jmp 0x4110c2
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0xd8]
push eax
call fcn.004023d3
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x98]
push 0xffffffffffffffff
push edi
push eax
call fcn.0040384c
mov byte [ebp - 4], 3
push edi
push 1
lea ecx, [ebp - 0xd8]
call fcn.00403747
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 0x4110f9
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x164]
call fcn.00411bb7
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 0x411191
cmp dword [ebp + 0x14], edi
je 0x41114b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.INTERNET_OPEN_ERROR
call fcn.004031f6
mov esi, eax
call fcn.004057ed
mov ecx, dword [ebp + 0x14]
push eax
push 2
pop esi
call fcn.00422740
pop ecx
pop ecx
mov byte [ebp - 4], 3
lea eax, [ebp - 0x160]
cmp dword [ebp - 0x164], eax
je 0x411169
push dword [ebp - 0x164]
call fcn.005b3848
pop ecx
mov byte [ebp - 4], 2
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.00403747
mov byte [ebp - 4], 1
push edi
push 1
lea ecx, [ebp - 0x98]
call fcn.00403747
xor esi, esi
jmp 0x410fe7
cmp dword [ebp + 0x10], edi
je 0x4111a2
push dword [ebp + 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp + 0x10], edi
cmp dword [ebp - 0x20], edi
je 0x4111b0
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x80], 8
mov eax, dword [ebp - 0x94]
jae 0x4111c2
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 0x411485
mov ecx, dword [ebp - 0x164]
call fcn.004212f0
mov esi, eax
imul esi, esi, 3
inc esi
lea eax, [esi + esi + 2]
push eax
call fcn.005b3680
pop ecx
mov ecx, dword [ebp - 0x164]
mov dword [ebp - 0x14], eax
call fcn.004212f0
cmp dword [ebp - 0x14], edi
je 0x41121a
mov edx, dword [ebp - 0x14]
push eax
push esi
mov eax, ecx
call fcn.00421b30
push edi
push 0x84000100
push edi
push edi
push str.HTTP_1.1
push dword [ebp - 0x14]
push 0x681b1c
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
push dword [ebp - 0x14]
mov dword [ebp + 0x10], eax
call fcn.005b3848
pop ecx
cmp dword [ebp + 0x10], edi
je 0x4114cf
push 0x200
lea eax, [ebp - 0x3a4]
push edi
push eax
xor esi, esi
call fcn.005b57c0
mov eax, dword [ebp - 0x2c]
add esp, 0xc
or eax, dword [ebp - 0x28]
je 0x41128d
push dword [ebp - 0x28]
lea eax, [ebp - 0x3a4]
push dword [ebp - 0x2c]
push str.Range:_bytes_I64u__r_n
push 0x100
push eax
call fcn.004210f0
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 0x4114f3
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 0x411517
cmp dword [ebp - 0x14], 0xc8
je 0x4112e9
cmp dword [ebp - 0x14], 0xce
jne 0x41153e
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 0x41157c
lea eax, [ebp - 0x1a4]
push eax
call fcn.005b64f8
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 0x411331
cmp edx, esi
je 0x411339
push dword [ebp - 0x54]
call fcn.00411ca4
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 0x4115b0
jl 0x41135e
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x54]
jae 0x4115b0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10]
test al, al
je 0x4115b7
mov eax, dword [ebp - 0x54]
sub eax, dword [ebp - 0x1c]
sbb esi, dword [ebp - 0x18]
mov dword [ebp - 0x64], esi
js 0x41138d
jg 0x411384
cmp eax, 0x1000
jbe 0x41138d
mov dword [ebp - 0x14], 0x1000
jmp 0x411390
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x60], edi
cmp dword [ebp - 0x14], edi
je 0x4115b0
mov edi, dword [ebp + 0xc]
push dword [edi + 0xc]
lea esi, [ebp - 0xbc]
call fcn.00411f96
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x14]
call fcn.00448f0d
add eax, dword [ebp - 0x1c]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x411401
mov ecx, dword [ebp - 0x60]
test ecx, ecx
je 0x411474
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 0x411345
cmp dword [ebp + 0x14], 0
je 0x411449
cmp dword [ebp - 0x30], 8
mov esi, dword [ebp - 0x44]
jae 0x411413
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.004031f6
pop ecx
mov esi, eax
call fcn.004057ed
mov ecx, dword [ebp + 0x14]
push eax
push 2
pop esi
call fcn.00422740
add esp, 0x1c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp + 8], 0
jle 0x4115b7
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 0x411191
cmp dword [ebp + 0x14], 0
je 0x411449
cmp dword [ebp - 0x30], 8
jb 0x411410
mov esi, dword [ebp - 0x44]
jmp 0x411413
cmp dword [ebp + 0x14], edi
je 0x4115b7
cmp dword [ebp - 0x80], 8
mov esi, dword [ebp - 0x94]
jae 0x4114a0
lea esi, [ebp - 0x94]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.INTERNET_CONNECT_ERROR
push ecx
call fcn.004031f6
pop ecx
mov esi, eax
call fcn.004057ed
mov ecx, dword [ebp + 0x14]
push eax
push 2
pop esi
call fcn.00422740
add esp, 0xc
jmp 0x4115b7
cmp dword [ebp + 0x14], edi
je 0x4115b7
cmp dword [ebp - 0x30], 8
mov esi, dword [ebp - 0x44]
jae 0x4114e4
lea esi, [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.HTTP_OPEN_REQUEST_ERROR
jmp 0x4114ad
cmp dword [ebp + 0x14], edi
je 0x4115b7
cmp dword [ebp - 0x30], 8
mov esi, dword [ebp - 0x44]
jae 0x411508
lea esi, [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.HTTP_SEND_REQUEST_ERROR
jmp 0x4114ad
cmp dword [ebp + 0x14], edi
je 0x4115b7
cmp dword [ebp - 0x30], 8
mov esi, dword [ebp - 0x44]
jae 0x41152c
lea esi, [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.HTTP_QUERY_STATUS_CODE_ERROR
jmp 0x4114ad
cmp dword [ebp + 0x14], edi
je 0x4115b7
cmp dword [ebp - 0x30], 8
mov esi, dword [ebp - 0x44]
jae 0x41154f
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.004031f6
mov esi, eax
call fcn.004057ed
push eax
mov ecx, dword [ebp + 0x14]
push 2
pop esi
call fcn.00422740
add esp, 0x10
jmp 0x4115b7
cmp dword [ebp + 0x14], edi
je 0x4115b7
cmp dword [ebp - 0x30], 8
mov esi, dword [ebp - 0x44]
jae 0x41158d
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.004031f6
pop ecx
mov esi, eax
call fcn.004057ed
push eax
push str._s__path_s__error_d_
jmp 0x41156c
mov dword [ebp - 0x58], 1
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x4115c7
push dword [ebp + 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x20], edi
je 0x4115d5
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 0x4115fd
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 0x41161b
push dword [ebp - 0x164]
call fcn.005b3848
pop ecx
mov byte [ebp - 4], 2
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.00403747
mov byte [ebp - 4], 1
push edi
push 1
lea ecx, [ebp - 0x98]
call fcn.00403747
jmp 0x410fe7