Function at 0x6c942c
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 0x6c9435
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 0x6c96a6
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, 0x6c96c0
call fcn.0040acb0
je 0x6c94b1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov edx, 0x6c96d4
call fcn.0040ab78
jmp 0x6c968b
push 0
push 0
push 0
push 0
push 0x6c9700
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 0x14], eax
push 0
push 0
push 3
push 0
push 0
push 0x50
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 0x6c9684
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 0x6c9529
mov eax, dword [ebp - 0x10]
mov edx, 0x6c9710
call fcn.0040a12c
call fcn.00409500
jmp 0x6c968b
xor edx, edx
push ebp
push 0x6c9666
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 0x6c9648
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 0x6c95a6
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 0x6c960c
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 0x6c9700
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 0x6c956d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6c964f
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, 0x6c973c
call fcn.0040a12c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6c96ad
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00409dac
ret