Function at 0x49b277
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x7286bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 0x108], eax
mov edi, ebx
mov eax, dword [ebp + 0x18]
push ebx
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x118], edi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x11c], eax
test eax, eax
jne 0x49b2e4
cmp dword [ebp + 0x14], ebx
je 0x49b568
push 0x10
push str.Internet_open_failed_
push esi
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x49b568
push 4
lea ecx, [ebp + 0x10]
push ecx
push 2
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push ebx
push ebx
push ebx
push ebx
push esi
push dword [ebp - 0x11c]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
test esi, esi
jne 0x49b355
cmp dword [ebp + 0x14], ebx
je 0x49b55c
push 0x13
pop ecx
push 0xb4
lea eax, [ebp - 0xb8]
mov esi, str.Internet_open_url_failed__error_code
lea edi, [ebp - 0x104]
push ebx
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.0060b7a0
add esp, 0xc
lea eax, [ebp - 0x104]
push 0x10
push eax
push dword [ebp - 0x10c]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edi, ebx
jmp 0x49b55c
push ebx
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], ebx
push eax
push ebx
push 0xb
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x49b3c3
mov eax, dword [ebp - 0x114]
test eax, eax
je 0x49b3c3
add eax, 2
push eax
call fcn.0063cd98
mov edi, eax
mov eax, dword [ebp - 0x114]
add eax, 2
push eax
push ebx
push edi
call fcn.0060b7a0
add esp, 0x10
lea eax, [ebp - 0x114]
push ebx
push eax
push edi
push 0xb
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test edi, edi
je 0x49b3c3
mov ecx, dword [ebp - 0x108]
push edi
call fcn.004195af
push edi
call fcn.006183af
pop ecx
mov edi, ebx
mov dword [ebp - 0x110], ebx
push 0x401
mov dword [ebp - 0x108], ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x124], edi
mov dword [ebp - 0x120], ebx
call fcn.00609926
mov dword [esp], 0x401
push ebx
push eax
mov dword [ebp - 0x10c], eax
call fcn.0060b7a0
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push 0x400
push dword [ebp - 0x10c]
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x49b49e
mov edi, dword [ebp - 0x10c]
mov dword [ebp - 0x12c], eax
lea ecx, [ebp - 0x128]
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], edi
push eax
call fcn.0051310c
mov eax, dword [ebp - 0x108]
add eax, dword [ebp - 0x110]
push 0x401
mov dword [ebp - 0x108], eax
call fcn.00609926
mov dword [esp], 0x401
mov edi, eax
push ebx
push edi
call fcn.0060b7a0
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push 0x400
push edi
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x49b42d
mov edi, dword [ebp - 0x124]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x108]
test eax, eax
jle 0x49b54b
lea esi, [eax + 1]
push esi
mov dword [ebp - 0x12c], esi
call fcn.00609926
push esi
push ebx
push eax
mov dword [ebp - 0x118], eax
call fcn.0060b7a0
mov eax, dword [ebp - 0x128]
add esp, 0x10
sub edi, eax
sar edi, 3
test edi, edi
je 0x49b539
mov dword [ebp - 0x10c], eax
mov ecx, dword [eax]
mov esi, dword [eax + 4]
mov eax, dword [ebp - 0x118]
push esi
push ecx
add eax, ebx
mov dword [ebp - 0x108], ecx
push eax
call fcn.0060aca0
mov eax, dword [ebp - 0x108]
add esp, 0xc
add ebx, esi
test eax, eax
je 0x49b519
push eax
call fcn.0060992f
pop ecx
mov eax, dword [ebp - 0x10c]
add eax, 8
mov dword [ebp - 0x10c], eax
sub edi, 1
jne 0x49b4e8
mov eax, dword [ebp - 0x128]
mov esi, dword [ebp - 0x12c]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x49b54b
mov dword [eax], esi
lea ecx, [ebp - 0x128]
call fcn.0050ee25
mov edi, dword [ebp - 0x118]
push dword [ebp - 0x11c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00609802
mov esp, ebp
pop ebp
ret