Function at 0x4de110
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 0x538516
mov eax, dword fs:[0]
push eax
mov eax, 0x105c
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 - 0x1034], ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1058], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x105c], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x1050], 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 ebx, eax
or edi, 0xffffffff
mov dword [ebp - 0x1040], ebx
test ebx, ebx
jne 0x4de1cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x55c420
push 0x55c44c
call fcn.004e78a0
push eax
call fcn.004e76a0
add esp, 0x10
jmp 0x4de277
push 0
push 0
push 3
push 0
push 0
push 0x1bb
push dword [ebp + 8]
push ebx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, eax
mov dword [ebp - 0x1044], edi
test edi, edi
jne 0x4de218
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x55c48c
push 0x55c4b8
call fcn.004e78a0
push eax
call fcn.004e76a0
add esp, 0x10
jmp 0x4de266
push 0
push 0x84803200
push 0
push 0
push 0
push dword [ebp + 0xc]
push 0
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
mov dword [ebp - 0x1054], esi
test esi, esi
jne 0x4de2f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x55c4fc
push 0x55c528
call fcn.004e78a0
push eax
call fcn.004e76a0
add esp, 0x10
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test ebx, ebx
je 0x4de26d
push ebx
call esi
test edi, edi
je 0x4de274
push edi
call esi
or edi, 0xffffffff
mov eax, dword [ebp - 0x101c]
cmp eax, 0x10
jb 0x4de295
inc eax
lea ecx, [ebp - 0x1030]
push eax
push dword [ebp - 0x1030]
call fcn.00405350
mov byte [ebp - 4], 0
mov eax, edi
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 0x4de659
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4de655
mov eax, dword [edx + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [eax + 4]
call ebx
jmp 0x4de65f
push 0x55c598
lea ecx, [ebp - 0x104c]
call fcn.00401ff0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x104c]
push 0x10000000
push dword [eax - 0xc]
push eax
push esi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
jne 0x4de350
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0x55c56c
push 0x55c660
call fcn.004e78a0
push eax
call fcn.004e76a0
add esp, 0x10
lea ecx, [ebp - 0x104c]
call fcn.00402ed0
jmp 0x4de63f
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x4de3d9
mov dword [ebp - 0x1048], eax
lea eax, [ebp - 0x1064]
push eax
lea eax, [ebp - 0x1048]
mov dword [ebp - 0x1064], 4
push eax
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
test eax, eax
je 0x4de3d3
or dword [ebp - 0x1048], 0x3380
lea eax, [ebp - 0x1048]
push 4
push eax
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x4de3d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryHttpsNetworkData
push 0x55c6b0
jmp 0x4de332
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1001
lea eax, [ebp - 0x1018]
push 0
push eax
call fcn.0049e130
mov esi, dword [ebp - 0x1058]
add esp, 0xc
mov dword [ebp - 0x103c], 0
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 0x1034]
mov ebx, dword [ebp - 0x105c]
lea eax, [ebp - 0x1040]
push eax
push ecx
lea eax, [ebp - 0x1068]
mov ecx, ebx
push eax
call fcn.00415cf0
push dword [ebp - 0x1034]
lea eax, [ebp - 0x1044]
push eax
push ecx
lea eax, [ebp - 0x1060]
mov ecx, ebx
push eax
call fcn.00415cf0
push dword [ebp - 0x1034]
lea eax, [ebp - 0x1054]
push eax
push ecx
lea eax, [ebp - 0x1060]
mov ecx, ebx
push eax
call fcn.00415cf0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x1000
lea eax, [ebp - 0x1018]
mov dword [ebp - 0x103c], 0
push 0
push eax
call fcn.0049e130
mov esi, dword [ebp - 0x1054]
lea eax, [ebp - 0x103c]
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
add esp, 0xc
push eax
push 0x1000
lea eax, [ebp - 0x1018]
push eax
push esi
call edi
cmp dword [ebp - 0x103c], 0
je 0x4de523
cmp byte [ebp - 0x1018], 0
jne 0x4de4bf
xor eax, eax
jmp 0x4de4d1
lea eax, [ebp - 0x1018]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4de4c8
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 - 0x103c], 0
push 0
push eax
call fcn.0049e130
add esp, 0xc
lea eax, [ebp - 0x103c]
push eax
push 0x1000
lea eax, [ebp - 0x1018]
push eax
push esi
call edi
cmp dword [ebp - 0x103c], 0
jne 0x4de4b2
cmp dword [ebp - 0x1020], 0
sete al
test al, al
jne 0x4de557
mov eax, dword [ebp - 0x1034]
lea ecx, [ebp - 0x1030]
mov dword [ebp - 0x1050], 1
cmp eax, ecx
je 0x4de557
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00406660
mov edi, dword [ebp - 0x1058]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x1040]
mov ecx, ebx
push eax
lea eax, [ebp - 0x1038]
push eax
call fcn.00415c70
push dword [ebp - 0x1034]
lea eax, [ebp - 0x1034]
mov ecx, ebx
push dword [ebp - 0x1038]
push eax
call fcn.00413200
lea eax, [ebp - 0x1044]
mov ecx, ebx
push eax
lea eax, [ebp - 0x1038]
push eax
call fcn.00415c70
push dword [ebp - 0x1034]
lea eax, [ebp - 0x1034]
mov ecx, ebx
push dword [ebp - 0x1038]
push eax
call fcn.00413200
lea eax, [ebp - 0x1054]
mov ecx, ebx
push eax
lea eax, [ebp - 0x1038]
push eax
call fcn.00415c70
push dword [ebp - 0x1034]
lea eax, [ebp - 0x1034]
mov ecx, ebx
push dword [ebp - 0x1038]
push eax
call fcn.00413200
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0x104c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4de633
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4de631
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4de633
call edi
mov ebx, dword [ebp - 0x1040]
mov edi, dword [ebp - 0x1044]
test esi, esi
je 0x4de260
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
jmp 0x4de266
mov ecx, edx
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x4de696
mov edx, dword [eax]
push eax
mov ecx, dword [edx]
mov esi, dword [ecx + 4]
cmp ecx, vtable.ATL::CAtlStringMgr.0
jne 0x4de692
mov ecx, dword [edx + 4]
push 0
push dword [ecx + 4]
call ebx
jmp 0x4de696
mov ecx, edx
call esi
mov eax, dword [ebp - 0x1050]
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