Function at 0x60e1ee
Capabilities:
Check http status code
Connect to http server
Create http request
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request

Disassembly:
mov eax, 0x61ed69
call fcn.0060ebd0
mov eax, 0x102cc
call fcn.005acc70
push ebx
push esi
xor ebx, ebx
test byte [0x7234c0], 1
push edi
mov edi, 0x686bd0
jne 0x60e234
or dword [0x7234c0], 1
mov dword [ebp - 4], ebx
push edi
call fcn.005a659d
mov esi, eax
pop ecx
mov dword [0x7234bc], esi
or dword [ebp - 4], 0xffffffff
jmp 0x60e23a
mov esi, dword [0x7234bc]
mov ecx, dword [ebp + 0xc]
push esi
push ebx
push edi
call fcn.00405fcb
cmp eax, ebx
jl 0x60e24d
add esi, eax
jmp 0x60e24f
xor esi, esi
mov ecx, dword [ebp + 0xc]
push esi
push ebx
lea eax, [ebp - 0x7c]
push eax
call fcn.00401926
mov dword [ebp - 4], 1
cmp esi, ebx
jle 0x60e2dd
cmp dword [ebp - 0x64], 8
mov eax, dword [ebp - 0x78]
jae 0x60e274
lea eax, [ebp - 0x78]
push esi
mov edi, 0x686bc0
push edi
push eax
call fcn.005a9c32
add esp, 0xc
test eax, eax
je 0x60e2dd
cmp dword [ebp + 0x10], ebx
je 0x60e2bd
cmp dword [ebp - 0x64], 8
mov eax, dword [ebp - 0x78]
jae 0x60e299
lea eax, [ebp - 0x78]
push edi
push eax
push str.CHECK_PROTOCOL_ERROR
push ecx
call fcn.0040171c
pop ecx
mov esi, eax
call fcn.0060d9f6
mov ecx, dword [ebp + 0x10]
push eax
push 2
pop esi
call fcn.004150a0
add esp, 0xc
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x7c]
call fcn.00401c85
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
push 7
pop edi
push ebx
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x48], edi
call fcn.0040209b
mov byte [ebp - 4], 2
push ebx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x24], edi
call fcn.0040209b
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 0xc]
push 1
push esi
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x2f
call fcn.00405fcb
mov ecx, dword [ebp + 0xc]
mov edi, eax
cmp edi, ebx
jle 0x60e36c
sub eax, esi
push eax
push esi
lea eax, [ebp - 0x98]
push eax
call fcn.00401926
mov byte [ebp - 4], 4
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x60]
call fcn.00401b58
mov byte [ebp - 4], 3
push ebx
push 1
lea ecx, [ebp - 0x98]
call fcn.00401c85
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x98]
push eax
call fcn.00401926
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3c]
jmp 0x60e382
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x98]
push eax
call fcn.00401926
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x60]
push 0xffffffffffffffff
push ebx
push eax
call fcn.00401b58
mov byte [ebp - 4], 3
push ebx
push 1
lea ecx, [ebp - 0x98]
call fcn.00401c85
push ebx
push ebx
push ebx
push 1
push str.YmirPatcherv1.8.2
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x60e402
cmp dword [ebp + 0x10], ebx
je 0x60e3df
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 + 0x10]
push eax
push 2
pop esi
call fcn.004150a0
pop ecx
pop ecx
mov byte [ebp - 4], 2
push ebx
push 1
lea ecx, [ebp - 0x3c]
call fcn.00401c85
mov byte [ebp - 4], 1
push ebx
push 1
lea ecx, [ebp - 0x60]
call fcn.00401c85
jmp 0x60e2bd
mov eax, dword [ebp - 0x5c]
push 8
pop edi
cmp dword [ebp - 0x48], edi
jae 0x60e410
lea eax, [ebp - 0x5c]
push ebx
push ebx
push 3
push ebx
push ebx
push 0x50
push eax
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x44], eax
cmp eax, ebx
jne 0x60e468
cmp dword [ebp + 0x10], ebx
je 0x60e3df
mov esi, dword [ebp - 0x5c]
cmp dword [ebp - 0x48], edi
jae 0x60e439
lea esi, [ebp - 0x5c]
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 + 0x10]
push eax
push 2
pop esi
call fcn.004150a0
add esp, 0xc
jmp 0x60e3df
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x24], edi
jae 0x60e473
lea eax, [ebp - 0x38]
push ebx
push SysReAllocString
push ebx
push ebx
push str.HTTP_1.0
push eax
push 0x686c94
push dword [ebp - 0x44]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, ebx
jne 0x60e4bb
cmp dword [ebp + 0x10], ebx
je 0x60e3df
mov esi, dword [ebp - 0x38]
cmp dword [ebp - 0x24], edi
jae 0x60e4ac
lea esi, [ebp - 0x38]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push esi
push str.HTTP_OPEN_REQUEST_ERROR
jmp 0x60e446
push 0x200
lea eax, [ebp - 0x2d8]
push ebx
push eax
call fcn.005a90b0
add esp, 0xc
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2d8]
push eax
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x60e50b
cmp dword [ebp + 0x10], ebx
je 0x60e3df
mov esi, dword [ebp - 0x38]
cmp dword [ebp - 0x24], edi
jae 0x60e4f9
lea esi, [ebp - 0x38]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push esi
push str.HTTP_SEND_REQUEST_ERROR
jmp 0x60e446
push 0x40
pop edi
push edi
lea eax, [ebp - 0xd8]
push ebx
push eax
call fcn.005a90b0
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xd8]
push eax
push 0x13
push esi
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ebx
call esi
test eax, eax
jne 0x60e56a
cmp dword [ebp + 0x10], ebx
je 0x60e3df
cmp dword [ebp - 0x24], 8
mov esi, dword [ebp - 0x38]
jae 0x60e558
lea esi, [ebp - 0x38]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push esi
push str.HTTP_QUERY_STATUS_CODE_ERROR
jmp 0x60e446
lea eax, [ebp - 0xd8]
push eax
call fcn.005a9b11
pop ecx
cmp eax, 0xc8
je 0x60e5c1
cmp dword [ebp + 0x10], ebx
je 0x60e3df
cmp dword [ebp - 0x24], 8
mov esi, dword [ebp - 0x38]
jae 0x60e593
lea esi, [ebp - 0x38]
push eax
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 + 0x10]
push 2
pop esi
call fcn.004150a0
add esp, 0x10
jmp 0x60e3df
push edi
lea eax, [ebp - 0xd8]
push ebx
push eax
call fcn.005a90b0
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xd8]
push eax
push 5
push dword [ebp - 0x1c]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ebx
call esi
test eax, eax
jne 0x60e62a
cmp dword [ebp + 0x10], ebx
je 0x60e3df
cmp dword [ebp - 0x24], 8
mov esi, dword [ebp - 0x38]
jae 0x60e607
lea esi, [ebp - 0x38]
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 0x60e5ae
lea eax, [ebp - 0xd8]
push eax
call fcn.005a9b27
pop ecx
mov ecx, dword [ebp + 8]
push eax
mov dword [ebp - 0x18], eax
call fcn.00406341
push dword [ebp + 8]
call fcn.004062fb
mov esi, dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
xor edi, edi
jmp 0x60e69a
mov eax, 0x10000
cmp dword [ebp - 0x40], eax
jae 0x60e662
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x14]
push ecx
push eax
lea eax, [ebp - 0x102d8]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x60e6c4
cmp dword [ebp - 0x14], ebx
je 0x60e6a9
push dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x102d8]
push eax
call fcn.00404cbf
add edi, dword [ebp - 0x14]
cmp edi, dword [ebp - 0x18]
jae 0x60e6a9
push ebx
push ebx
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x1c]
call esi
test eax, eax
jne 0x60e655
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x44]
call esi
push dword [ebp - 0x20]
call esi
mov byte [ebp - 0xd], 1
jmp 0x60e706
cmp dword [ebp + 0x10], ebx
je 0x60e703
cmp dword [ebp - 0x24], 8
mov esi, dword [ebp - 0x38]
jae 0x60e6d5
lea esi, [ebp - 0x38]
push dword [ebp - 0x18]
push edi
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 + 0x10]
push eax
push 2
pop esi
call fcn.004150a0
add esp, 0x14
mov byte [ebp - 0xd], bl
mov byte [ebp - 4], 2
push ebx
push 1
lea ecx, [ebp - 0x3c]
call fcn.00401c85
mov byte [ebp - 4], 1
push ebx
push 1
lea ecx, [ebp - 0x60]
call fcn.00401c85
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x7c]
call fcn.00401c85
mov al, byte [ebp - 0xd]
jmp 0x60e2ce