Function at 0x47a2aa
Capabilities:
Check http status code
Read data from internet
Receive data

Disassembly:
push 0x940
mov eax, 0x4993da
call fcn.0045cdd3
mov ebx, ecx
mov dword [ebp - 0x82c], ebx
mov eax, dword [ebx + 0x2c]
lea ecx, [ebp - 0x859]
push ecx
add eax, 0xa4
lea ecx, [ebp - 0x894]
push eax
call fcn.0041de71
and dword [ebp - 4], 0
lea eax, [ebp - 0x828]
push eax
lea ecx, [ebx + 0x30]
call fcn.0042f575
lea eax, [ebp - 0x828]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x910]
call fcn.00420758
push eax
lea ecx, [ebp - 0x8c4]
mov byte [ebp - 4], 2
call fcn.00413841
lea ecx, [ebp - 0x8c4]
mov byte [ebp - 4], 3
call fcn.00418b99
lea ecx, [ebp - 0x900]
call fcn.0041394e
lea ecx, [ebp - 0x908]
call fcn.0041394e
push 0
push 1
lea ecx, [ebp - 0x828]
mov byte [ebp - 4], 6
call fcn.00411cc9
lea eax, [ebp - 0x94c]
push eax
lea eax, [ebp - 0x8c4]
push eax
call fcn.00488891
pop ecx
pop ecx
push 0
push 0xffffffffffffffff
push str.HEAD
lea ecx, [ebp - 0x850]
call fcn.00417813
mov eax, dword [ebx]
lea ecx, [ebp - 0x850]
push ecx
mov ecx, ebx
mov byte [ebp - 4], 7
call dword [eax + 0x60]
lea ecx, [ebp - 0x840]
mov byte [ebp - 4], 6
call fcn.0041394e
lea ecx, [ebp - 0x848]
call fcn.0041394e
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x48]
lea edi, [ebx + 0xd0]
cmp dword [edi], 0
jne 0x47a3c9
lea eax, [ebp - 0x94c]
push eax
call fcn.00488764
pop ecx
push eax
mov ecx, edi
call fcn.00411cc9
call fcn.00464e22
mov ecx, eax
call fcn.0046cc40
test eax, eax
je 0x47a48b
lea eax, [ebp - 0x874]
push eax
call fcn.00464e22
mov ecx, eax
call fcn.0046cbf1
lea eax, [ebp - 0x850]
mov byte [ebp - 4], 8
push eax
call fcn.00464e22
mov ecx, eax
call fcn.0046cba2
lea ecx, [ebp - 0x874]
mov byte [ebp - 4], 9
call fcn.00418b99
mov esi, dword [ebp - 0x870]
lea ecx, [ebp - 0x874]
call fcn.00418b99
push esi
push eax
push 0x2b
push dword [edi]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
lea ecx, [ebp - 0x850]
call fcn.00418b99
mov esi, dword [ebp - 0x84c]
lea ecx, [ebp - 0x850]
call fcn.00418b99
push esi
push eax
push 0x2c
push dword [edi]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
lea ecx, [ebp - 0x840]
call fcn.0041394e
lea ecx, [ebp - 0x848]
call fcn.0041394e
lea ecx, [ebp - 0x864]
mov byte [ebp - 4], 6
call fcn.0041394e
lea ecx, [ebp - 0x86c]
call fcn.0041394e
cmp dword [ebx + 0xd4], 0
je 0x47a4e2
lea esi, [ebx + 0xd8]
mov ecx, esi
call fcn.00418b99
mov edi, dword [esi + 4]
mov ecx, esi
call fcn.00418b99
push edi
push eax
push 0x1c
push dword [ebx + 0xd0]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
lea esi, [ebx + 0xf0]
mov ecx, esi
call fcn.00418b99
mov edi, dword [esi + 4]
mov ecx, esi
call fcn.00418b99
push edi
push eax
push 0x1d
push dword [ebx + 0xd0]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push 0x493e0
lea eax, [ebp - 0x94c]
push eax
push str.HEAD
push dword [ebx + 0xd0]
lea edi, [ebx + 0xcc]
call fcn.00488bf6
add esp, 0x10
mov ecx, edi
push eax
call fcn.00411cc9
cmp dword [edi], 0
jne 0x47a51f
mov esi, dword [0x4a8960]
jmp 0x47adbc
lea eax, [ebp - 0x850]
mov ecx, ebx
push eax
call fcn.0046ce3d
push eax
lea ecx, [ebp - 0x88c]
mov byte [ebp - 4], 0xa
call fcn.00413841
lea ecx, [ebp - 0x88c]
mov byte [ebp - 4], 0xb
call fcn.00418b99
lea ecx, [ebp - 0x840]
mov byte [ebp - 4], 0xd
call fcn.0041394e
lea ecx, [ebp - 0x848]
call fcn.0041394e
lea ecx, [ebp - 0x88c]
call fcn.00418b99
mov esi, dword [ebp - 0x888]
lea ecx, [ebp - 0x88c]
call fcn.00418b99
push 0xa0000000
push esi
push eax
push dword [edi]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
xor esi, esi
push esi
push esi
push esi
push esi
push dword [edi]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x47a5c9
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x2eef
je 0x47a5c9
cmp dword [edi], esi
je 0x47a5be
push dword [edi]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [edi], esi
mov esi, dword [0x4a8960]
jmp 0x47ada6
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x8c]
mov eax, dword [ebx + 0x128]
mov esi, dword [eax + 8]
cmp esi, 0x12c
jb 0x47a605
cmp esi, 0x130
je 0x47a605
cmp dword [edi], 0
je 0x47ada6
push dword [edi]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
and dword [edi], 0
jmp 0x47ada6
push dword [edi]
push 5
call fcn.00411cc9
push dword [edi]
mov dword [ebp - 0x830], eax
lea eax, [ebp - 0x8dc]
push 0x36
push eax
call fcn.00411cc9
push dword [edi]
lea eax, [ebp - 0x8f4]
mov byte [ebp - 4], 0xe
push 0xb
push eax
call fcn.00411cc9
add esp, 0x20
mov byte [ebp - 4], 0xf
cmp esi, 0x130
jne 0x47a78b
cmp dword [ebp - 0x830], 0xffffffff
jne 0x47a663
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax + 0x94]
mov dword [ebp - 0x830], eax
xor ebx, ebx
lea ecx, [ebp - 0x850]
push ebx
push 0xffffffffffffffff
push 0x49d9e6
call fcn.00417813
push ebx
push ebx
lea eax, [ebp - 0x850]
mov byte [ebp - 4], 0x10
push eax
lea ecx, [ebp - 0x8dc]
call fcn.00418318
mov bx, ax
mov byte [ebp - 4], 0xf
neg bx
lea ecx, [ebp - 0x840]
sbb bl, bl
call fcn.0041394e
lea ecx, [ebp - 0x848]
call fcn.0041394e
inc bl
je 0x47a6f7
mov ecx, dword [ebp - 0x82c]
lea eax, [ebp - 0x828]
push eax
mov ecx, dword [ecx + 0x2c]
call fcn.00411cc9
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x8dc]
mov byte [ebp - 4], 0x11
call fcn.00411cc9
lea ecx, [ebp - 0x818]
mov byte [ebp - 4], 0xf
call fcn.0041394e
lea ecx, [ebp - 0x820]
call fcn.0041394e
xor ebx, ebx
lea ecx, [ebp - 0x850]
push ebx
push 0xffffffffffffffff
push 0x49d9e6
call fcn.00417813
push ebx
push ebx
lea eax, [ebp - 0x850]
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x8f4]
call fcn.00418318
mov bx, ax
mov byte [ebp - 4], 0xf
neg bx
lea ecx, [ebp - 0x840]
sbb bl, bl
call fcn.0041394e
lea ecx, [ebp - 0x848]
call fcn.0041394e
inc bl
mov ebx, dword [ebp - 0x82c]
je 0x47a78b
mov ecx, dword [ebx + 0x2c]
lea eax, [ebp - 0x828]
push eax
call fcn.00411cc9
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x8f4]
mov byte [ebp - 4], 0x13
call fcn.00411cc9
lea ecx, [ebp - 0x818]
mov byte [ebp - 4], 0xf
call fcn.0041394e
lea ecx, [ebp - 0x820]
call fcn.0041394e
cmp dword [edi], 0
je 0x47a79b
push dword [edi]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
and dword [edi], 0
and dword [ebp - 0x8ac], 0
lea ecx, [ebp - 0x8ac]
and dword [ebp - 0x8a8], 0
lea eax, [ebx + 0x154]
xorps xmm0, xmm0
mov dword [ebp - 0x82c], eax
push ecx
push eax
movlpd qword [ebp - 0x89c], xmm0
movlpd qword [ebp - 0x8a4], xmm0
call fcn.00419fae
pop ecx
pop ecx
cmp esi, 0x130
jne 0x47a7eb
test eax, eax
jne 0x47ad4d
push 3
jmp 0x47a7ed
push 2
or dword [ebp - 0x838], 0xffffffff
pop eax
push eax
push 4
push 0x12019f
lea eax, [ebx + 0x154]
mov byte [ebp - 4], 0x14
push eax
lea ecx, [ebp - 0x838]
call fcn.00411cc9
test eax, eax
je 0x47a876
push 0
push 0xffffffffffffffff
push str.unable_to_open_temp_file
lea ecx, [ebp - 0x828]
call fcn.00417813
push dword [ebp - 0x82c]
lea eax, [ebp - 0x828]
mov byte [ebp - 4], 0x15
push eax
lea eax, [ebp - 0x910]
push eax
call fcn.00413e39
add esp, 0xc
push eax
lea ecx, [ebp - 0x850]
mov byte [ebp - 4], 0x16
mov dword [ebp - method.RSException.virtual_0], vtable.RSException.0
call fcn.00413841
push 0x4b0a7c
lea eax, [ebp - 0x854]
push eax
call sub.MSVCR120.dll__CxxThrowException
lea eax, [ebp - 0x8ac]
push eax
lea eax, [ebx + 0x154]
push eax
call fcn.00419fae
mov eax, dword [ebp - 0x8a8]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x830]
mov dword [ebp - 0x834], eax
cmp eax, ecx
jbe 0x47a8f0
lea ecx, [ebp - 0x838]
call fcn.00419e8e
push 2
push 4
push 0x12019f
lea eax, [ebx + 0x154]
push eax
lea ecx, [ebp - 0x838]
call fcn.00411cc9
lea eax, [ebp - 0x8ac]
push eax
lea eax, [ebx + 0x154]
push eax
call fcn.00419fae
mov eax, dword [ebp - 0x8a8]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x830]
cmp eax, ecx
mov dword [ebp - 0x834], eax
jae 0x47ad3e
mov edx, dword [ebx + 0xc8]
test edx, edx
je 0x47a91f
mov eax, dword [edx]
lea esi, [ebp - 0x8f4]
push esi
lea esi, [ebp - 0x8dc]
push esi
mov esi, dword [ebp - 0x834]
push esi
push ecx
mov ecx, edx
call dword [eax + 4]
jmp 0x47a925
mov esi, dword [ebp - 0x834]
push 0x493e0
lea eax, [ebp - 0x94c]
push eax
push 0x4a8994
push dword [ebx + 0xd0]
call fcn.00488bf6
add esp, 0x10
mov ecx, edi
push eax
call fcn.00411cc9
push 0
push 0xffffffffffffffff
push 0x4a8994
lea ecx, [ebp - 0x850]
call fcn.00417813
mov eax, dword [ebx]
lea ecx, [ebp - 0x850]
push ecx
mov ecx, ebx
mov byte [ebp - 4], 0x17
call dword [eax + 0x60]
lea ecx, [ebp - 0x840]
mov byte [ebp - 4], 0x14
call fcn.0041394e
lea ecx, [ebp - 0x848]
call fcn.0041394e
mov ecx, dword [ebx + 0x2c]
lea eax, [ebp - 0x894]
push eax
lea ecx, [ecx + 0xa4]
call fcn.00411cc9
lea ecx, [ebx + 0x24]
call fcn.0041e719
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x48]
lea eax, [ebp - 0x828]
mov ecx, ebx
push eax
call fcn.0046ce3d
push eax
lea ecx, [ebp - 0x850]
mov byte [ebp - 4], 0x18
call fcn.00413841
lea ecx, [ebp - 0x850]
mov byte [ebp - 4], 0x19
call fcn.00418b99
push 0xffffffffffffffff
lea eax, [ebp - 0x850]
mov byte [ebp - 4], 0x1a
push eax
lea ecx, [ebp - 0x88c]
call fcn.00411cc9
lea ecx, [ebp - 0x840]
call fcn.0041394e
lea ecx, [ebp - 0x848]
call fcn.0041394e
lea ecx, [ebp - 0x818]
mov byte [ebp - 4], 0x14
call fcn.0041394e
lea ecx, [ebp - 0x820]
call fcn.0041394e
mov ecx, dword [ebx + 0xc8]
mov eax, dword [ecx]
call dword [eax + 0xc]
test eax, eax
jne 0x47acda
mov edx, dword [ebp - 0x830]
lea ecx, [esi + 0x3e800]
lea eax, [edx - 1]
dec edx
cmp ecx, eax
cmovb edx, ecx
push edx
push esi
push dword [edi]
call fcn.004886af
add esp, 0xc
lea ecx, [ebp - 0x874]
push 0
push 0xffffffffffffffff
push 0x49fcac
call fcn.00417813
mov byte [ebp - 4], 0x1b
xor esi, esi
lea ecx, [ebp - 0x88c]
call fcn.00418b99
cmp esi, dword [ebp - 0x888]
jae 0x47ab51
push esi
lea eax, [ebp - 0x874]
push eax
lea ecx, [ebp - 0x88c]
call fcn.00418859
mov edi, eax
lea ecx, [ebp - 0x88c]
push edi
push esi
lea eax, [ebp - 0x828]
push eax
call fcn.004191ca
push eax
lea ecx, [ebp - 0x850]
mov byte [ebp - 4], 0x1c
call fcn.00413841
lea ecx, [ebp - 0x850]
mov byte [ebp - 4], 0x1d
call fcn.00418b99
lea ecx, [ebp - 0x818]
mov byte [ebp - 4], 0x1f
call fcn.0041394e
lea ecx, [ebp - 0x820]
call fcn.0041394e
lea ecx, [ebp - 0x850]
call fcn.00418b99
mov esi, dword [ebp - 0x84c]
lea ecx, [ebp - 0x850]
call fcn.00418b99
push 0xa0000000
push esi
push eax
push dword [ebx + 0xcc]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
lea ecx, [ebp - 0x874]
call fcn.00418bd8
mov esi, dword [ebp - 0x870]
lea ecx, [ebp - 0x840]
add esi, edi
mov byte [ebp - 4], 0x1b
call fcn.0041394e
lea ecx, [ebp - 0x848]
call fcn.0041394e
cmp esi, 0xffffffff
jne 0x47aa73
mov esi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
lea edi, [ebx + 0xcc]
push 0xa0000000
push 0xffffffffffffffff
push str.If_None_Match
push dword [edi]
call esi
push 0xa0000000
push 0xffffffffffffffff
push str.If_Modified_Since
push dword [edi]
call esi
xor esi, esi
push esi
push esi
push esi
push esi
push dword [edi]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x47acba
push dword [edi]
mov dword [ebp - 0x82c], esi
push 0x13
call fcn.00411cc9
pop ecx
pop ecx
cmp eax, 0xc8
jl 0x47acba
cmp eax, 0x12c
jge 0x47acba
lea eax, [ebp - 0x858]
push eax
push 0x800
lea eax, [ebp - 0x810]
push eax
push dword [edi]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, dword [ebp - 0x834]
test eax, eax
je 0x47ac59
cmp dword [ebp - 0x858], 0
jbe 0x47ac59
mov ecx, dword [ebx + 0xc8]
mov eax, dword [ecx]
call dword [eax + 0xc]
test eax, eax
jne 0x47ac59
mov eax, dword [ebp - 0x82c]
lea ecx, [ebp - 0x838]
add eax, dword [ebp - 0x858]
mov dword [ebp - 0x82c], eax
lea eax, [ebp - 0x8f8]
push eax
push dword [ebp - 0x858]
lea eax, [ebp - 0x810]
push eax
call fcn.00411cc9
mov ecx, dword [ebx + 0xc8]
mov eax, dword [ebp - 0x82c]
add eax, esi
push eax
mov edx, dword [ecx]
call dword [edx + 8]
lea eax, [ebp - 0x858]
push eax
push 0x800
lea eax, [ebp - 0x810]
push eax
push dword [edi]
call dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x47abdb
mov eax, dword [ebp - 0x82c]
add esi, eax
mov dword [ebp - 0x834], esi
cmp esi, dword [ebp - 0x830]
jae 0x47ac76
cmp eax, 0x3e800
jl 0x47ac9e
lea ecx, [ebp - 0x864]
mov byte [ebp - 4], 0x14
call fcn.0041394e
lea ecx, [ebp - 0x86c]
call fcn.0041394e
cmp esi, dword [ebp - 0x830]
jb 0x47aa25
jmp 0x47acda
lea ecx, [ebp - 0x864]
mov byte [ebp - 4], 0x14
call fcn.0041394e
lea ecx, [ebp - 0x86c]
call fcn.0041394e
jmp 0x47acda
lea ecx, [ebp - 0x864]
mov byte [ebp - 4], 0x14
call fcn.0041394e
lea ecx, [ebp - 0x86c]
call fcn.0041394e
mov esi, dword [ebp - 0x834]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x8c]
cmp esi, dword [ebp - 0x830]
jae 0x47ad28
push dword [edi]
push 0x13
call fcn.00411cc9
mov esi, eax
pop ecx
pop ecx
test esi, esi
js 0x47ad0c
mov ecx, dword [ebx + 0xc8]
mov eax, dword [ecx]
call dword [eax + 0xc]
test eax, eax
je 0x47ad31
mov ecx, dword [ebx + 0xc8]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, dword [0x4a8960]
test eax, eax
cmovne esi, dword [0x4a895c]
jmp 0x47ad31
mov eax, dword [ebx + 0x128]
mov esi, dword [eax + 8]
xor eax, eax
push eax
push eax
push eax
push dword [edi]
call dword [sym.imp.WININET.dll_HttpEndRequestA]
lea ecx, [ebp - 0x838]
mov byte [ebp - 4], 0xf
call fcn.00419e8e
cmp dword [edi], 0
je 0x47ad5d
push dword [edi]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
and dword [edi], 0
cmp esi, 0x130
jne 0x47ad7a
mov ecx, dword [ebx + 0x2c]
lea eax, [ebp - 0x894]
push eax
add ecx, 0xa4
call fcn.00411cc9
lea ecx, [ebp - 0x8e4]
call fcn.0041394e
lea ecx, [ebp - 0x8ec]
call fcn.0041394e
lea ecx, [ebp - 0x8cc]
call fcn.0041394e
lea ecx, [ebp - 0x8d4]
call fcn.0041394e
lea ecx, [ebp - 0x87c]
call fcn.0041394e
lea ecx, [ebp - 0x884]
call fcn.0041394e
lea ecx, [ebp - 0x8b4]
call fcn.0041394e
lea ecx, [ebp - 0x8bc]
call fcn.0041394e
lea ecx, [ebp - 0x894]
call fcn.00411cc9
mov eax, esi
call fcn.0045cd82
ret