Function at 0x469c10
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Get http content length
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4933f3
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x8118
call fcn.00488970
mov eax, dword [0x4ed394]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
xor ecx, ecx
mov word [ebp - 0x8068], cx
mov edi, 7
mov ecx, eax
mov dword [ebp - 0x8054], edi
mov dword [ebp - 0x8058], ebx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x469c71
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x806c]
call fcn.0040c300
mov byte [ebp - 4], 2
push 0xffffffffffffffff
xor edx, edx
push ebx
mov eax, esi
lea ecx, [ebp - 0x8034]
mov dword [ebp - 0x801c], edi
mov dword [ebp - 0x8020], ebx
mov word [ebp - 0x8030], dx
call fcn.0040bb80
xor eax, eax
mov dword [ebp - 0x8038], edi
mov dword [ebp - 0x803c], ebx
mov word [ebp - 0x804c], ax
push 0x4c5fbc
lea ebx, [eax + 3]
lea edx, [ebp - 0x8034]
mov byte [ebp - 4], 4
call fcn.0040bc30
cmp eax, 0xffffffff
je 0x469d07
push 0x4c5fbc
xor eax, eax
lea edx, [ebp - 0x8034]
call fcn.0040bc30
add eax, ebx
xor ebx, ebx
lea esi, [ebp - 0x8034]
call fcn.0040b130
mov edi, 0x2f
lea ecx, [ebp - 0x80a8]
push ecx
lea ebx, [edi - 0x2e]
xor eax, eax
lea edx, [ebp - 0x8034]
mov dword [ebp - 0x80a8], edi
call fcn.0040bc30
cmp eax, 0xffffffff
je 0x469dfe
lea edx, [ebp - 0x80a8]
push edx
xor eax, eax
lea edx, [ebp - 0x8034]
mov dword [ebp - 0x80a8], edi
call fcn.0040bc30
lea edx, [eax + 1]
lea eax, [ebp - 0x8034]
push eax
or ecx, 0xffffffff
lea esi, [ebp - 0x80d0]
call fcn.0040b1c0
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x8050]
mov byte [ebp - 4], 5
call fcn.0040bb80
mov byte [ebp - 4], 4
cmp dword [ebp - 0x80b8], 8
jb 0x469d93
mov ecx, dword [ebp - 0x80cc]
push ecx
call fcn.00479461
add esp, 4
lea edx, [ebp - 0x80a8]
push edx
mov ebx, 1
xor eax, eax
lea edx, [ebp - 0x8034]
mov dword [ebp - 0x80a8], edi
call fcn.0040bc30
lea ecx, [ebp - 0x8034]
push ecx
mov ecx, eax
xor edx, edx
lea esi, [ebp - 0x80d0]
call fcn.0040b1c0
push 0xffffffffffffffff
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x8034]
mov byte [ebp - 4], 6
call fcn.0040bb80
mov edi, 8
mov byte [ebp - 4], 4
cmp dword [ebp - 0x80b8], edi
jb 0x469e05
mov edx, dword [ebp - 0x80cc]
push edx
call fcn.00479461
add esp, 4
jmp 0x469e05
mov edi, 8
xor ebx, ebx
cmp dword [ebp - 0x8020], ebx
jne 0x469e9f
cmp dword [ebp - 0x8038], edi
jb 0x469e28
mov eax, dword [ebp - 0x804c]
push eax
call fcn.00479461
add esp, 4
xor ecx, ecx
mov esi, 7
mov dword [ebp - 0x8038], esi
mov dword [ebp - 0x803c], ebx
mov word [ebp - 0x804c], cx
cmp dword [ebp - 0x801c], edi
jb 0x469e59
mov edx, dword [ebp - 0x8030]
push edx
call fcn.00479461
add esp, 4
xor eax, eax
mov dword [ebp - 0x801c], esi
mov dword [ebp - 0x8020], ebx
mov word [ebp - 0x8030], ax
cmp dword [ebp - 0x8054], edi
jb 0x469e85
mov ecx, dword [ebp - 0x8068]
push ecx
call fcn.00479461
add esp, 4
xor edx, edx
mov dword [ebp - 0x8054], esi
mov dword [ebp - 0x8058], ebx
mov word [ebp - 0x8068], dx
jmp 0x46a651
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov dword [ebp - 0x80a8], esi
cmp esi, ebx
jne 0x469fbd
cmp dword [ebp + 0x10], ebx
je 0x469f0c
push 0x4c5fc4
lea ecx, [ebp - 0x80d0]
call fcn.0040dba0
mov ebx, 7
mov byte [ebp - 4], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x80d0]
push ecx
xor esi, esi
push esi
push esi
push esi
push eax
lea ecx, [ebp + 0x10]
call fcn.0046b7c0
cmp dword [ebp - 0x80b8], 0x10
jb 0x469f13
mov edx, dword [ebp - 0x80cc]
push edx
call fcn.00479461
add esp, 4
jmp 0x469f13
mov ebx, 7
xor esi, esi
cmp dword [ebp - 0x8038], edi
jb 0x469f2a
mov eax, dword [ebp - 0x804c]
push eax
call fcn.00479461
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x8038], ebx
mov dword [ebp - 0x803c], esi
mov word [ebp - 0x804c], cx
cmp dword [ebp - 0x801c], edi
jb 0x469f56
mov edx, dword [ebp - 0x8030]
push edx
call fcn.00479461
add esp, 4
xor eax, eax
mov dword [ebp - 0x801c], ebx
mov dword [ebp - 0x8020], esi
mov word [ebp - 0x8030], ax
cmp dword [ebp - 0x8054], edi
jb 0x469f82
mov ecx, dword [ebp - 0x8068]
push ecx
call fcn.00479461
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dword [ebp - 0x8054], ebx
mov dword [ebp - 0x8058], esi
mov word [ebp - 0x8068], dx
cmp eax, esi
je 0x46a67a
test al, 1
jne 0x46a67a
and eax, 0xfffffffe
mov eax, dword [eax]
cmp eax, esi
jmp 0x46a66a
lea eax, [ebp - 0x80e8]
push eax
lea ecx, [ebp - 0x80d8]
push ecx
push 0x32
push esi
mov dword [ebp - 0x80e8], edi
mov dword [ebp - 0x80d8], ebx
mov dword [ebp - 0x80d4], ebx
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
test eax, eax
je 0x46a00e
test byte [ebp - 0x80d8], 1
jne 0x46a00e
push edi
lea edx, [ebp - 0x80d8]
push edx
push 0x32
push esi
mov dword [ebp - 0x80d8], 1
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [ebp - 0x8030]
cmp dword [ebp - 0x801c], edi
jae 0x46a022
lea eax, [ebp - 0x8030]
push ebx
push ebx
push 3
push ebx
push ebx
push 0x50
push eax
push esi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edi, eax
xor ebx, ebx
mov dword [ebp - 0x80dc], edi
cmp edi, ebx
jne 0x46a156
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x46a08d
push 0x4c5fc4
lea ecx, [ebp - 0x80d0]
call fcn.0040dba0
mov byte [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x80d0]
push ecx
push ebx
push ebx
push ebx
push eax
lea ecx, [ebp + 0x10]
call fcn.0046b7c0
lea ecx, [ebp - 0x80d0]
call fcn.0040e180
mov eax, dword [ebp + 0x10]
mov edi, 8
cmp dword [ebp - 0x8038], edi
jb 0x46a0ac
mov edx, dword [ebp - 0x804c]
push edx
call fcn.00479461
mov eax, dword [ebp + 0x10]
add esp, 4
xor ecx, ecx
mov esi, 7
mov dword [ebp - 0x8038], esi
mov dword [ebp - 0x803c], ebx
mov word [ebp - 0x804c], cx
cmp dword [ebp - 0x801c], edi
jb 0x46a0e0
mov edx, dword [ebp - 0x8030]
push edx
call fcn.00479461
mov eax, dword [ebp + 0x10]
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x801c], esi
mov dword [ebp - 0x8020], ebx
mov word [ebp - 0x8030], cx
cmp dword [ebp - 0x8054], edi
jb 0x46a10f
mov edx, dword [ebp - 0x8068]
push edx
call fcn.00479461
mov eax, dword [ebp + 0x10]
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x8054], esi
mov dword [ebp - 0x8058], ebx
mov word [ebp - 0x8068], cx
mov dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x46a67a
test al, 1
jne 0x46a67a
and eax, 0xfffffffe
mov eax, dword [eax]
cmp eax, ebx
je 0x46a67a
push 2
lea edx, [ebp + 0x18]
push edx
mov ecx, edx
push ecx
jmp 0x46a675
push ebx
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x46a1df
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push esi
call edi
cmp dword [ebp + 0x10], ebx
je 0x46a1aa
push 0x4c5fc4
lea ecx, [ebp - 0x80d0]
call fcn.0040dba0
mov byte [ebp - 4], 9
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x80d0]
push edx
push ebx
push ebx
push ebx
push eax
lea ecx, [ebp + 0x10]
call fcn.0046b7c0
lea ecx, [ebp - 0x80d0]
call fcn.0040e180
lea esi, [ebp - 0x8050]
call fcn.00469b30
lea esi, [ebp - 0x8034]
call fcn.00469b30
lea esi, [ebp - 0x806c]
call fcn.00469b30
lea esi, [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004646b0
jmp 0x46a67a
mov dword [ebp - 0x80f0], 0x4c5fc8
mov dword [ebp - 0x80ec], ebx
cmp dword [ebp - 0x803c], ebx
jbe 0x46a210
cmp dword [ebp - 0x8038], 8
jb 0x46a208
mov eax, dword [ebp - 0x804c]
jmp 0x46a212
lea eax, [ebp - 0x804c]
jmp 0x46a212
xor eax, eax
push ebx
push 0x84400000
lea ecx, [ebp - 0x80f0]
push ecx
push ebx
push str.HTTP_1.1
push eax
push 0x4c5fe4
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x80b0], eax
cmp eax, ebx
jne 0x46a26a
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push esi
call edi
cmp dword [ebp + 0x10], ebx
je 0x46a1aa
push 0x4c5fc4
lea ecx, [ebp - 0x80d0]
call fcn.0040dba0
mov byte [ebp - 4], 0xa
jmp 0x46a186
mov eax, str.Host
lea ecx, [ebp - 0x810c]
call fcn.0040b090
push eax
mov ebx, 0x4c5fec
lea esi, [ebp - 0x8128]
mov byte [ebp - 4], 0xb
call fcn.0040d170
add esp, 4
lea ecx, [ebp - 0x8034]
push ecx
push eax
lea edi, [ebp - 0x80a4]
mov byte [ebp - 4], 0xc
call fcn.0040d230
add esp, 8
call fcn.00469b30
lea esi, [ebp - 0x810c]
mov byte [ebp - 4], 0xf
call fcn.00469b30
cmp dword [ebp - 0x808c], 8
mov eax, dword [ebp - 0x80a0]
jae 0x46a2d5
lea eax, [ebp - 0x80a0]
mov edi, dword [ebp - 0x80b0]
mov esi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
push 0x20000000
push 0xffffffffffffffff
push eax
push edi
call esi
push 0x20000000
push 0xffffffffffffffff
push str.Content_Length:_0
push edi
call esi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x46a374
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
mov edx, dword [ebp - 0x80dc]
push edx
call esi
mov eax, dword [ebp - 0x80a8]
push eax
call esi
cmp dword [ebp + 0x10], ebx
je 0x46a364
push 0x4c5fc4
lea ecx, [ebp - 0x80d0]
call fcn.0040dba0
mov byte [ebp - 4], 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x80d0]
push ecx
push ebx
push ebx
push ebx
push eax
lea ecx, [ebp + 0x10]
call fcn.0046b7c0
lea ecx, [ebp - 0x80d0]
call fcn.0040e180
lea esi, [ebp - 0x80a4]
call fcn.00469b30
jmp 0x46a1aa
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
lea edx, [ebp - 0x80e4]
push edx
lea eax, [ebp - 0x80ac]
push eax
lea ecx, [ebp - 0x80b4]
push ecx
push 0x20000013
push edi
mov dword [ebp - 0x80b4], ebx
mov dword [ebp - 0x80e0], ebx
mov dword [ebp - 0x80e4], ebx
mov dword [ebp - 0x80ac], 4
call esi
lea edx, [ebp - 0x80e4]
push edx
lea eax, [ebp - 0x80ac]
push eax
lea ecx, [ebp - 0x80e0]
push ecx
push 0x20000005
push edi
call esi
mov dword [ebp - 0x80b0], ebx
mov dword [ebp - 0x80ac], ebx
mov dword [ebp - 0x8070], 0xf
mov dword [ebp - 0x8074], ebx
mov byte [ebp - 0x8084], bl
push 0x8000
lea edx, [ebp - 0x8018]
push ebx
push edx
mov byte [ebp - 4], 0x11
call fcn.0047c520
add esp, 0xc
jmp 0x46a410
lea eax, [ebp - 0x80ac]
push eax
push 0x8000
lea ecx, [ebp - 0x8018]
push ecx
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, ebx
je 0x46a4aa
mov eax, dword [ebp - 0x80ac]
cmp eax, ebx
jbe 0x46a4ef
push eax
lea edx, [ebp - 0x8018]
push edx
lea eax, [ebp - 0x8088]
call fcn.00466170
mov eax, dword [ebp - 0x80ac]
add dword [ebp - 0x80b0], eax
cmp byte [ebp + 0xc], bl
je 0x46a410
cmp dword [ebp + 0x10], ebx
je 0x46a410
push eax
lea ecx, [ebp - 0x8018]
lea esi, [ebp - 0x810c]
call fcn.0046a950
push eax
mov eax, dword [ebp - 0x80b0]
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x80e0]
mov edx, dword [ebp - 0x80b4]
push eax
push ecx
push edx
push ebx
lea ecx, [ebp + 0x10]
call fcn.0046b7c0
mov ecx, esi
mov byte [ebp - 4], 0x11
call fcn.0040e180
jmp 0x46a410
cmp dword [ebp + 0x10], ebx
je 0x46a518
push 0x4c5fc4
lea ecx, [ebp - 0x80d0]
call fcn.0040dba0
mov byte [ebp - 4], 0x13
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x80b4]
lea ecx, [ebp - 0x80d0]
push ecx
push ebx
push ebx
push edx
push eax
lea ecx, [ebp + 0x10]
call fcn.0046b7c0
lea ecx, [ebp - 0x80d0]
call fcn.0040e180
jmp 0x46a518
cmp byte [ebp + 0xc], bl
jne 0x46a518
cmp dword [ebp + 0x10], ebx
je 0x46a518
mov ecx, dword [ebp - 0x80b4]
lea eax, [ebp - 0x8088]
push eax
mov eax, dword [ebp - 0x8074]
push eax
push eax
push ecx
push ebx
lea ecx, [ebp + 0x10]
call fcn.0046b7c0
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
mov edx, dword [ebp - 0x80dc]
push edx
call esi
mov eax, dword [ebp - 0x80a8]
push eax
call esi
cmp dword [ebp - 0x8070], 0x10
jb 0x46a54b
mov ecx, dword [ebp - 0x8084]
push ecx
call fcn.00479461
add esp, 4
mov esi, 8
mov dword [ebp - 0x8070], 0xf
mov dword [ebp - 0x8074], ebx
mov byte [ebp - 0x8084], bl
cmp dword [ebp - 0x808c], esi
jb 0x46a57d
mov edx, dword [ebp - 0x80a0]
push edx
call fcn.00479461
add esp, 4
xor eax, eax
mov edi, 7
mov dword [ebp - 0x808c], edi
mov dword [ebp - 0x8090], ebx
mov word [ebp - 0x80a0], ax
cmp dword [ebp - 0x8038], esi
jb 0x46a5ae
mov ecx, dword [ebp - 0x804c]
push ecx
call fcn.00479461
add esp, 4
xor edx, edx
mov dword [ebp - 0x8038], edi
mov dword [ebp - 0x803c], ebx
mov word [ebp - 0x804c], dx
cmp dword [ebp - 0x801c], esi
jb 0x46a5da
mov eax, dword [ebp - 0x8030]
push eax
call fcn.00479461
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x801c], edi
mov dword [ebp - 0x8020], ebx
mov word [ebp - 0x8030], cx
cmp dword [ebp - 0x8054], esi
jb 0x46a651
mov edx, dword [ebp - 0x8068]
push edx
call fcn.00479461
add esp, 4
jmp 0x46a651
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x46a67a
test al, 1
jne 0x46a67a
and eax, 0xfffffffe
mov eax, dword [eax]
cmp eax, ebx
je 0x46a67a
push 2
lea ecx, [ebp + 0x18]
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047946c
mov esp, ebp
pop ebp
ret 0x28