Function at 0x41b890
Capabilities:
Check http status code
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push 0xffffffffffffffff
push 0x4ce618
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
mov eax, dword [0x504530]
push ebx
push ebp
push esi
mov dword [esp + 0x58], eax
push edi
mov ebx, ecx
mov ecx, dword [esp + 0x74]
xor esi, esi
mov dword [esp + 0x68], esi
call fcn.00403dd0
push str.clientRAZAversion
call fcn.004ac8fd
add esp, 4
push eax
push str.clientRAZAversion
lea ecx, [esp + 0x78]
call fcn.00409df0
mov eax, dword [0x5345f0]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x78]
call fcn.00409df0
mov ebp, dword [esp + 0x70]
push ebp
push str.DiscoveryService_URL:__s
push 0x534540
mov eax, 3
call fcn.00478d50
mov eax, dword [ebx + 0x28]
add esp, 0xc
cmp eax, esi
je 0x41b91f
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebx + 0x24]
push esi
push 0x84080000
or edi, 0xffffffff
push edi
push str.Connection:_close
push ebp
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
cmp eax, esi
mov dword [ebx + 0x28], eax
je 0x41ba86
push esi
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
push 0x13
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0x20
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x41ba86
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push 0x4da2c4
push ecx
call fcn.004acfb3
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, 0xc8
jb 0x41ba86
cmp eax, 0x12b
ja 0x41ba86
mov eax, dword [ebx + 0x28]
mov ebp, dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
push esi
push esi
lea edx, [esp + 0x18]
push edx
push eax
xor edi, edi
call ebp
test eax, eax
je 0x41b9fd
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x41ba03
add eax, esi
push eax
push edi
call fcn.004ac40b
mov edx, dword [esp + 0x18]
add esp, 8
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [ebx + 0x28]
mov edi, eax
push edx
lea eax, [edi + esi]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [esp + 0x10]
push 0
push 0
lea edx, [esp + 0x18]
add esi, eax
mov eax, dword [ebx + 0x28]
push edx
push eax
call ebp
test eax, eax
jne 0x41b9b6
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41ba1c
push edi
call fcn.004acb33
add esp, 4
lea ecx, [esp + 0x70]
call fcn.00403b90
jmp 0x41baa1
mov ebx, dword [esp + 0x74]
push esi
mov ecx, ebx
call fcn.00403c50
xor ecx, ecx
test esi, esi
mov dword [esp + 0x14], ecx
jbe 0x41ba48
movzx dx, byte [edi + ecx]
mov word [eax + ecx*2], dx
mov ecx, dword [esp + 0x14]
inc ecx
cmp ecx, esi
mov dword [esp + 0x14], ecx
jb 0x41ba32
push esi
mov ecx, ebx
call fcn.004042d0
push edi
call fcn.004acb33
mov dword [esp + 0x6c], 0xffffffff
mov eax, dword [esp + 0x74]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ba7f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
jmp 0x41baa3
lea eax, [ebp - 0x10]
mov dword [esp + 0x68], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x41baa1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x50]
pop ebx
call fcn.004ae38e
add esp, 0x5c
ret 8