Function at 0x49bac0
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 0xffffffffffffffff
push 0x62e2d3
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1090
call fcn.005eb280
mov eax, dword [0x6bae70]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x107c], 0
mov dword [ebp - 0x109c], ecx
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
mov dword [ebp - 0x1074], ebx
mov dword [ebp - 0x1084], eax
mov dword [ebp - 0x1078], eax
mov dword [ebp - 0x106c], ecx
mov dword [ebp - 0x1098], edi
mov byte [eax], 0
mov dword [ebp - 0x107c], 1
mov dword [ebp - 4], 1
test esi, esi
je 0x49be5e
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49bb64
sub ecx, edx
sar ecx, 1
je 0x49be5e
mov ecx, ebx
call fcn.0049ca90
push 0
push 0
push 0
push 0
push 0x68fc78
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebx + 0xc], eax
test eax, eax
jne 0x49bbb5
push 0x6aec40
lea eax, [ebp - 0x108c]
mov dword [ebp - 0x108c], 1
push eax
call fcn.005e9743
xor eax, eax
mov dword [ebp - 0x1068], 0x50
mov dword [ebp - 0x101c], 7
mov dword [ebp - 0x1020], 0
mov word [ebp - 0x1030], ax
mov dword [ebp - 0x1034], 7
mov dword [ebp - 0x1038], eax
mov word [ebp - 0x1048], ax
lea eax, [ebp - 0x1068]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x1048]
mov ecx, esi
push eax
lea edx, [ebp - 0x1030]
call fcn.0049b140
mov ecx, dword [ebp - 0x1068]
mov eax, 0x1bb
add esp, 8
cmp cx, ax
jne 0x49bc29
mov byte [ebx + 8], 1
cmp dword [ebp - 0x101c], 8
lea eax, [ebp - 0x1030]
push 0
cmovae eax, dword [ebp - 0x1030]
push 0
push 3
push 0
push 0
push ecx
push eax
push dword [ebx + 0xc]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edx, eax
mov dword [ebx + 0x10], edx
test edx, edx
jne 0x49bc76
push 0x6aec40
lea eax, [ebp - 0x1094]
mov dword [ebp - 0x1094], 2
push eax
call fcn.005e9743
cmp byte [ebx + 8], 0
mov eax, 0x80802000
push 0
mov ecx, SysReAllocString
cmovne ecx, eax
cmp dword [ebp - 0x1034], 8
push ecx
push 0
push 0
push str.HTTP_1.1
lea eax, [ebp - 0x1048]
mov ecx, 0x68fcb0
cmovae eax, dword [ebp - 0x1048]
cmp dword [ebp - 0x109c], 0
push eax
mov eax, 0x68fca8
cmovne eax, ecx
push eax
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebx + 0x14], eax
test eax, eax
jne 0x49bce6
push 0x6aec40
lea eax, [ebp - 0x1090]
mov dword [ebp - 0x1090], 1
push eax
call fcn.005e9743
test edi, edi
jne 0x49bcee
xor esi, esi
jmp 0x49bd02
mov esi, edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x49bcf3
sub esi, ecx
sar esi, 1
mov eax, dword [ebp - 0x106c]
test eax, eax
jne 0x49bd10
xor edi, edi
jmp 0x49bd1e
mov edi, eax
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x49bd15
sub edi, ecx
lea eax, [ebp - 0x1060]
push eax
lea ecx, [ebx + 0x18]
call fcn.0049e870
mov byte [ebp - 4], 4
lea eax, [ebp - 0x1060]
cmp dword [ebp - 0x104c], 0x10
push 0xa0000000
push dword [ebp - 0x1050]
cmovae eax, dword [ebp - 0x1060]
push eax
push dword [ebx + 0x14]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov ecx, dword [ebp - 0x106c]
push edi
push ecx
push esi
push dword [ebp - 0x1098]
push dword [ebx + 0x14]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x49bd91
push 0x6aec40
lea eax, [ebp - 0x1070]
mov dword [ebp - 0x1070], 3
push eax
call fcn.005e9743
push 0x1000
lea eax, [ebp - 0x1017]
mov byte [ebp - 0x1018], 0
push 0
push eax
call fcn.005eb2b0
add esp, 0xc
mov dword [ebp - 0x1064], 0x1000
mov ecx, ebx
call fcn.0049cad0
mov dword [ebx + 4], eax
cmp eax, 0x194
jne 0x49bde4
push 0x6aec40
lea eax, [ebp - 0x1080]
mov dword [ebp - 0x1080], 5
push eax
call fcn.005e9743
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, dword [ebp - 0x1084]
lea eax, [ebp - 0x1064]
push eax
push 0x1000
lea eax, [ebp - 0x1018]
push eax
push dword [ebx + 0x14]
call edi
test eax, eax
je 0x49be3b
mov eax, dword [ebp - 0x1064]
test eax, eax
je 0x49be3b
cmp eax, 0x1001
jae 0x49be36
push eax
mov byte [ebp + eax - 0x1018], 0
mov ecx, esi
lea eax, [ebp - 0x1018]
push eax
call fcn.004296c0
jmp 0x49bdf0
call fcn.005edd00
lea ecx, [ebp - 0x1060]
call fcn.00422760
lea ecx, [ebp - 0x1048]
call fcn.00422660
lea ecx, [ebp - 0x1030]
call fcn.00422660
jmp 0x49be94
push 0x6aec40
lea eax, [ebp - 0x1088]
mov dword [ebp - 0x1088], 0xe
push eax
call fcn.005e9743
mov eax, dword [ebp - 0x1074]
mov ecx, dword [ebp - 0x10a0]
mov dword [eax + 0x78], ecx
mov eax, 0x49be8e
ret
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005e9734
mov esp, ebp
pop ebp
ret 0x14