Function at 0x6c974c
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x6c9755
mov eax, dword [ebp - 4]
add esp, 0xfffffd98
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409e30
mov eax, dword [ebp - 8]
call fcn.00409e30
lea esi, [ebp - 0x1c]
xor eax, eax
push ebp
push 0x6c99c9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
call fcn.00409d4c
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.006c8fc4
mov eax, dword [ebp - 0xc]
mov edx, 0x6c99e4
call fcn.0040acb0
je 0x6c97d1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov edx, 0x6c99f8
call fcn.0040ab78
jmp 0x6c99ae
push 0
push 0
push 0
push 0
push 0x6c9a24
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 0x14], eax
push 0
push 0
push 3
push 0
push 0
push 0x1bb
mov eax, dword [ebp - 4]
call fcn.0040a90c
mov edi, eax
push edi
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetConnectW
xor edx, edx
push ebp
push 0x6c99a7
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0x84000000
push 0
push 0
push edi
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetOpenUrlW
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x6c984c
mov eax, dword [ebp - 0x10]
mov edx, 0x6c9a34
call fcn.0040a12c
call fcn.00409500
jmp 0x6c99ae
xor edx, edx
push ebp
push 0x6c9989
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x226c]
call fcn.00407700
call fcn.00406c38
mov edx, 1
lea eax, [ebp - 0x226c]
call fcn.00407a74
call fcn.00406c38
xor edx, edx
push ebp
push 0x6c996b
push dword fs:[edx]
mov dword fs:[edx], esp
push esi
push 0x2000
lea eax, [ebp - 0x201c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetReadFile
cmp dword [esi], 0
jb 0x6c98c9
push 0
lea edx, [ebp - 0x201c]
mov ecx, dword [esi]
lea eax, [ebp - 0x226c]
call fcn.00407848
call fcn.00406c38
add ebx, dword [esi]
jmp 0x6c992f
call sub.KERNEL32.DLL_GetLastError_2
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
push 0x7d0
call sub.KERNEL32.DLL_Sleep_2
push 0
push 0
push 0
push 0
push 0x6c9a24
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 0x14], eax
push 0
push 0x84000000
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040a90c
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetOpenUrlW
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push ebx
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetSetFilePointer
cmp dword [esi], 0
jne 0x6c9890
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6c9972
lea eax, [ebp - 0x226c]
call fcn.00407868
call fcn.00406c38
mov eax, dword [ebp - 8]
call fcn.006ca4cc
mov eax, dword [ebp - 0x10]
mov edx, 0x6c9a60
call fcn.0040a12c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6c99d0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00409dac
ret