Function at 0x52ed94
Capabilities:
Read data from internet
Receive data

Disassembly:
test dword [0x7eeab0], 0xffffff80
jne 0x52edbc
test dword [0x7eeab0], 0xffffffff
jne 0x52edbc
call fcn.006a7b4c
jmp fcn.0052ed94
push edi
push esi
push ebp
push ebx
push ecx
mov eax, 0x814
call fcn.00697340
mov ecx, dword [esp + 0x814]
mov dword [esp + 0x814], 0
mov dword [esp + 0x80c], 4
mov eax, 1
mov edi, eax
mov esi, ecx
mov edx, dword [esi + 4]
mov dword [edx + 4], 0
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x52ee1b
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x52ee19
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x52ee04
dec eax
jmp 0x52ee1d
xor eax, eax
xor edx, edx
push edx
push edx
push eax
push ecx
push dword [esi + 0x10]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x52eed1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi + 4]
mov dword [edx + 4], eax
mov ebx, dword [esi + 4]
mov ecx, dword [ebx + 4]
add ecx, 0xffffd0fb
cmp ecx, 0x20
jae 0x52eeab
mov edx, 1
shl edx, cl
test edx, 0x103
je 0x52eeab
mov dword [esp + 0x804], 4
lea ebx, [esp + 0x808]
lea edx, [esp + 0x804]
push edx
push ebx
push 0x1f
push dword [esi + 0x10]
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
or dword [esp + 0x808], 0x3100
lea edx, [esp + 0x808]
push 4
push edx
push 0x1f
push dword [esi + 0x10]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
jmp 0x52edf1
mov ecx, esi
mov eax, dword [ecx + 0x4a]
test eax, eax
je 0x52f013
mov edx, dword [eax]
push str.HTTP_Handshake_nfailed_
push eax
call dword [edx + 0x48]
add esp, 8
add esp, 0x818
pop ebx
pop ebp
pop esi
pop edi
ret
lea ebx, [esp + 0x810]
lea edx, [esp + 0x80c]
push 0
push edx
push ebx
push 0x20000013
push dword [esi + 0x10]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x52f013
lea ebx, [esp]
lea edx, [esp + 0x814]
push edx
push 0x800
push ebx
push dword [esi + 0x10]
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp dword [esp + 0x814], 0
jne 0x52eef9
mov ecx, 0x16
call fcn.004dbdb8
test eax, eax
je 0x52ef36
mov ecx, eax
call fcn.0057f31c
mov ebp, eax
jmp 0x52ef38
xor ebp, ebp
mov ecx, ebp
call fcn.0057f2ac
test eax, eax
je 0x52efd5
mov ecx, ebp
call fcn.0057db34
test eax, eax
je 0x52efd5
mov ecx, ebp
call fcn.0057f150
mov ebx, eax
mov ecx, ebp
call fcn.0057f09c
mov dword [esp + 0x800], eax
movsx edx, byte [ebx]
test edx, edx
je 0x52ef9a
mov ecx, ebx
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x52ef8d
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x52ef78
dec eax
push eax
push ebx
push 0x2b
push dword [esi + 0x10]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
mov edx, dword [esp + 0x800]
movsx ebx, byte [edx]
test ebx, ebx
je 0x52efd5
mov ecx, edx
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x52efc1
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x52efac
dec eax
push eax
mov edx, dword [esp + 0x804]
push edx
push 0x2c
push dword [esi + 0x10]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
test ebp, ebp
je 0x52efe2
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
test edi, edi
je 0x52effb
mov eax, dword [esp + 0x810]
cmp eax, 0x197
jne 0x52effb
xor edi, edi
jmp 0x52edf1
mov ecx, esi
push dword [ecx + 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
add esp, 0x818
pop ebx
pop ebp
pop esi
pop edi
ret
mov eax, 1
add esp, 0x818
pop ebx
pop ebp
pop esi
pop edi
ret