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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x23
push 0
push 0
dec ecx
jne 0x4d16f5
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0x2c], ecx
mov ebx, edx
mov esi, eax
lea eax, [ebp - 0x28]
mov edx, dword [0x4d1360]
call fcn.0040976c
xor eax, eax
push ebp
push 0x4d1c52
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x2c]
call fcn.004086d0
xor edx, edx
push ebp
push 0x4d1bad
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x4d1b9c
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x28]
mov eax, esi
call fcn.004d15c4
push 0
push 0
push 0
push 0
push 0
push 0x31f
push 0
push 0x23
lea edx, [ebp - 0xf0]
mov eax, dword [0x4f38f8]
call fcn.004b756c
mov eax, dword [ebp - 0xf0]
call fcn.00409210
push eax
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x4d17f5
push 0
push 0x31f
push 0
push 0x2d
lea edx, [ebp - 0xf4]
mov eax, dword [0x4f38f8]
call fcn.004b756c
lea eax, [ebp - 0xf4]
push eax
call sub.kernel32.dll_GetLastError
lea ecx, [ebp - 0xf8]
xor edx, edx
call fcn.0041fec4
mov edx, dword [ebp - 0xf8]
pop eax
call fcn.00409408
mov ecx, dword [ebp - 0xf4]
mov dl, 1
mov eax, dword [0x41668c]
call fcn.00421108
call fcn.00407d4c
xor edx, edx
push ebp
push 0x4d1b7e
push dword fs:[edx]
mov dword fs:[edx], esp
mov esi, dword [ebp - 0x1c]
test esi, esi
jne 0x4d180f
mov esi, 0x1bb
push 0
push 0
push 3
push 0
push 0
push esi
mov eax, dword [ebp - 0x24]
call fcn.00409210
push eax
mov eax, dword [ebp - 0x3c]
push eax
call sub.wininet.dll_InternetConnectW
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x4d188c
push 0
push 0x31f
push 0
push 0x2e
lea edx, [ebp - 0xfc]
mov eax, dword [0x4f38f8]
call fcn.004b756c
lea eax, [ebp - 0xfc]
push eax
call sub.kernel32.dll_GetLastError
lea ecx, [ebp - 0x100]
xor edx, edx
call fcn.0041fec4
mov edx, dword [ebp - 0x100]
pop eax
call fcn.00409408
mov ecx, dword [ebp - 0xfc]
mov dl, 1
mov eax, dword [0x41668c]
call fcn.00421108
call fcn.00407d4c
xor edx, edx
push ebp
push 0x4d1b60
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0x31f
push 0
push 0x24
lea edx, [ebp - 4]
mov eax, dword [0x4f38f8]
call fcn.004b756c
mov esi, 0x840c3300
push 0
push 0x31f
push 0
push 0x25
lea edx, [ebp - 0x104]
mov eax, dword [0x4f38f8]
call fcn.004b756c
mov edx, dword [ebp - 0x104]
mov eax, dword [ebp - 0x28]
call fcn.00409598
jne 0x4d18e8
or esi, 0x800000
mov eax, ebx
call fcn.004b83d4
test eax, eax
jle 0x4d197f
push 0
push 0x31f
push 0
push 0x26
lea edx, [ebp - 4]
mov eax, dword [0x4f38f8]
call fcn.004b756c
call fcn.00424c30
mov dword [ebp - 0x68], eax
call fcn.004c8300
mov dword [ebp - 0x64], eax
lea edx, [ebp - 0x108]
mov eax, ebx
call fcn.004b82e4
mov edi, dword [ebp - 0x108]
mov dword [ebp - 0x60], edi
mov eax, edi
mov edi, eax
test edi, edi
je 0x4d1942
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x10c]
push eax
mov ecx, edi
dec ecx
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x64]
call fcn.004c80e4
mov edx, dword [ebp - 0x10c]
lea ecx, [ebp - 8]
mov eax, dword [ebp - 0x68]
call fcn.004245f8
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x4d197a
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x58], eax
jmp 0x4d1989
xor eax, eax
mov dword [ebp - 0x54], eax
xor eax, eax
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x5c], eax
mov edi, 4
push edi
lea eax, [ebp - 0x5c]
push eax
push 2
mov eax, dword [ebp - 0x40]
push eax
call sub.wininet.dll_InternetSetOptionW
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
push edi
lea eax, [ebp - 0x5c]
push eax
push 5
mov eax, dword [ebp - 0x40]
push eax
call sub.wininet.dll_InternetSetOptionW
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
push edi
lea eax, [ebp - 0x5c]
push eax
push 6
mov eax, dword [ebp - 0x40]
push eax
call sub.wininet.dll_InternetSetOptionW
push 0
push esi
push 0
push 0
push 0
lea eax, [ebp - 0x110]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
call fcn.00409460
mov eax, dword [ebp - 0x110]
call fcn.00409210
push eax
mov eax, dword [ebp - 4]
call fcn.00409210
push eax
mov eax, dword [ebp - 0x40]
push eax
call sub.wininet.dll_HttpOpenRequestW
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x4d1a68
push 0
push 0x31f
push 0
push 0x2f
lea edx, [ebp - 0x114]
mov eax, dword [0x4f38f8]
call fcn.004b756c
lea eax, [ebp - 0x114]
push eax
call sub.kernel32.dll_GetLastError
lea ecx, [ebp - 0x118]
xor edx, edx
call fcn.0041fec4
mov edx, dword [ebp - 0x118]
pop eax
call fcn.00409408
mov ecx, dword [ebp - 0x114]
mov dl, 1
mov eax, dword [0x41668c]
call fcn.00421108
call fcn.00407d4c
mov eax, 0x16000
call fcn.0040546c
mov dword [ebp - 0x48], eax
xor eax, eax
push ebp
push 0x4d1b42
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x54]
push eax
push 0
push 0
mov eax, dword [ebp - 0x44]
push eax
call sub.wininet.dll_HttpSendRequestW
test eax, eax
je 0x4d1b2a
mov eax, ebx
call fcn.004b8428
jmp 0x4d1acd
cmp dword [ebp - 0x4c], 0
jbe 0x4d1ae7
lea ecx, [ebp - 0x11c]
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
call fcn.004253f8
mov edx, dword [ebp - 0x11c]
mov eax, ebx
call fcn.004b8254
lea eax, [ebp - 0x4c]
push eax
push 0x16000
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x44]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
jne 0x4d1aa9
mov dword [ebp - 0x50], 0x82
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0xea]
push eax
push 0x13
mov eax, dword [ebp - 0x44]
push eax
call sub.wininet.dll_HttpQueryInfoW
lea eax, [ebp - 4]
lea edx, [ebp - 0xea]
mov ecx, 0x41
call fcn.004092b0
mov eax, dword [ebp - 4]
call fcn.0041bc98
cdq
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1b49
mov eax, dword [ebp - 0x48]
push eax
call fcn.0040ddbc
pop ecx
ret