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

Disassembly:
push 0x54
mov eax, 0x627642
call fcn.0042d958
mov ebx, ecx
mov dword [ebp - 0x4c], ebx
push 0x50
call fcn.0042da05
pop ecx
mov dword [ebp - 0x50], eax
and dword [ebp - 4], 0
test eax, eax
je 0x52fde3
lea ecx, [ebx + 4]
push ecx
mov ecx, eax
call fcn.00508ba1
mov ecx, eax
mov dword [ebp - 0x48], eax
jmp 0x52fde8
xor ecx, ecx
mov dword [ebp - 0x48], ecx
mov esi, ecx
mov dword [ebp - 0x50], esi
and dword [ebp - 0x54], 0
lea eax, [ecx + 0x44]
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 1
mov dword [ebp - 0x60], eax
test edi, edi
jne 0x530023
push dword [ebp - 0x50]
add ebx, 0x2c
mov ecx, eax
push ebx
push ebx
push dword [eax + 4]
call fcn.0052f5cc
mov edi, dword [ebp - 0x4c]
and dword [ebp - 0x54], 0
lea eax, [ebp - 0x54]
push eax
push 0x400
push ebx
push dword [edi + 0x24]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x52fe5b
push dword [ebp - 0x50]
mov eax, dword [ebp - 0x54]
add eax, ebx
push eax
mov eax, dword [ebp - 0x60]
mov ecx, eax
push ebx
push dword [eax + 4]
call fcn.0052f5cc
cmp dword [ebp - 0x54], 0x400
je 0x52fe1e
jmp 0x52fe99
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x3e5
je 0x5300db
cmp dword [0x6b72cc], 2
jl 0x52fe8e
push edi
push str.InternetReadFile___failed:__d
call fcn.00507bec
push eax
push 2
call fcn.0050526e
add esp, 0x10
test edi, edi
jne 0x53001d
mov edi, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
xor ecx, ecx
push ecx
mov dword [eax + 0x1c], ecx
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], ecx
push eax
push 0x20000013
push dword [edi + 0x24]
mov dword [ebp - 0x44], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x52feeb
cmp dword [0x6b72cc], 2
jl 0x52feeb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.HttpQueryInfo_STATUS_CODE__failed:__d
call fcn.00507bec
push eax
push 2
call fcn.0050526e
add esp, 0x10
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x5c]
push 0
mov dword [ecx + 0x20], eax
lea eax, [ebp - 0x44]
push eax
push ebx
push 0x16
push dword [edi + 0x24]
mov dword [ebp - 0x44], 0x3ff
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x52ff7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x52ff42
cmp dword [0x6b72cc], 2
jl 0x52ff3b
push eax
push str.HttpQueryInfo_RAW_HEADERS__failed:__d
call fcn.00507bec
push eax
push 2
call fcn.0050526e
add esp, 0x10
xor eax, eax
mov dword [ebp - 0x44], eax
jmp 0x52ff7f
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x60]
inc eax
push ebx
push eax
mov ecx, ebx
call fcn.0051603f
mov ebx, dword [ebx]
lea eax, [ebp - 0x44]
push 0
push eax
push ebx
push 0x16
push dword [edi + 0x24]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x52ff7c
cmp dword [0x6b72cc], 2
jl 0x52ff3b
push 0x7a
push str.HttpQueryInfo_RAW_HEADERS__failed_twice:__d
jmp 0x52ff2b
mov eax, dword [ebp - 0x44]
mov byte [ebx + eax], 0
jmp 0x52fffc
push 0x3a
push ebx
call fcn.005f6b60
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x53000f
lea eax, [ebp - 0x55]
push eax
push edi
push ebx
lea ecx, [ebp - 0x28]
call fcn.004fc63b
mov byte [ebp - 4], 2
inc edi
cmp byte [edi], 0x20
je 0x52ffa7
push 0x665c58
push edi
call fcn.005f76b0
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x530003
lea eax, [ebp - 0x56]
push eax
push ebx
push edi
lea ecx, [ebp - 0x40]
call fcn.004fc63b
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea ecx, [ecx + 0x24]
call fcn.0052fbd3
lea ecx, [ebp - 0x40]
add ebx, 2
call fcn.005008ff
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.005008ff
cmp byte [ebx], 0
jne 0x52ff85
jmp 0x53000f
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.005008ff
mov ebx, dword [ebp - 0x4c]
mov ecx, ebx
push 7
call fcn.0052fb48
jmp 0x530096
mov ebx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
mov eax, 0x2f14
cmp edi, eax
ja 0x530054
je case.0x530044.12002
add edi, 0xffffd11e
cmp edi, 0x2b
ja case.0x530044.12004
movzx eax, byte [edi + 0x53011d]
jmp dword [eax*4 + 0x530111]
mov dword [ecx + 0x1c], 1
jmp 0x530096
mov eax, 0x2f80
cmp edi, eax
ja 0x5300f0
je case.0x530044.12002
cmp edi, 0x2f17
je case.0x530044.12002
cmp edi, 0x2f76
jbe case.0x530044.12004
cmp edi, 0x2f78
jbe case.0x530044.12002
cmp edi, 0x2f7c
je case.0x530044.12002
mov dword [ecx + 0x1c], 2
cmp byte [ebx + 0x42c], 0
jne 0x5300db
push 0
push dword [ebx + 0x24]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push dword [ebp - 0x48]
mov byte [ebx + 0x42c], 1
xor esi, esi
mov ebx, dword [ebx + 0x1c]
mov dword [ebp - 0x50], esi
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x62c6dc]
mov ecx, ebx
call edi
mov ecx, dword [ebp - 0x4c]
lea eax, [ecx + 4]
mov ecx, dword [ecx]
push eax
call fcn.0052fc5d
test esi, esi
je 0x5300e8
push esi
lea ecx, [ebp - 0x50]
call fcn.00508cfc
call fcn.0042d907
ret 4
cmp edi, 0x2f89
jb case.0x530044.12004
cmp edi, 0x2f8a
jbe case.0x530044.12002
cmp edi, 0x2f8f
jne case.0x530044.12004
mov dword [ecx + 0x1c], 3
jmp 0x530096