Function at 0x4092e7
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, 0x62d569
call fcn.0060aa10
mov eax, 0x102cc
call fcn.005b9360
push ebx
push esi
xor ebx, ebx
test byte [0x71deac], 1
push edi
mov edi, 0x681a58
jne 0x40932d
or dword [0x71deac], 1
mov dword [ebp - 4], ebx
push edi
call fcn.005b30d0
mov esi, eax
pop ecx
mov dword [0x71dea8], esi
or dword [ebp - 4], 0xffffffff
jmp 0x409333
mov esi, dword [0x71dea8]
mov ecx, dword [ebp + 0xc]
push esi
push ebx
push edi
call fcn.00408bb8
cmp eax, ebx
jl 0x409346
add esi, eax
jmp 0x409348
xor esi, esi
mov ecx, dword [ebp + 0xc]
push esi
push ebx
lea eax, [ebp - 0x7c]
push eax
call fcn.004023d3
mov dword [ebp - 4], 1
cmp esi, ebx
jle 0x4093d6
cmp dword [ebp - 0x64], 8
mov eax, dword [ebp - 0x78]
jae 0x40936d
lea eax, [ebp - 0x78]
push esi
mov edi, 0x681a48
push edi
push eax
call fcn.005b6431
add esp, 0xc
test eax, eax
je 0x4093d6
cmp dword [ebp + 0x10], ebx
je 0x4093b6
cmp dword [ebp - 0x64], 8
mov eax, dword [ebp - 0x78]
jae 0x409392
lea eax, [ebp - 0x78]
push edi
push eax
push str.CHECK_PROTOCOL_ERROR
push ecx
call fcn.004031f6
pop ecx
mov esi, eax
call fcn.004057ed
mov ecx, dword [ebp + 0x10]
push eax
push 2
pop esi
call fcn.00422740
add esp, 0xc
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x7c]
call fcn.00403747
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.0040382e
mov byte [ebp - 4], 2
push ebx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x24], edi
call fcn.0040382e
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.00408bb8
mov ecx, dword [ebp + 0xc]
mov edi, eax
cmp edi, ebx
jle 0x409465
sub eax, esi
push eax
push esi
lea eax, [ebp - 0x98]
push eax
call fcn.004023d3
mov byte [ebp - 4], 4
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x60]
call fcn.0040384c
mov byte [ebp - 4], 3
push ebx
push 1
lea ecx, [ebp - 0x98]
call fcn.00403747
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x98]
push eax
call fcn.004023d3
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3c]
jmp 0x40947b
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x98]
push eax
call fcn.004023d3
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x60]
push 0xffffffffffffffff
push ebx
push eax
call fcn.0040384c
mov byte [ebp - 4], 3
push ebx
push 1
lea ecx, [ebp - 0x98]
call fcn.00403747
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 0x4094fb
cmp dword [ebp + 0x10], ebx
je 0x4094d8
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 + 0x10]
push eax
push 2
pop esi
call fcn.00422740
pop ecx
pop ecx
mov byte [ebp - 4], 2
push ebx
push 1
lea ecx, [ebp - 0x3c]
call fcn.00403747
mov byte [ebp - 4], 1
push ebx
push 1
lea ecx, [ebp - 0x60]
call fcn.00403747
jmp 0x4093b6
mov eax, dword [ebp - 0x5c]
push 8
pop edi
cmp dword [ebp - 0x48], edi
jae 0x409509
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 0x409561
cmp dword [ebp + 0x10], ebx
je 0x4094d8
mov esi, dword [ebp - 0x5c]
cmp dword [ebp - 0x48], edi
jae 0x409532
lea esi, [ebp - 0x5c]
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 + 0x10]
push eax
push 2
pop esi
call fcn.00422740
add esp, 0xc
jmp 0x4094d8
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x24], edi
jae 0x40956c
lea eax, [ebp - 0x38]
push ebx
push SysReAllocString
push ebx
push ebx
push str.HTTP_1.0
push eax
push 0x681b1c
push dword [ebp - 0x44]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, ebx
jne 0x4095b4
cmp dword [ebp + 0x10], ebx
je 0x4094d8
mov esi, dword [ebp - 0x38]
cmp dword [ebp - 0x24], edi
jae 0x4095a5
lea esi, [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.HTTP_OPEN_REQUEST_ERROR
jmp 0x40953f
push 0x200
lea eax, [ebp - 0x2d8]
push ebx
push eax
call fcn.005b57c0
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 0x409604
cmp dword [ebp + 0x10], ebx
je 0x4094d8
mov esi, dword [ebp - 0x38]
cmp dword [ebp - 0x24], edi
jae 0x4095f2
lea esi, [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.HTTP_SEND_REQUEST_ERROR
jmp 0x40953f
push 0x40
pop edi
push edi
lea eax, [ebp - 0xd8]
push ebx
push eax
call fcn.005b57c0
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 0x409663
cmp dword [ebp + 0x10], ebx
je 0x4094d8
cmp dword [ebp - 0x24], 8
mov esi, dword [ebp - 0x38]
jae 0x409651
lea esi, [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.HTTP_QUERY_STATUS_CODE_ERROR
jmp 0x40953f
lea eax, [ebp - 0xd8]
push eax
call fcn.005b64d7
pop ecx
cmp eax, 0xc8
je 0x4096ba
cmp dword [ebp + 0x10], ebx
je 0x4094d8
cmp dword [ebp - 0x24], 8
mov esi, dword [ebp - 0x38]
jae 0x40968c
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.004031f6
mov esi, eax
call fcn.004057ed
push eax
mov ecx, dword [ebp + 0x10]
push 2
pop esi
call fcn.00422740
add esp, 0x10
jmp 0x4094d8
push edi
lea eax, [ebp - 0xd8]
push ebx
push eax
call fcn.005b57c0
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 0x409723
cmp dword [ebp + 0x10], ebx
je 0x4094d8
cmp dword [ebp - 0x24], 8
mov esi, dword [ebp - 0x38]
jae 0x409700
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.004031f6
pop ecx
mov esi, eax
call fcn.004057ed
push eax
push str._s__path_s__error_d_
jmp 0x4096a7
lea eax, [ebp - 0xd8]
push eax
call fcn.005b64ed
pop ecx
mov ecx, dword [ebp + 8]
push eax
mov dword [ebp - 0x18], eax
call fcn.0040987a
push dword [ebp + 8]
call fcn.00409834
mov esi, dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
xor edi, edi
jmp 0x409793
mov eax, 0x10000
cmp dword [ebp - 0x40], eax
jae 0x40975b
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 0x4097bd
cmp dword [ebp - 0x14], ebx
je 0x4097a2
push dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x102d8]
push eax
call fcn.00407924
add edi, dword [ebp - 0x14]
cmp edi, dword [ebp - 0x18]
jae 0x4097a2
push ebx
push ebx
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x1c]
call esi
test eax, eax
jne 0x40974e
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 0x4097ff
cmp dword [ebp + 0x10], ebx
je 0x4097fc
cmp dword [ebp - 0x24], 8
mov esi, dword [ebp - 0x38]
jae 0x4097ce
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.004031f6
pop ecx
mov esi, eax
call fcn.004057ed
mov ecx, dword [ebp + 0x10]
push eax
push 2
pop esi
call fcn.00422740
add esp, 0x14
mov byte [ebp - 0xd], bl
mov byte [ebp - 4], 2
push ebx
push 1
lea ecx, [ebp - 0x3c]
call fcn.00403747
mov byte [ebp - 4], 1
push ebx
push 1
lea ecx, [ebp - 0x60]
call fcn.00403747
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x7c]
call fcn.00403747
mov al, byte [ebp - 0xd]
jmp 0x4093c7