Function at 0x416200
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 0x456f30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1138
call fcn.00437610
mov eax, dword [0x473eb8]
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 0x416274
mov eax, dword [ebx]
jmp 0x416276
mov eax, ebx
mov ecx, dword [0x475498]
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 0x416296
mov eax, dword [ebx]
jmp 0x416298
mov eax, ebx
push eax
push str._Down_url:_s
push 0x47549c
call fcn.0040f2c0
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 0x4162fa
mov eax, dword [ebx]
jmp 0x4162fc
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 0x416367
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp dword [esi + 0x18], 0x10
jb 0x416323
mov eax, dword [ebx]
jmp 0x416325
mov eax, ebx
mov ecx, dword [0x475498]
mov edx, dword [ecx]
push edi
push eax
push 0x16d
push 0x45c424
push ecx
call dword [edx + 4]
mov eax, dword [esi + 0x18]
add esp, 0x14
cmp eax, 0x10
jb 0x41634a
mov ebx, dword [ebx]
push edi
push 1
push ebx
push 0x16e
push 0x45c40c
push 0x47549c
call fcn.0040f2c0
add esp, 0x18
jmp 0x416395
cmp dword [ebp - 0x113c], 3
je 0x4163b0
mov eax, dword [0x475498]
mov ecx, dword [eax]
push 0x45c3f8
push eax
call dword [ecx + 4]
add esp, 8
push str._Down_not_http
push 0x47549c
call fcn.0040f2c0
add esp, 8
mov dword [ebp - 0x10e0], 1
mov esi, 3
mov dword [ebp - 4], 0xffffffff
jmp 0x416b21
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 0x416438
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [0x475498]
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 0x47549c
call fcn.0040f2c0
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 0x416b10
mov ecx, dword [ebp - 0x111c]
push 0
push 0x4000a00
push 0
push 0
push 0
push ecx
push 0x45c3ac
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
test eax, eax
mov dword [ebp - 0x10f0], eax
jne 0x4164bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x475498]
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 0x47549c
call fcn.0040f2c0
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 0x416aff
mov ebx, dword [ebp + 0x10]
test ebx, ebx
mov edi, dword [ebp + 0xc]
ja 0x4164cf
test edi, edi
jbe 0x41655b
mov eax, dword [0x475498]
mov ecx, dword [eax]
push ebx
push edi
push 0x45c364
push eax
call dword [ecx + 4]
add esp, 0x10
push ebx
push edi
push 0x45c364
push 0x47549c
call fcn.0040f2c0
add esp, 0x10
push ebx
push edi
push str.Range:_bytes_I64u_
lea edx, [ebp - 0x54]
push 0x40
push edx
call fcn.00437573
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 0x41655b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x475498]
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 0x416490
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 0x4165a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x475498]
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 0x416490
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 [0x475498]
mov ecx, dword [eax]
push edi
push 0x45c2d8
push eax
call dword [ecx + 4]
add esp, 0xc
push edi
push str._Down_ret__d
push 0x47549c
call fcn.0040f2c0
mov eax, dword [ebp + 0xc]
mov edx, eax
add esp, 0xc
or edx, ebx
jne 0x41664a
cmp edi, 0xc8
je 0x416694
xor esi, esi
or esi, 4
mov dword [ebp - 0x10e0], edi
mov dword [ebp - 4], 0xffffffff
jmp 0x416aff
test ebx, ebx
ja 0x416652
test eax, eax
jbe 0x416694
cmp edi, 0xce
je 0x416694
mov ecx, dword [esi + 0x20]
test ecx, ecx
jne 0x416633
mov ecx, dword [esi + 0x24]
test ecx, ecx
jne 0x416633
cmp edi, 0x1a0
jne 0x416633
mov dword [ebp - 0x10e8], eax
mov dword [ebp - 0x10e4], ebx
mov dword [ebp - 0x10e0], 0
xor esi, esi
mov dword [ebp - 4], 0xffffffff
jmp 0x416aff
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 0x4166fa
mov eax, dword [0x475498]
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 0x47549c
call fcn.0040f2c0
mov dword [ebp - 0x10e0], 2
mov esi, 3
add esp, 8
mov dword [ebp - 4], 0xffffffff
jmp 0x416aff
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 0x41673b
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jbe 0x41674c
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 0x41677c
cmp edi, dword [esi + 0x20]
jne 0x41675f
cmp eax, ecx
je 0x41677c
mov eax, dword [0x475498]
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 0x4168db
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.00415f70
push esi
call dword [esi + 0x68]
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10e4]
mov eax, dword [0x475498]
mov ecx, dword [eax]
add esp, 4
push ebx
push esi
push edx
push edi
push 0x45c278
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 0x47549c
call fcn.0040f2c0
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 0x416975
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 0x41688f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [0x475498]
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 0x47549c
call fcn.0040f2c0
mov eax, dword [ebp + 0x14]
xor esi, esi
add esp, 0x14
or esi, 1
mov dword [ebp - 0x10e0], ebx
mov dword [eax], 1
jmp 0x41689d
mov eax, dword [ebp - 0x1108]
test eax, eax
jne 0x41693f
test esi, esi
je 0x4168ad
mov dword [ebp - 4], 0xffffffff
jmp 0x416aff
mov ecx, dword [ebp + 0xc]
cmp dword [ebp - 0x10e8], ecx
jne 0x4168c3
mov edx, dword [ebp + 0x10]
cmp dword [ebp - 0x10e4], edx
je 0x4168ff
mov eax, dword [0x475498]
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 0x47549c
call fcn.0040f2c0
mov esi, 3
mov dword [ebp - 0x10e0], esi
add esp, 8
mov dword [ebp - 4], 0xffffffff
jmp 0x416aff
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x48]
mov eax, dword [0x475498]
mov ecx, dword [eax]
push 0x45c208
push eax
call dword [ecx + 4]
add esp, 8
push 0x45c1f8
push 0x47549c
call fcn.0040f2c0
add esp, 8
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10e0], esi
jmp 0x416aff
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 0x4169fc
test ebx, ebx
mov dword [ebp - 0x10f4], ebx
fild dword [ebp - 0x10f4]
jge 0x4169a2
fadd qword [0x45b9d8]
test eax, eax
fmul qword [0x45a228]
mov dword [ebp - 0x10f4], eax
fild dword [ebp - 0x10f4]
jge 0x4169be
fadd qword [0x45b9d8]
fdivp st(1)
call fcn.004384b8
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.00415f70
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 0x416a2d
mov eax, dword [eax + 0x9c]
mov dword [ebp - 0x10ec], eax
mov dword [ebp - 0x10d8], eax
mov dword [ebp - 0x10f8], edi
jmp 0x416809
mov eax, dword [ebp - 0x10d8]
test eax, eax
jg 0x416a47
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 0x416a67
fadd qword [0x45b9d8]
fmul qword [0x45c1f0]
fimul dword [ebp - 0x10ec]
call fcn.004384b8
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 0x416a98
mov dword [ebp - 0x10d8], eax
mov dword [ebp - 0x10f8], edi
jmp 0x416809
mov eax, dword [ebp - 0x10f0]
test eax, eax
je 0x416b10
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x1104]
test eax, eax
je 0x416b21
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.00415f70
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.004375fb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10