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

Disassembly:
push 0x50
mov eax, 0x181f8c13
call fcn.180f0f0c
mov ebx, ecx
mov dword [ebp - 0x48], ebx
push 0x50
call fcn.180b1a93
pop ecx
mov dword [ebp - 0x4c], eax
and dword [ebp - 4], 0
test eax, eax
je 0x1812bf16
lea ecx, [ebx + 4]
push ecx
mov ecx, eax
call fcn.18107270
mov ebx, eax
mov dword [ebp - 0x5c], eax
jmp 0x1812bf1b
xor ebx, ebx
mov dword [ebp - 0x5c], ebx
mov esi, ebx
mov dword [ebp - 0x4c], esi
and dword [ebp - 0x50], 0
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 1
test edi, edi
jne 0x1812c141
push dword [ebp - 0x4c]
mov edi, dword [ebp - 0x48]
lea ecx, [ebx + 0x44]
add edi, 0x2c
push edi
push edi
push dword [ebx + 0x48]
mov dword [ebp - 0x54], edi
call fcn.18050b55
and dword [ebp - 0x50], 0
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x48]
push 0x400
push edi
push dword [eax + 0x24]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1812bf8d
push dword [ebp - 0x4c]
mov eax, dword [ebp - 0x50]
lea ecx, [ebx + 0x44]
add eax, edi
push eax
push edi
push dword [ebx + 0x48]
call fcn.18050b55
cmp dword [ebp - 0x50], 0x400
je 0x1812bf4f
jmp 0x1812bfcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x3e5
je 0x1812c1d5
cmp dword [0x1826ba3c], 2
jl 0x1812bfc0
push edi
push str.InternetReadFile___failed:__d
call fcn.181036ab
push eax
push 2
call fcn.18102462
add esp, 0x10
test edi, edi
jne 0x1812c141
mov edi, dword [ebp - 0x54]
mov esi, dword [ebp - 0x48]
xor eax, eax
mov dword [ebx + 0x1c], eax
push eax
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x44], 4
push eax
push 0x20000013
push dword [esi + 0x24]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x1812c01d
cmp dword [0x1826ba3c], 2
jl 0x1812c01d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.HttpQueryInfo_STATUS_CODE__failed:__d
call fcn.181036ab
push eax
push 2
call fcn.18102462
add esp, 0x10
mov eax, dword [ebp - 0x54]
mov dword [ebx + 0x20], eax
lea eax, [ebp - 0x44]
push 0
push eax
push edi
push 0x16
push dword [esi + 0x24]
mov dword [ebp - 0x44], 0x3ff
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x1812c0ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1812c071
cmp dword [0x1826ba3c], 2
jl 0x1812c06a
push eax
push str.HttpQueryInfo_RAW_HEADERS__failed:__d
call fcn.181036ab
push eax
push 2
call fcn.18102462
add esp, 0x10
xor eax, eax
mov dword [ebp - 0x44], eax
jmp 0x1812c0ae
mov eax, dword [ebp - 0x44]
lea edi, [ebx + 0x44]
inc eax
mov ecx, edi
push edi
push eax
call fcn.1810872b
mov edi, dword [edi]
lea eax, [ebp - 0x44]
push 0
push eax
push edi
push 0x16
push dword [esi + 0x24]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x1812c0ab
cmp dword [0x1826ba3c], 2
jl 0x1812c06a
push 0x7a
push str.HttpQueryInfo_RAW_HEADERS__failed_twice:__d
jmp 0x1812c05a
mov eax, dword [ebp - 0x44]
mov byte [edi + eax], 0
jmp 0x1812c12c
push 0x3a
push edi
call fcn.180c9130
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1812c1a8
lea eax, [ebp - 0x55]
push eax
push esi
push edi
lea ecx, [ebp - 0x28]
call fcn.1808615d
mov byte [ebp - 4], 2
inc esi
cmp byte [esi], 0x20
je 0x1812c0da
push 0x18232920
push esi
call fcn.181f0ce0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1812c133
lea eax, [ebp - 0x56]
push eax
push edi
push esi
lea ecx, [ebp - 0x40]
call fcn.1808615d
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebx + 0x24]
call fcn.1812823b
lea ecx, [ebp - 0x40]
add edi, 2
call fcn.18011379
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.18011379
cmp byte [edi], 0
jne 0x1812c0b4
jmp 0x1812c1a8
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.18011379
jmp 0x1812c1a8
mov eax, 0x2f14
cmp edi, eax
ja 0x1812c172
je case.0x1812c162.12002
add edi, 0xffffd11e
cmp edi, 0x2b
ja case.0x1812c162.12004
movzx eax, byte [edi + 0x1812c218]
jmp dword [eax*4 + 0x1812c20c]
mov dword [ebx + 0x1c], 1
jmp 0x1812c1a8
mov eax, 0x2f80
cmp edi, eax
ja 0x1812c1ea
je case.0x1812c162.12002
cmp edi, 0x2f17
je case.0x1812c162.12002
cmp edi, 0x2f76
jbe case.0x1812c162.12004
cmp edi, 0x2f78
jbe case.0x1812c162.12002
cmp edi, 0x2f7c
je case.0x1812c162.12002
mov dword [ebx + 0x1c], 2
mov eax, dword [ebp - 0x48]
xor esi, esi
push dword [ebp - 0x5c]
mov dword [ebp - 0x4c], esi
mov ebx, dword [eax + 0x1c]
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x181fc40c]
mov ecx, ebx
call edi
mov ecx, dword [ebp - 0x48]
lea eax, [ecx + 4]
mov ecx, dword [ecx]
push eax
call fcn.1812be76
test esi, esi
je 0x1812c1e2
push esi
lea ecx, [ebp - 0x4c]
call fcn.181055a5
call fcn.180f0eb6
ret 4
cmp edi, 0x2f89
jb case.0x1812c162.12004
cmp edi, 0x2f8a
jbe case.0x1812c162.12002
cmp edi, 0x2f8f
jne case.0x1812c162.12004
mov dword [ebx + 0x1c], 3
jmp 0x1812c1a8