Function at 0x4dcf30
Capabilities:
Check for time delay via gettickcount
Connect to http server
Create http request
Download and write a file
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Send data
Send http request
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53843c
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x59a0a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edx, ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], 0
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov byte [ebp - 4], 3
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x24], ebx
test edi, edi
je 0x4dcfa3
mov eax, dword [edi]
push ebx
push ebx
mov eax, dword [eax]
cmp eax, method.ATL::CComObjectStackEx_class_GameDownload::CMainUISpecial_.1.virtual_0
jne 0x4dcf98
mov eax, dword [edi - 0xc]
lea ecx, [edi - 0xc]
push edx
call dword [eax + 0xc]
jmp 0x4dcfa3
push 4
push 0
push 0
push edx
mov ecx, edi
call eax
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4dcff7
call fcn.004054a0
test eax, eax
jns 0x4dcffa
test esi, esi
je 0x4dcfd6
mov dword [esi], 0x18
push eax
push dword [ebp + 0x10]
push 0x55cd44
push 0x55cd80
call fcn.004e78a0
push eax
call fcn.004e76a0
add esp, 0x14
jmp 0x4dd51a
mov dword [ebp - 0x58], eax
push 0
push 0
push 0
push dword [ebp + 0x18]
push 0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x4dd040
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x4dd022
mov dword [esi], 0x19
push eax
push 0x55cdcc
push str.__s__InternetOpen_Fail_Err__u_
call fcn.004e78a0
push eax
call fcn.004e76a0
add esp, 0x10
jmp 0x4dd50c
push 0
push 0
push 3
push 0
push 0
push 0x1bb
push dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x4dd094
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x4dd070
mov dword [esi], 0x1a
push eax
push 0x55ce44
push str.__s__InternetConnect_Fail_Err__u_
call fcn.004e78a0
push eax
call fcn.004e76a0
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 0x10
jmp 0x4dd4fd
push 0
push 0x84803200
push 0
push 0
push 0
push dword [ebp + 0xc]
push 0
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4dd0e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x4dd0c4
mov dword [esi], 0x1b
push eax
push 0x55cee4
push str.__s__HttpOpenRequest_Fail_Err__u_
call fcn.004e78a0
push eax
call fcn.004e76a0
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 0x10
jmp 0x4dd4fd
push str.User_Agent:_Mozilla_4.0__compatible__MSIE_8.0__Windows_NT_6.1__Trident_4.0__r_n
lea ecx, [ebp - 0x14]
call fcn.00401ff0
mov ebx, dword [ebp - 0x10]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
push 0x10000000
push dword [eax - 0xc]
push eax
push ebx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
jne 0x4dd14a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x4dd123
mov dword [esi], 0x20
push 0
push 0x55d024
push str.__s__HttpAddRequestHeaders_Fail_Err__u_
call fcn.004e78a0
push eax
call fcn.004e76a0
add esp, 0x10
lea ecx, [ebp - 0x14]
call fcn.00402ed0
jmp 0x4dd4ef
push 0
push 0
push 0
push 0
push ebx
mov ebx, dword [sym.imp.WININET.dll_HttpSendRequestW]
call ebx
test eax, eax
jne 0x4dd24d
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x2c], 4
push eax
push 0x1f
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
test eax, eax
je 0x4dd1d1
or dword [ebp - 0x18], 0x3380
lea eax, [ebp - 0x18]
push 4
push eax
push 0x1f
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0
push 0
push 0
push 0
push dword [ebp - 0x10]
call ebx
test eax, eax
jne 0x4dd24d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x4dd1c1
mov dword [esi], 0x1c
push eax
push 0x55d0d0
push 0x55d108
jmp 0x4dd12f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test esi, esi
je 0x4dd1e3
mov dword [esi], 0x1e
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x59fee8]
cmp eax, dword [ecx + 4]
jle 0x4dd235
push 0x59fee8
call fcn.0049af28
add esp, 4
cmp dword [0x59fee8], 0xffffffff
jne 0x4dd235
mov byte [ebp - 4], 5
call fcn.004e7150
push 0x53eaa0
call fcn.0049b282
add esp, 4
mov byte [ebp - 4], 4
push 0x59fee8
call fcn.0049aee9
add esp, 4
push ebx
push str.QueryHttpsNetworkData2File
push str.__s__HttpSendRequest_Fail_Err__u_
push 0x59feec
call fcn.004e76a0
add esp, 0x10
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 8
push eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x38], 0
push eax
push 0x20000005
xorps xmm0, xmm0
push esi
movlpd qword [ebp - 0x60], xmm0
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4dd2a2
mov dword [ebp - 0x24], 1
test edi, edi
je 0x4dd2a2
push dword [ebp - 0x60]
mov eax, dword [edi]
mov ecx, edi
push dword [ebp - 0x1c]
call dword [eax + 4]
test eax, eax
jne 0x4dd13d
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
push 0x10000
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 6
call fcn.00405210
xorps xmm0, xmm0
mov dword [ebp + 0x1c], 0
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x30], xmm0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [ebp - 0x74]
push 0x10000
push 0
push ebx
mov dword [ebp - 0x40], eax
mov dword [ebp + 0x1c], 0
call fcn.0049e130
add esp, 0xc
lea eax, [ebp + 0x1c]
push eax
push 0x10000
push ebx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp + 0x1c]
mov esi, dword [ebp - 0x50]
test eax, eax
je 0x4dd42f
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x20], edx
add esi, eax
mov dword [ebp - 0x18], esi
adc ecx, 0
cmp dword [ebp - 0x24], 0
mov dword [ebp - 0x34], ecx
je 0x4dd3d9
test edi, edi
je 0x4dd3d9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
sub esi, dword [ebp - 0x40]
je 0x4dd377
push 0
push 0x3e8
push dword [ebp - 0x34]
push dword [ebp - 0x18]
call fcn.0049ba40
push 0
push esi
push edx
push eax
call fcn.0049bc30
mov ecx, eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x20], ecx
jmp 0x4dd37a
mov ecx, dword [ebp - 0x20]
mov eax, dword [edi]
mov esi, dword [ebp - 0x18]
mov eax, dword [eax]
cmp eax, method.ATL::CComObjectStackEx_class_GameDownload::CMainUISpecial_.1.virtual_0
jne 0x4dd3c6
mov ecx, dword [ebp - 0x60]
xorps xmm0, xmm0
movlpd qword [ebp - 0x68], xmm0
test ecx, ecx
je 0x4dd3ac
mov eax, esi
mov edx, 0x3e8
mul edx
push 0
push ecx
push edx
push eax
call fcn.0049bc30
jmp 0x4dd3af
mov eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x20]
lea ecx, [edi - 0xc]
push edx
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x2c]
mov eax, dword [ecx]
push dword [ebp - 0x1c]
call dword [eax + 0xc]
jmp 0x4dd3d6
push 0
push ecx
push 5
push dword [ebp - 0x60]
mov ecx, edi
push esi
push dword [ebp - 0x1c]
call eax
mov eax, dword [ebp + 0x1c]
push 0
lea ecx, [ebp - 0x4c]
push ecx
push eax
push ebx
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4dd3f7
call fcn.004054a0
test eax, eax
js 0x4dd42f
push 0x10000
push 0
push ebx
mov dword [ebp + 0x1c], 0
call fcn.0049e130
add esp, 0xc
lea eax, [ebp + 0x1c]
push eax
push 0x10000
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x34]
test eax, eax
jne 0x4dd327
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x4dd442
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [ebp - 0x58], eax
test edi, edi
je 0x4dd459
mov eax, dword [edi]
mov ecx, edi
push 0
push 0
push 6
push dword [ebp - 0x60]
push esi
push dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x34], 1
mov byte [ebp - 4], 4
test ebx, ebx
je 0x4dd4b5
mov eax, dword [ebp - 0x6c]
sub eax, ebx
cmp eax, 0xffffffff
jbe 0x4dd477
call fcn.004a4e3e
cmp eax, 0x1000
jb 0x4dd4ac
test bl, 0x1f
je 0x4dd488
call fcn.004a4e3e
mov eax, dword [ebx - 4]
cmp eax, ebx
jb 0x4dd494
call fcn.004a4e3e
sub ebx, eax
cmp ebx, 4
jae 0x4dd4a0
call fcn.004a4e3e
cmp ebx, 0x23
jbe 0x4dd4aa
call fcn.004a4e3e
mov ebx, eax
push ebx
call fcn.0049aa1d
add esp, 4
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4dd4ef
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4dd4eb
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4dd4ef
mov ecx, edx
call esi
push dword [ebp - 0x10]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov ebx, dword [ebp - 0x34]
push dword [ebp - 0x44]
call esi
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4dd50c
push eax
call esi
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x4dd51a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov ecx, dword [ebp + 8]
mov eax, edi
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4dd556
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4dd552
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4dd556
mov ecx, edx
call esi
mov byte [ebp - 4], 0
mov eax, edi
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4dd58f
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4dd58b
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4dd58f
mov ecx, edx
call esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], edi
dec edi
test edi, edi
jg 0x4dd5db
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4dd5d7
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edx
call esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret