Function at 0x495960
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 [0x4cd724]
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 0x495a06
mov ecx, 0x4c4f94
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4959f6
test dx, dx
je 0x4959f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4959f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4959d0
xor eax, eax
jmp 0x4959fb
sbb eax, eax
sbb eax, 0xffffffff
mov dword [ebp - 0x48], 0
test eax, eax
jne 0x495a0d
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.004957d0
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x64]
add esp, 0x20
lea ecx, [eax + 1]
jmp 0x495a40
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x495a40
sub eax, ecx
cmp dword [ebp - 0x44], 0
mov dword [ebp - 0x6c], eax
jne 0x495d6e
cmp dword [ebp - 0x48], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x495b3a
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 0x495a70
mov esi, dword [ebp - 0x6c]
sub eax, edx
lea edx, [eax + esi + 0xa]
mov eax, ebx
cmp edx, 0x400
lea edx, [eax + 1]
ja 0x495ab3
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x495a90
sub eax, edx
lea eax, [eax + esi + 0xa]
call fcn.0046d420
mov esi, esp
test esi, esi
je 0x495adc
mov dword [esi], 0xcccc
add esi, 8
jmp 0x495ad8
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x495ab3
sub eax, edx
lea eax, [eax + esi + 0xa]
push eax
call fcn.004683d7
add esp, 4
test eax, eax
je 0x495ad6
mov dword [eax], 0xdddd
add eax, 8
mov esi, eax
test esi, esi
jne 0x495ae8
mov dword [ebp - 0x44], 8
jmp 0x495d6e
mov ecx, dword [ebp - 0x64]
push ecx
push ebx
push str._s__s
push esi
call fcn.00469ec2
mov edx, dword [ebp - 0x5c]
add esp, 0x10
push 0
push 0x84400100
push 0
push 0
push 0
push esi
push 0x4c4f88
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
test ebx, ebx
jne 0x495b23
call edi
mov dword [ebp - 0x44], eax
cmp dword [esi - 8], 0xdddd
lea eax, [esi - 8]
jne 0x495b65
push eax
call fcn.004684a1
add esp, 4
jmp 0x495b65
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 0x495b6f
call edi
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x495d63
mov esi, dword [ebp - 0x70]
push esi
mov dword [ebp - 0x60], 0
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x495b89
mov dword [ebp - 0x54], esi
jmp 0x495b92
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 0x54], eax
xor edi, edi
cmp dword [ebp - 0x48], edi
jne 0x495bc3
lea edx, [ebp - 0x40]
push str.436F6E74656E742D547970653A206170706C69636174696F6E2F782D7777772D666F726D2D75726C656E636F646564
push edx
call fcn.00495340
mov eax, str.436F6E74656E742D547970653A206170706C69636174696F6E2F782D7777772D666F726D2D75726C656E636F646564
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x495bb2
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 0x495bdd
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
jmp 0x495bf1
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 0x495bfd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x495c13
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 0x495c28
test esi, esi
je 0x495bc6
mov dword [ebp - 0x44], esi
jmp 0x495d63
mov dword [ebp - 0x44], esi
test esi, esi
jne 0x495d63
lea ecx, [ebp - 0x44]
push ecx
push ebx
call fcn.00495840
mov edx, dword [ebp - 0x58]
add esp, 8
mov dword [edx], eax
cmp dword [ebp - 0x44], esi
jne 0x495d63
cmp eax, 0x12c
jae 0x495d63
lea eax, [ebp - 0x44]
push eax
push ebx
call fcn.004958d0
mov edi, eax
mov eax, dword [ebp - 0x44]
add esp, 8
test eax, eax
jne 0x495c95
test edi, edi
jbe 0x495c9e
lea ecx, [edi + 1]
push ecx
call fcn.004683d7
mov edx, dword [ebp - 0x50]
add esp, 4
mov dword [edx], eax
test eax, eax
je 0x495dde
mov dword [eax], esi
mov eax, dword [ebp - 0x4c]
mov dword [eax], edi
jmp 0x495c9e
cmp eax, 8
je 0x495d4d
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 0x495da4
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x495da4
test edi, edi
jne 0x495cfc
test esi, esi
jne 0x495ce1
inc ecx
push ecx
call fcn.004683d7
mov edx, dword [ebp - 0x50]
add esp, 4
mov dword [edx], eax
jmp 0x495cf9
lea eax, [ecx + esi + 1]
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx]
push eax
push edx
call fcn.0046e604
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 0x495dd9
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 0x495dc6
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x495dc6
add esi, eax
test edi, edi
jne 0x495ca6
cmp esi, 0xffff
jbe 0x495ca6
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 0x495d63
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx]
test eax, eax
jbe 0x495d63
mov byte [eax + ecx], 0
test ebx, ebx
je 0x495d6e
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x495d7c
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x495d8a
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.004677af
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 0x495dbd
cmp dword [ebp - 0x48], 0
jne 0x495d4d
mov dword [ebp - 0x44], 0
jmp 0x495d4d
mov ecx, dword [ebp - 0x4c]
mov dword [ecx], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x44], eax
jmp 0x495d4d
mov edx, dword [ebp - 0x4c]
mov dword [edx], esi
mov dword [ebp - 0x44], 8
jmp 0x495d4d