Function at 0x4961c0
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 0x496266
mov ecx, 0x4c6264
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x496256
test dx, dx
je 0x496252
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x496256
add eax, 4
add ecx, 4
test dx, dx
jne 0x496230
xor eax, eax
jmp 0x49625b
sbb eax, eax
sbb eax, 0xffffffff
mov dword [ebp - 0x48], 0
test eax, eax
jne 0x49626d
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.00496030
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x64]
add esp, 0x20
lea ecx, [eax + 1]
jmp 0x4962a0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4962a0
sub eax, ecx
cmp dword [ebp - 0x44], 0
mov dword [ebp - 0x6c], eax
jne 0x4965ce
cmp dword [ebp - 0x48], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x49639a
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 0x4962d0
mov esi, dword [ebp - 0x6c]
sub eax, edx
lea edx, [eax + esi + 0xa]
mov eax, ebx
cmp edx, 0x400
lea edx, [eax + 1]
ja 0x496313
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4962f0
sub eax, edx
lea eax, [eax + esi + 0xa]
call fcn.0046dc70
mov esi, esp
test esi, esi
je 0x49633c
mov dword [esi], 0xcccc
add esi, 8
jmp 0x496338
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x496313
sub eax, edx
lea eax, [eax + esi + 0xa]
push eax
call fcn.00468c27
add esp, 4
test eax, eax
je 0x496336
mov dword [eax], 0xdddd
add eax, 8
mov esi, eax
test esi, esi
jne 0x496348
mov dword [ebp - 0x44], 8
jmp 0x4965ce
mov ecx, dword [ebp - 0x64]
push ecx
push ebx
push str._s__s
push esi
call fcn.0046a712
mov edx, dword [ebp - 0x5c]
add esp, 0x10
push 0
push 0x84400100
push 0
push 0
push 0
push esi
push 0x4c6258
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
test ebx, ebx
jne 0x496383
call edi
mov dword [ebp - 0x44], eax
cmp dword [esi - 8], 0xdddd
lea eax, [esi - 8]
jne 0x4963c5
push eax
call fcn.00468cf1
add esp, 4
jmp 0x4963c5
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 0x4963cf
call edi
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x4965c3
mov esi, dword [ebp - 0x70]
push esi
mov dword [ebp - 0x60], 0
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4963e9
mov dword [ebp - 0x54], esi
jmp 0x4963f2
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 0x54], eax
xor edi, edi
cmp dword [ebp - 0x48], edi
jne 0x496423
lea edx, [ebp - 0x40]
push str.436F6E74656E742D547970653A206170706C69636174696F6E2F782D7777772D666F726D2D75726C656E636F646564
push edx
call fcn.00495ba0
mov eax, str.436F6E74656E742D547970653A206170706C69636174696F6E2F782D7777772D666F726D2D75726C656E636F646564
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x496412
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 0x49643d
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
jmp 0x496451
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 0x49645d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x496473
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 0x496488
test esi, esi
je 0x496426
mov dword [ebp - 0x44], esi
jmp 0x4965c3
mov dword [ebp - 0x44], esi
test esi, esi
jne 0x4965c3
lea ecx, [ebp - 0x44]
push ecx
push ebx
call fcn.004960a0
mov edx, dword [ebp - 0x58]
add esp, 8
mov dword [edx], eax
cmp dword [ebp - 0x44], esi
jne 0x4965c3
cmp eax, 0x12c
jae 0x4965c3
lea eax, [ebp - 0x44]
push eax
push ebx
call fcn.00496130
mov edi, eax
mov eax, dword [ebp - 0x44]
add esp, 8
test eax, eax
jne 0x4964f5
test edi, edi
jbe 0x4964fe
lea ecx, [edi + 1]
push ecx
call fcn.00468c27
mov edx, dword [ebp - 0x50]
add esp, 4
mov dword [edx], eax
test eax, eax
je 0x49663e
mov dword [eax], esi
mov eax, dword [ebp - 0x4c]
mov dword [eax], edi
jmp 0x4964fe
cmp eax, 8
je 0x4965ad
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 0x496604
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x496604
test edi, edi
jne 0x49655c
test esi, esi
jne 0x496541
inc ecx
push ecx
call fcn.00468c27
mov edx, dword [ebp - 0x50]
add esp, 4
mov dword [edx], eax
jmp 0x496559
lea eax, [ecx + esi + 1]
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx]
push eax
push edx
call fcn.0046ee54
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 0x496639
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 0x496626
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x496626
add esi, eax
test edi, edi
jne 0x496506
cmp esi, 0xffff
jbe 0x496506
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 0x4965c3
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx]
test eax, eax
jbe 0x4965c3
mov byte [eax + ecx], 0
test ebx, ebx
je 0x4965ce
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x4965dc
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x4965ea
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.00467fff
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 0x49661d
cmp dword [ebp - 0x48], 0
jne 0x4965ad
mov dword [ebp - 0x44], 0
jmp 0x4965ad
mov ecx, dword [ebp - 0x4c]
mov dword [ecx], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x44], eax
jmp 0x4965ad
mov edx, dword [ebp - 0x4c]
mov dword [edx], esi
mov dword [ebp - 0x44], 8
jmp 0x4965ad