Function at 0x411e50
Capabilities:
Check for time delay via gettickcount
Check http status code
Connect to http server
Get http content length
Parse url
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452890
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1138
call fcn.00432f70
mov eax, dword [0x46dec0]
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x1100], esi
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov dword [ecx], eax
mov dword [ebp - 0x10e8], eax
mov dword [ebp - 0x10e4], eax
mov dword [ebp - 0x1104], eax
mov dword [ebp - 0x10f0], eax
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x18]
mov edi, 0x10
cmp eax, edi
mov dword [ebp - 0x10fc], esi
lea ebx, [esi + 4]
jb 0x411ec4
mov eax, dword [ebx]
jmp 0x411ec6
mov eax, ebx
mov ecx, dword [0x46f470]
mov edx, dword [ecx]
push eax
push str._Down_url:_s
push ecx
call dword [edx + 4]
mov eax, dword [esi + 0x18]
add esp, 0xc
cmp eax, edi
jb 0x411ee6
mov eax, dword [ebx]
jmp 0x411ee8
mov eax, ebx
push eax
push str._Down_url:_s
push 0x46f474
call fcn.0040ac70
xor eax, eax
mov ecx, 0xf
lea edi, [ebp - 0x1148]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x14]
lea eax, [ebp - 0xd4]
mov dword [ebp - 0x1138], eax
mov eax, 1
mov dword [ebp - 0x1118], eax
mov dword [ebp - 0x1110], eax
mov eax, dword [esi + 0x18]
add esp, 0xc
cmp eax, 0x10
mov dword [ebp - 0x1148], 0x3c
mov dword [ebp - 0x1134], 0x80
jb 0x411f4a
mov eax, dword [ebx]
jmp 0x411f4c
mov eax, ebx
lea edx, [ebp - 0x1148]
push edx
push 0
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x411fb7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp dword [esi + 0x18], 0x10
jb 0x411f73
mov eax, dword [ebx]
jmp 0x411f75
mov eax, ebx
mov ecx, dword [0x46f470]
mov edx, dword [ecx]
push edi
push eax
push 0x16d
push 0x4575d4
push ecx
call dword [edx + 4]
mov eax, dword [esi + 0x18]
add esp, 0x14
cmp eax, 0x10
jb 0x411f9a
mov ebx, dword [ebx]
push edi
push 1
push ebx
push 0x16e
push 0x4575bc
push 0x46f474
call fcn.0040ac70
add esp, 0x18
jmp 0x411fe5
cmp dword [ebp - 0x113c], 3
je 0x412000
mov eax, dword [0x46f470]
mov ecx, dword [eax]
push 0x4575a8
push eax
call dword [ecx + 4]
add esp, 8
push str._Down_not_http
push 0x46f474
call fcn.0040ac70
add esp, 8
mov dword [ebp - 0x10e0], 1
mov esi, 3
mov dword [ebp - 4], 0xffffffff
jmp 0x412771
mov edx, dword [ebp - 0x1130]
mov ecx, dword [esi + 0x94]
push 0
push 0x4000a00
push 3
push 0
push 0
push edx
lea eax, [ebp - 0xd4]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [ebp - 0x1104], eax
jne 0x412088
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [0x46f470]
mov edx, dword [eax]
push ebx
push str._Down_l
push eax
call dword [edx + 4]
add esp, 0xc
push ebx
push 1
push 0x17f
push str._Down:_d_conn___d:_d
push 0x46f474
call fcn.0040ac70
mov eax, dword [ebp + 0x14]
xor esi, esi
add esp, 0x14
or esi, 1
mov dword [ebp - 0x10e0], ebx
mov dword [eax], 1
mov dword [ebp - 4], 0xffffffff
jmp 0x412760
mov ecx, dword [ebp - 0x111c]
push 0
push 0x4000a00
push 0
push 0
push 0
push ecx
push 0x45755c
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
test eax, eax
mov dword [ebp - 0x10f0], eax
jne 0x41210d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x46f470]
mov edx, dword [eax]
push edi
push 0x188
push str._Down:_d_open_request__d
push eax
call dword [edx + 4]
add esp, 0x10
push edi
push 1
push 0x189
push str._Down:_d_opreq__d:_d
push 0x46f474
call fcn.0040ac70
mov eax, dword [ebp + 0x14]
xor esi, esi
add esp, 0x14
or esi, 1
mov dword [ebp - 0x10e0], edi
mov dword [eax], 1
mov dword [ebp - 4], 0xffffffff
jmp 0x41274f
mov ebx, dword [ebp + 0x10]
test ebx, ebx
mov edi, dword [ebp + 0xc]
ja 0x41211f
test edi, edi
jbe 0x4121ab
mov eax, dword [0x46f470]
mov ecx, dword [eax]
push ebx
push edi
push 0x457514
push eax
call dword [ecx + 4]
add esp, 0x10
push ebx
push edi
push 0x457514
push 0x46f474
call fcn.0040ac70
add esp, 0x10
push ebx
push edi
push str.Range:_bytes_I64u_
lea edx, [ebp - 0x54]
push 0x40
push edx
call fcn.00433724
mov ecx, dword [ebp - 0x10f0]
add esp, 0x14
push 0x20000000
push eax
lea eax, [ebp - 0x54]
push eax
push ecx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
jne 0x4121ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x46f470]
mov edx, dword [eax]
push edi
push 0x196
push str._Down:_d_add_request__d
push eax
call dword [edx + 4]
add esp, 0x10
push edi
push 1
push 0x197
push str._Down:_d_adreq__d:_d
jmp 0x4120e0
mov ecx, dword [ebp - 0x10f0]
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x4121f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x46f470]
mov edx, dword [eax]
push edi
push 0x1a0
push str._Down:_d_send_request__d
push eax
call dword [edx + 4]
add esp, 0x10
push edi
push 1
push 0x1a1
push str._Down:_d_sndreq__d:_d
jmp 0x4120e0
mov eax, dword [ebp - 0x10f0]
push 0
lea ecx, [ebp - 0x10ec]
push ecx
lea edx, [ebp - 0x10d8]
push edx
push 0x20000013
push eax
mov dword [ebp - 0x10ec], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov ax, word [ebp - 0x10d6]
movzx edi, ah
movzx ecx, al
mov eax, dword [ebp - 0x10d8]
shl edi, 8
or edi, ecx
movzx edx, ah
shl edi, 8
or edi, edx
movzx eax, al
shl edi, 8
or edi, eax
mov eax, dword [0x46f470]
mov ecx, dword [eax]
push edi
push 0x457488
push eax
call dword [ecx + 4]
add esp, 0xc
push edi
push str._Down_ret__d
push 0x46f474
call fcn.0040ac70
mov eax, dword [ebp + 0xc]
mov edx, eax
add esp, 0xc
or edx, ebx
jne 0x41229a
cmp edi, 0xc8
je 0x4122e4
xor esi, esi
or esi, 4
mov dword [ebp - 0x10e0], edi
mov dword [ebp - 4], 0xffffffff
jmp 0x41274f
test ebx, ebx
ja 0x4122a2
test eax, eax
jbe 0x4122e4
cmp edi, 0xce
je 0x4122e4
mov ecx, dword [esi + 0x20]
test ecx, ecx
jne 0x412283
mov ecx, dword [esi + 0x24]
test ecx, ecx
jne 0x412283
cmp edi, 0x1a0
jne 0x412283
mov dword [ebp - 0x10e8], eax
mov dword [ebp - 0x10e4], ebx
mov dword [ebp - 0x10e0], 0
xor esi, esi
mov dword [ebp - 4], 0xffffffff
jmp 0x41274f
mov edx, dword [ebp - 0x10f0]
push 0
lea eax, [ebp - 0x10ec]
push eax
lea ecx, [ebp - 0x10d8]
push ecx
push 0x20000005
push edx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x41234a
mov eax, dword [0x46f470]
mov ecx, dword [eax]
push str._Down_no_Content_Length
push eax
call dword [ecx + 4]
add esp, 8
push str._Down_no_Content_Length
push 0x46f474
call fcn.0040ac70
mov dword [ebp - 0x10e0], 2
mov esi, 3
add esp, 8
mov dword [ebp - 4], 0xffffffff
jmp 0x41274f
mov ax, word [ebp - 0x10d6]
movzx edi, ah
shl edi, 8
movzx edx, al
mov eax, dword [ebp - 0x10d8]
or edi, edx
shl edi, 8
movzx ecx, ah
or edi, ecx
movzx edx, al
shl edi, 8
or edi, edx
xor eax, eax
test ebx, ebx
mov dword [ebp - 0x10e8], edi
mov dword [ebp - 0x10e4], eax
ja 0x41238b
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jbe 0x41239c
add edi, dword [ebp + 0xc]
adc eax, ebx
mov dword [ebp - 0x10e8], edi
mov dword [ebp - 0x10e4], eax
mov edx, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
or edx, ecx
je 0x4123cc
cmp edi, dword [esi + 0x20]
jne 0x4123af
cmp eax, ecx
je 0x4123cc
mov eax, dword [0x46f470]
mov ecx, dword [eax]
push str._Down_length_not_match
push eax
call dword [ecx + 4]
add esp, 8
push str._Down_length_not_match
jmp 0x41252b
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10e4]
push 0
push ebx
push edx
push eax
push edi
mov ecx, esi
call fcn.00411bc0
push esi
call dword [esi + 0x68]
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10e4]
mov eax, dword [0x46f470]
mov ecx, dword [eax]
add esp, 4
push ebx
push esi
push edx
push edi
push 0x457428
push eax
call dword [ecx + 4]
mov eax, dword [ebp - 0x10e4]
add esp, 0x18
push ebx
push esi
push eax
push edi
push str._Down_total:_I64u_got:_I64u
push 0x46f474
call fcn.0040ac70
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x1100]
mov dword [ebp - 0x10f4], eax
xor esi, esi
mov dword [ebp - 0x10f8], eax
mov eax, dword [ecx + 0x9c]
xor ebx, ebx
mov dword [ebp - 0x10ec], eax
mov dword [ebp - 0x10d8], eax
mov dword [ebp - 0x10e0], esi
mov eax, dword [ebp - 0x10d8]
test eax, eax
mov edi, dword [ebp + 8]
jle 0x4125c5
mov ecx, dword [ebp - 0x10f0]
lea edx, [ebp - 0x1108]
push edx
push 0x1000
lea eax, [ebp - 0x10d4]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4124df
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [0x46f470]
mov edx, dword [eax]
push ebx
push 0x1e5
push str._Down:_d_read__d
push eax
call dword [edx + 4]
add esp, 0x10
push ebx
push 1
push 0x1e6
push str._Down:_d_read__d:_d
push 0x46f474
call fcn.0040ac70
mov eax, dword [ebp + 0x14]
xor esi, esi
add esp, 0x14
or esi, 1
mov dword [ebp - 0x10e0], ebx
mov dword [eax], 1
jmp 0x4124ed
mov eax, dword [ebp - 0x1108]
test eax, eax
jne 0x41258f
test esi, esi
je 0x4124fd
mov dword [ebp - 4], 0xffffffff
jmp 0x41274f
mov ecx, dword [ebp + 0xc]
cmp dword [ebp - 0x10e8], ecx
jne 0x412513
mov edx, dword [ebp + 0x10]
cmp dword [ebp - 0x10e4], edx
je 0x41254f
mov eax, dword [0x46f470]
mov ecx, dword [eax]
push str._Down_down_length_report
push eax
call dword [ecx + 4]
add esp, 8
push str._Down_down_length_report
push 0x46f474
call fcn.0040ac70
mov esi, 3
mov dword [ebp - 0x10e0], esi
add esp, 8
mov dword [ebp - 4], 0xffffffff
jmp 0x41274f
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x48]
mov eax, dword [0x46f470]
mov ecx, dword [eax]
push 0x4573b8
push eax
call dword [ecx + 4]
add esp, 8
push 0x4573a8
push 0x46f474
call fcn.0040ac70
add esp, 8
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10e0], esi
jmp 0x41274f
mov edx, dword [edi]
push eax
lea eax, [ebp - 0x10d4]
push eax
mov ecx, edi
call dword [edx + 0x38]
mov eax, dword [ebp - 0x1108]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
add ecx, eax
mov dword [ebp + 0xc], ecx
mov ecx, dword [ebp - 0x10d8]
adc edi, 0
add ebx, eax
sub ecx, eax
mov dword [ebp + 0x10], edi
mov dword [ebp - 0x10d8], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp - 0x10f4]
mov edi, eax
sub eax, edx
cmp eax, 0x3e8
jb 0x41264c
test ebx, ebx
mov dword [ebp - 0x10f4], ebx
fild dword [ebp - 0x10f4]
jge 0x4125f2
fadd qword [0x456650]
test eax, eax
fmul qword [0x4573a0]
mov dword [ebp - 0x10f4], eax
fild dword [ebp - 0x10f4]
jge 0x41260e
fadd qword [0x456650]
fdivp st(1)
call fcn.00433b64
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x10e4]
push ecx
mov ecx, dword [ebp - 0x10e8]
push edx
push eax
push ecx
mov ecx, dword [ebp - 0x10fc]
mov dword [ebp - 0x10f4], edi
xor ebx, ebx
call fcn.00411bc0
mov eax, dword [ebp - 0x10fc]
push eax
call dword [eax + 0x68]
add esp, 4
mov eax, dword [ebp - 0x1100]
mov edx, dword [ebp - 0x10ec]
cmp edx, dword [eax + 0x9c]
je 0x41267d
mov eax, dword [eax + 0x9c]
mov dword [ebp - 0x10ec], eax
mov dword [ebp - 0x10d8], eax
mov dword [ebp - 0x10f8], edi
jmp 0x412459
mov eax, dword [ebp - 0x10d8]
test eax, eax
jg 0x412697
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov ecx, dword [ebp - 0x10f8]
mov eax, edi
sub eax, ecx
test eax, eax
mov dword [ebp - 0x10f8], eax
fild dword [ebp - 0x10f8]
jge 0x4126b7
fadd qword [0x456650]
fmul qword [0x457398]
fimul dword [ebp - 0x10ec]
call fcn.00433b64
mov ecx, dword [ebp - 0x10d8]
add ecx, eax
mov eax, dword [ebp - 0x10ec]
add eax, eax
cmp ecx, eax
mov dword [ebp - 0x10d8], ecx
jle 0x4126e8
mov dword [ebp - 0x10d8], eax
mov dword [ebp - 0x10f8], edi
jmp 0x412459
mov eax, dword [ebp - 0x10f0]
test eax, eax
je 0x412760
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x1104]
test eax, eax
je 0x412771
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10e4]
mov edi, dword [ebp - 0x10fc]
push 0
push eax
mov eax, dword [ebp - 0x10e8]
push ecx
push edx
push eax
mov ecx, edi
call fcn.00411bc0
push edi
call dword [edi + 0x68]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10e0]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
add esp, 4
mov edx, esi
call fcn.00432fde
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10