Function at 0x4109eb
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, 0x62fd99
call fcn.0060d220
sub esp, 0x398
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
test byte [0x72007c], 1
jne 0x410a2f
or dword [0x72007c], 1
mov dword [ebp - 4], edi
push 0x683b50
call fcn.005b5201
mov esi, eax
pop ecx
mov dword [0x720078], esi
or dword [ebp - 4], 0xffffffff
jmp 0x410a35
mov esi, dword [0x720078]
mov ecx, dword [ebp + 0x10]
push esi
push edi
push 0x683b50
call fcn.00408711
cmp eax, edi
jl 0x410a4c
add esi, eax
jmp 0x410a4e
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.004116d5
mov ecx, dword [ebp + 0x10]
push esi
push edi
lea eax, [ebp - 0xb4]
push eax
call fcn.00401fff
mov dword [ebp - 4], 1
cmp esi, edi
jle 0x410b26
cmp dword [ebp - 0x9c], 8
mov eax, dword [ebp - 0xb0]
jae 0x410aa9
lea eax, [ebp - 0xb0]
push esi
push 0x683b40
push eax
call fcn.00420fa0
add esp, 0xc
test eax, eax
je 0x410b26
cmp dword [ebp + 0x14], edi
je 0x410afe
cmp dword [ebp - 0x9c], 8
mov eax, dword [ebp - 0xb0]
jae 0x410ad6
lea eax, [ebp - 0xb0]
push 0x683b40
push eax
push str.CHECK_PROTOCOL_ERROR
push ecx
call fcn.00402e56
pop ecx
mov esi, eax
call fcn.00405362
mov ecx, dword [ebp + 0x14]
push eax
push 2
pop esi
call fcn.00422620
add esp, 0xc
or esi, 0xffffffff
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0xb4]
call fcn.0040337f
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.00403466
mov byte [ebp - 4], 2
push edi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], 7
call fcn.00403466
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.00408711
cmp eax, edi
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 8], eax
jle 0x410bc3
sub eax, esi
push eax
push esi
lea eax, [ebp - 0xd8]
push eax
call fcn.00401fff
mov byte [ebp - 4], 4
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x98]
call fcn.00403484
mov byte [ebp - 4], 3
push edi
push 1
lea ecx, [ebp - 0xd8]
call fcn.0040337f
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
push dword [ebp + 8]
lea eax, [ebp - 0xd8]
push eax
call fcn.00401fff
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x48]
jmp 0x410bdc
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0xd8]
push eax
call fcn.00401fff
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x98]
push 0xffffffffffffffff
push edi
push eax
call fcn.00403484
mov byte [ebp - 4], 3
push edi
push 1
lea ecx, [ebp - 0xd8]
call fcn.0040337f
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 0x410c13
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x164]
call fcn.00411710
mov byte [ebp - 4], 7
push edi
push edi
push edi
push 1
push str.YmirPatcherv2.0.1
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x5c], eax
cmp eax, edi
jne 0x410cab
cmp dword [ebp + 0x14], edi
je 0x410c65
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.INTERNET_OPEN_ERROR
call fcn.00402e56
mov esi, eax
call fcn.00405362
mov ecx, dword [ebp + 0x14]
push eax
push 2
pop esi
call fcn.00422620
pop ecx
pop ecx
mov byte [ebp - 4], 3
lea eax, [ebp - 0x160]
cmp dword [ebp - 0x164], eax
je 0x410c83
push dword [ebp - 0x164]
call fcn.005b5a6b
pop ecx
mov byte [ebp - 4], 2
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.0040337f
mov byte [ebp - 4], 1
push edi
push 1
lea ecx, [ebp - 0x98]
call fcn.0040337f
xor esi, esi
jmp 0x410b01
cmp dword [ebp + 0x10], edi
je 0x410cbc
push dword [ebp + 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp + 0x10], edi
cmp dword [ebp - 0x20], edi
je 0x410cca
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x80], 8
mov eax, dword [ebp - 0x94]
jae 0x410cdc
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 0x410f9f
mov ecx, dword [ebp - 0x164]
call fcn.004213b0
mov esi, eax
imul esi, esi, 3
inc esi
lea eax, [esi + esi + 2]
push eax
call fcn.005b57b0
pop ecx
mov ecx, dword [ebp - 0x164]
mov dword [ebp - 0x14], eax
call fcn.004213b0
cmp dword [ebp - 0x14], edi
je 0x410d34
mov edx, dword [ebp - 0x14]
push eax
push esi
mov eax, ecx
call fcn.00421a10
push edi
push 0x84000100
push edi
push edi
push str.HTTP_1.1
push dword [ebp - 0x14]
push 0x683c14
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
push dword [ebp - 0x14]
mov dword [ebp + 0x10], eax
call fcn.005b5a6b
pop ecx
cmp dword [ebp + 0x10], edi
je 0x410fe9
push 0x200
lea eax, [ebp - 0x3a4]
push edi
push eax
xor esi, esi
call fcn.005b79e0
mov eax, dword [ebp - 0x2c]
add esp, 0xc
or eax, dword [ebp - 0x28]
je 0x410da7
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.004211b0
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 0x41100d
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 0x411031
cmp dword [ebp - 0x14], 0xc8
je 0x410e03
cmp dword [ebp - 0x14], 0xce
jne 0x411058
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 0x411096
lea eax, [ebp - 0x1a4]
push eax
call fcn.005b8848
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 0x410e4b
cmp edx, esi
je 0x410e53
push dword [ebp - 0x54]
call fcn.0041180e
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 0x4110ca
jl 0x410e78
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x54]
jae 0x4110ca
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10]
test al, al
je 0x4110d1
mov eax, dword [ebp - 0x54]
sub eax, dword [ebp - 0x1c]
sbb esi, dword [ebp - 0x18]
mov dword [ebp - 0x64], esi
js 0x410ea7
jg 0x410e9e
cmp eax, 0x1000
jbe 0x410ea7
mov dword [ebp - 0x14], 0x1000
jmp 0x410eaa
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x60], edi
cmp dword [ebp - 0x14], edi
je 0x4110ca
mov edi, dword [ebp + 0xc]
push dword [edi + 0xc]
lea esi, [ebp - 0xbc]
call fcn.00484e85
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x14]
call fcn.0049297c
add eax, dword [ebp - 0x1c]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x410f1b
mov ecx, dword [ebp - 0x60]
test ecx, ecx
je 0x410f8e
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 0x410e5f
cmp dword [ebp + 0x14], 0
je 0x410f63
cmp dword [ebp - 0x30], 8
mov esi, dword [ebp - 0x44]
jae 0x410f2d
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.00402e56
pop ecx
mov esi, eax
call fcn.00405362
mov ecx, dword [ebp + 0x14]
push eax
push 2
pop esi
call fcn.00422620
add esp, 0x1c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp + 8], 0
jle 0x4110d1
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 0x410cab
cmp dword [ebp + 0x14], 0
je 0x410f63
cmp dword [ebp - 0x30], 8
jb 0x410f2a
mov esi, dword [ebp - 0x44]
jmp 0x410f2d
cmp dword [ebp + 0x14], edi
je 0x4110d1
cmp dword [ebp - 0x80], 8
mov esi, dword [ebp - 0x94]
jae 0x410fba
lea esi, [ebp - 0x94]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.INTERNET_CONNECT_ERROR
push ecx
call fcn.00402e56
pop ecx
mov esi, eax
call fcn.00405362
mov ecx, dword [ebp + 0x14]
push eax
push 2
pop esi
call fcn.00422620
add esp, 0xc
jmp 0x4110d1
cmp dword [ebp + 0x14], edi
je 0x4110d1
cmp dword [ebp - 0x30], 8
mov esi, dword [ebp - 0x44]
jae 0x410ffe
lea esi, [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.HTTP_OPEN_REQUEST_ERROR
jmp 0x410fc7
cmp dword [ebp + 0x14], edi
je 0x4110d1
cmp dword [ebp - 0x30], 8
mov esi, dword [ebp - 0x44]
jae 0x411022
lea esi, [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.HTTP_SEND_REQUEST_ERROR
jmp 0x410fc7
cmp dword [ebp + 0x14], edi
je 0x4110d1
cmp dword [ebp - 0x30], 8
mov esi, dword [ebp - 0x44]
jae 0x411046
lea esi, [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.HTTP_QUERY_STATUS_CODE_ERROR
jmp 0x410fc7
cmp dword [ebp + 0x14], edi
je 0x4110d1
cmp dword [ebp - 0x30], 8
mov esi, dword [ebp - 0x44]
jae 0x411069
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.00402e56
mov esi, eax
call fcn.00405362
push eax
mov ecx, dword [ebp + 0x14]
push 2
pop esi
call fcn.00422620
add esp, 0x10
jmp 0x4110d1
cmp dword [ebp + 0x14], edi
je 0x4110d1
cmp dword [ebp - 0x30], 8
mov esi, dword [ebp - 0x44]
jae 0x4110a7
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.00402e56
pop ecx
mov esi, eax
call fcn.00405362
push eax
push str._s__path_s__error_d_
jmp 0x411086
mov dword [ebp - 0x58], 1
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x4110e1
push dword [ebp + 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x20], edi
je 0x4110ef
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 0x411117
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 0x411135
push dword [ebp - 0x164]
call fcn.005b5a6b
pop ecx
mov byte [ebp - 4], 2
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.0040337f
mov byte [ebp - 4], 1
push edi
push 1
lea ecx, [ebp - 0x98]
call fcn.0040337f
jmp 0x410b01