Function at 0x495f00
Capabilities:
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
lea ebp, [esp - 0x44]
sub esp, 0xb4
mov eax, dword [0x4ce724]
xor eax, ebp
mov dword [ebp + 0x40], eax
mov eax, dword [ebp + 0x58]
mov edx, dword [ebp + 0x68]
mov ecx, dword [ebp + 0x64]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x6c]
mov dword [ebp - 0x64], edx
mov edx, dword [ebp + 0x74]
mov dword [eax], 0
mov dword [ebp - 0x60], ecx
mov ecx, dword [ebp + 0x70]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp + 0x78]
push ebx
mov ebx, dword [ebp + 0x60]
mov dword [ecx], 0
push esi
mov esi, dword [ebp + 0x50]
mov dword [eax], 0
mov eax, dword [ebp + 0x4c]
push edi
mov edi, dword [ebp + 0x54]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x70], edx
test eax, eax
je 0x495fa6
mov ecx, 0x4c61e4
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x495f96
test dx, dx
je 0x495f92
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x495f96
add eax, 4
add ecx, 4
test dx, dx
jne 0x495f70
xor eax, eax
jmp 0x495f9b
sbb eax, eax
sbb eax, 0xffffffff
mov dword [ebp - 0x48], 0
test eax, eax
jne 0x495fad
mov dword [ebp - 0x48], 1
mov ecx, dword [ebp - 0x60]
push 3
push ecx
mov ecx, dword [ebp + 0x5c]
xor eax, eax
push ebx
lea edx, [ebp - 0x5c]
push edx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
push ecx
push edi
push esi
call fcn.00495d70
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x64]
add esp, 0x20
lea ecx, [eax + 1]
jmp 0x495fe0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x495fe0
sub eax, ecx
cmp dword [ebp - 0x44], 0
mov dword [ebp - 0x6c], eax
jne 0x49630e
cmp dword [ebp - 0x48], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x4960da
mov ebx, dword [ebp - 0x54]
mov eax, ebx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x496010
mov esi, dword [ebp - 0x6c]
sub eax, edx
lea edx, [eax + esi + 0xa]
mov eax, ebx
cmp edx, 0x400
lea edx, [eax + 1]
ja 0x496053
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x496030
sub eax, edx
lea eax, [eax + esi + 0xa]
call fcn.0046d9c0
mov esi, esp
test esi, esi
je 0x49607c
mov dword [esi], 0xcccc
add esi, 8
jmp 0x496078
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x496053
sub eax, edx
lea eax, [eax + esi + 0xa]
push eax
call fcn.00468977
add esp, 4
test eax, eax
je 0x496076
mov dword [eax], 0xdddd
add eax, 8
mov esi, eax
test esi, esi
jne 0x496088
mov dword [ebp - 0x44], 8
jmp 0x49630e
mov ecx, dword [ebp - 0x64]
push ecx
push ebx
push str._s__s
push esi
call fcn.0046a462
mov edx, dword [ebp - 0x5c]
add esp, 0x10
push 0
push 0x84400100
push 0
push 0
push 0
push esi
push 0x4c61d8
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
test ebx, ebx
jne 0x4960c3
call edi
mov dword [ebp - 0x44], eax
cmp dword [esi - 8], 0xdddd
lea eax, [esi - 8]
jne 0x496105
push eax
call fcn.00468a41
add esp, 4
jmp 0x496105
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x5c]
push 0
push 0x84400100
push 0
push 0
push 0
push eax
push str.POST
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
test ebx, ebx
jne 0x49610f
call edi
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x496303
mov esi, dword [ebp - 0x70]
push esi
mov dword [ebp - 0x60], 0
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x496129
mov dword [ebp - 0x54], esi
jmp 0x496132
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 0x54], eax
xor edi, edi
cmp dword [ebp - 0x48], edi
jne 0x496163
lea edx, [ebp - 0x40]
push str.436F6E74656E742D547970653A206170706C69636174696F6E2F782D7777772D666F726D2D75726C656E636F646564
push edx
call fcn.004958e0
mov eax, str.436F6E74656E742D547970653A206170706C69636174696F6E2F782D7777772D666F726D2D75726C656E636F646564
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x496152
sub eax, edx
shr eax, 1
mov edi, eax
mov byte [ebp + edi - 0x40], cl
mov esi, dword [ebp - 0x44]
cmp dword [ebp - 0x48], 0
je 0x49617d
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
jmp 0x496191
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x64]
push eax
push ecx
push edi
lea edx, [ebp - 0x40]
push edx
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x49619d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x4961b3
mov eax, dword [ebp - 0x54]
push esi
push 7
push esi
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0x2f00
jne 0x4961c8
test esi, esi
je 0x496166
mov dword [ebp - 0x44], esi
jmp 0x496303
mov dword [ebp - 0x44], esi
test esi, esi
jne 0x496303
lea ecx, [ebp - 0x44]
push ecx
push ebx
call fcn.00495de0
mov edx, dword [ebp - 0x58]
add esp, 8
mov dword [edx], eax
cmp dword [ebp - 0x44], esi
jne 0x496303
cmp eax, 0x12c
jae 0x496303
lea eax, [ebp - 0x44]
push eax
push ebx
call fcn.00495e70
mov edi, eax
mov eax, dword [ebp - 0x44]
add esp, 8
test eax, eax
jne 0x496235
test edi, edi
jbe 0x49623e
lea ecx, [edi + 1]
push ecx
call fcn.00468977
mov edx, dword [ebp - 0x50]
add esp, 4
mov dword [edx], eax
test eax, eax
je 0x49637e
mov dword [eax], esi
mov eax, dword [ebp - 0x4c]
mov dword [eax], edi
jmp 0x49623e
cmp eax, 8
je 0x4962ed
xor esi, esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x58], esi
push 0
push 0
lea ecx, [ebp - 0x48]
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x496344
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x496344
test edi, edi
jne 0x49629c
test esi, esi
jne 0x496281
inc ecx
push ecx
call fcn.00468977
mov edx, dword [ebp - 0x50]
add esp, 4
mov dword [edx], eax
jmp 0x496299
lea eax, [ecx + esi + 1]
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx]
push eax
push edx
call fcn.0046eba4
mov ecx, dword [ebp - 0x50]
add esp, 8
mov dword [ecx], eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x50]
mov eax, dword [edx]
test eax, eax
je 0x496379
lea edx, [ebp - 0x58]
push edx
push ecx
add eax, esi
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x496366
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x496366
add esi, eax
test edi, edi
jne 0x496246
cmp esi, 0xffff
jbe 0x496246
mov eax, dword [ebp - 0x4c]
mov dword [eax], esi
mov dword [ebp - 0x44], 0x7a
mov ecx, dword [ebp - 0x50]
mov ecx, dword [ecx]
test ecx, ecx
je 0x496303
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx]
test eax, eax
jbe 0x496303
mov byte [eax + ecx], 0
test ebx, ebx
je 0x49630e
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x49631c
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x49632a
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x44]
lea esp, [ebp - 0x7c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x40]
xor ecx, ebp
call fcn.00467d4f
add ebp, 0x44
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x4c]
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x44], eax
cmp eax, 0x12
je 0x49635d
cmp dword [ebp - 0x48], 0
jne 0x4962ed
mov dword [ebp - 0x44], 0
jmp 0x4962ed
mov ecx, dword [ebp - 0x4c]
mov dword [ecx], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x44], eax
jmp 0x4962ed
mov edx, dword [ebp - 0x4c]
mov dword [edx], esi
mov dword [ebp - 0x44], 8
jmp 0x4962ed