Function at 0x4ddbd0
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 0x5384c8
mov eax, dword fs:[0]
push eax
mov eax, 0x1054
call fcn.0049b540
mov eax, dword [0x59a0a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1050], ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1058], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1038], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x104c], 0
mov dword [ebp - 0x101c], 0xf
mov dword [ebp - 0x1020], 0
mov byte [ebp - 0x1030], 0
push 0
push 0
push 0
push edx
push 0
mov byte [ebp - 4], 2
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
or ebx, 0xffffffff
mov dword [ebp - 0x1040], edi
test edi, edi
jne 0x4ddc8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x55c6f4
push 0x55c720
call fcn.004e78a0
push eax
call fcn.004e76a0
add esp, 0x10
jmp 0x4de039
push 0
push 0
push 3
push 0
push 0
push 0x50
push dword [ebp + 8]
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov esi, eax
mov dword [ebp - 0x1044], esi
test esi, esi
jne 0x4ddcd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x55c760
push 0x55c7b8
call fcn.004e78a0
push eax
call fcn.004e76a0
add esp, 0x10
jmp 0x4de01d
push 0
push 0x84000200
push 0
push 0
push 0
push dword [ebp + 0xc]
push 0
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ebx, eax
mov dword [ebp - 0x1054], ebx
test ebx, ebx
jne 0x4ddd1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x55c78c
push 0x55c828
call fcn.004e78a0
push eax
call fcn.004e76a0
add esp, 0x10
jmp 0x4de01a
push 0x55c898
lea ecx, [ebp - 0x1048]
call fcn.00401ff0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1048]
push 0x10000000
push dword [eax - 0xc]
push eax
push ebx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
jne 0x4ddd79
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0x55c7fc
push 0x55c968
call fcn.004e78a0
push eax
call fcn.004e76a0
add esp, 0x10
lea ecx, [ebp - 0x1048]
call fcn.00402ed0
jmp 0x4de00f
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x4ddd9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryHttpNetworkData
push 0x55c9b8
jmp 0x4ddd5b
push 0x1001
lea eax, [ebp - 0x1018]
push 0
push eax
call fcn.0049e130
mov ebx, dword [ebp - 0x1058]
add esp, 0xc
mov dword [ebp - 0x1034], 0
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 0x1050]
mov edi, dword [ebp - 0x1038]
lea eax, [ebp - 0x1040]
push eax
push ecx
lea eax, [ebp - 0x1060]
mov ecx, edi
push eax
call fcn.00415cf0
push dword [ebp - 0x1050]
lea eax, [ebp - 0x1044]
push eax
push ecx
lea eax, [ebp - 0x1060]
mov ecx, edi
push eax
call fcn.00415cf0
push dword [ebp - 0x1050]
lea eax, [ebp - 0x1054]
push eax
push ecx
lea eax, [ebp - 0x1060]
mov ecx, edi
push eax
call fcn.00415cf0
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x1000
lea eax, [ebp - 0x1018]
mov dword [ebp - 0x1034], 0
push 0
push eax
call fcn.0049e130
mov ebx, dword [ebp - 0x1054]
lea eax, [ebp - 0x1034]
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
add esp, 0xc
push eax
push 0x1000
lea eax, [ebp - 0x1018]
push eax
push ebx
call esi
cmp dword [ebp - 0x1034], 0
je 0x4ddef1
nop dword [eax + eax]
cmp byte [ebp - 0x1018], 0
jne 0x4dde8d
xor eax, eax
jmp 0x4dde9f
lea eax, [ebp - 0x1018]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4dde96
sub eax, edx
push eax
lea eax, [ebp - 0x1018]
push eax
lea ecx, [ebp - 0x1030]
call fcn.004097a0
push 0x1000
lea eax, [ebp - 0x1018]
mov dword [ebp - 0x1034], 0
push 0
push eax
call fcn.0049e130
add esp, 0xc
lea eax, [ebp - 0x1034]
push eax
push 0x1000
lea eax, [ebp - 0x1018]
push eax
push ebx
call esi
cmp dword [ebp - 0x1034], 0
jne 0x4dde80
mov esi, dword [ebp - 0x1058]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x1040]
mov ecx, edi
push eax
lea eax, [ebp - 0x103c]
push eax
call fcn.00415c70
push dword [ebp - 0x1038]
lea eax, [ebp - 0x1038]
mov ecx, edi
push dword [ebp - 0x103c]
push eax
call fcn.00413200
lea eax, [ebp - 0x1044]
mov ecx, edi
push eax
lea eax, [ebp - 0x103c]
push eax
call fcn.00415c70
push dword [ebp - 0x1038]
lea eax, [ebp - 0x1038]
mov ecx, edi
push dword [ebp - 0x103c]
push eax
call fcn.00413200
lea eax, [ebp - 0x1054]
mov ecx, edi
push eax
lea eax, [ebp - 0x103c]
push eax
call fcn.00415c70
push dword [ebp - 0x1038]
lea eax, [ebp - 0x1038]
mov ecx, edi
push dword [ebp - 0x103c]
push eax
call fcn.00413200
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x1020], 0
sete al
test al, al
jne 0x4ddfc6
mov eax, dword [ebp - 0x1050]
lea ecx, [ebp - 0x1030]
mov dword [ebp - 0x104c], 1
cmp eax, ecx
je 0x4ddfc6
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00406660
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov ecx, dword [ebp - 0x1048]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4de003
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4ddfff
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4de003
mov ecx, edx
call esi
mov edi, dword [ebp - 0x1040]
mov esi, dword [ebp - 0x1044]
test ebx, ebx
je 0x4de01a
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
or ebx, 0xffffffff
test edi, edi
je 0x4de02c
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
jmp 0x4de032
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test esi, esi
je 0x4de039
push esi
call edi
mov eax, dword [ebp - 0x101c]
cmp eax, 0x10
jb 0x4de057
inc eax
lea ecx, [ebp - 0x1030]
push eax
push dword [ebp - 0x1030]
call fcn.00405350
mov byte [ebp - 4], 0
mov eax, ebx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x101c], 0xf
add ecx, 0xfffffff0
mov dword [ebp - 0x1020], 0
mov byte [ebp - 0x1030], 0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4de0ad
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4de0a9
mov eax, dword [edx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [eax + 4]
call edi
jmp 0x4de0b3
mov ecx, edx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4de0ea
mov edx, dword [eax]
push eax
mov ecx, dword [edx]
mov esi, dword [ecx + 4]
cmp ecx, vtable.ATL::CAtlStringMgr.0
jne 0x4de0e6
mov ecx, dword [edx + 4]
push 0
push dword [ecx + 4]
call edi
jmp 0x4de0ea
mov ecx, edx
call esi
mov eax, dword [ebp - 0x104c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret