Function at 0x419360
Capabilities:
Check for time delay via gettickcount
Check http status code
Check if file exists
Create http request
Download and write a file
Get file size
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437fc6
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x44c040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xa0], edi
cmp dword [edi + 0x10], 0
jne 0x4193a2
xor al, al
jmp 0x419e65
xor eax, eax
mov dword [ebp - 0x90], 0
xorps xmm0, xmm0
mov dword [ebp - 0x88], 0xffffffff
xor esi, esi
mov dword [ebp - 0x80], eax
push 0x800
mov dword [ebp - 0xbc], esi
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xc0], eax
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xcc], eax
call fcn.00421b68
push 0x800
push esi
push eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0xa4], 0x800
call fcn.004238c0
mov ecx, dword [edi + 0x10]
add esp, 0x10
call fcn.0040f7d0
test al, al
jne 0x419421
mov esi, 1
jmp 0x419d8c
cmp dword [edi + 0x18], esi
je 0x41943e
push dword [edi + 4]
mov ecx, edi
call fcn.0041a660
test eax, eax
je 0x41943e
mov esi, 0xe
jmp 0x419d8c
mov ecx, dword [edi + 0x10]
call fcn.0040fd30
mov dword [ebp - 0x9c], eax
cmp dword [eax + 0x14], 8
jb 0x41945a
mov eax, dword [eax]
mov dword [ebp - 0x9c], eax
mov ecx, dword [edi + 0x10]
call fcn.0040fd40
mov dword [ebp - 0xa8], eax
cmp dword [eax + 0x14], 8
jb 0x419476
mov eax, dword [eax]
mov dword [ebp - 0xa8], eax
mov ecx, dword [edi + 0x10]
call fcn.0040d5b0
test al, 8
je 0x419498
mov ecx, dword [edi + 0x10]
call fcn.0040d4e0
mov ecx, dword [edi + 0x10]
or eax, 0x200000
push eax
call fcn.0040fd50
cmp dword [edi + 0x18], esi
je 0x4194b5
push dword [edi + 4]
mov ecx, edi
call fcn.0041a660
test eax, eax
je 0x4194b5
mov esi, 0xe
jmp 0x419d8c
mov ecx, dword [edi + 0x10]
call fcn.0040fd20
cmp dword [eax + 0x14], 8
jb 0x4194c5
mov eax, dword [eax]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov dword [ebp - 0x94], esi
test esi, esi
jne 0x4194e8
lea esi, [eax + 4]
jmp 0x419d8c
mov ecx, dword [edi + 0x10]
call fcn.0040d5b0
test al, 0x10
je 0x419578
mov ecx, dword [edi + 0x10]
call fcn.0040d4f0
test eax, eax
jle 0x419578
mov ecx, dword [edi + 0x10]
call fcn.0040d4f0
imul eax, eax, 0x3e8
push 4
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x84]
push eax
push 2
push esi
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
call esi
push 4
lea eax, [ebp - 0x84]
push eax
push 5
push dword [ebp - 0x94]
call esi
push 4
lea eax, [ebp - 0x84]
push eax
push 6
push dword [ebp - 0x94]
call esi
push 4
lea eax, [ebp - 0x84]
push eax
push 7
push dword [ebp - 0x94]
call esi
push 4
lea eax, [ebp - 0x84]
push eax
push 8
push dword [ebp - 0x94]
call esi
mov ecx, dword [edi + 0x10]
call fcn.0040d5b0
test al, 2
je 0x419600
mov esi, dword [ebp - 0xa8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x419600
mov ecx, dword [edi + 0x10]
call fcn.0040d5b0
test al, 4
je 0x4195be
mov ecx, dword [edi + 0x10]
call fcn.0040fd10
push eax
push esi
call fcn.00410e90
add esp, 8
test al, al
je 0x4195be
xor esi, esi
jmp 0x419d6e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0
push 3
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x88], eax
cmp eax, 0xffffffff
je 0x419600
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
cmove esi, eax
mov dword [ebp - 0x80], esi
jmp 0x419602
xor esi, esi
cmp dword [edi + 0x18], 0
je 0x419620
push dword [edi + 4]
mov ecx, edi
call fcn.0041a660
test eax, eax
je 0x419620
mov esi, 0xe
jmp 0x419d6e
test esi, esi
je 0x419674
push 0x40
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.004238c0
push esi
push str.Range:bytes_d_
lea eax, [ebp - 0x60]
push 0x20
push eax
call fcn.00404810
add esp, 0x1c
lea eax, [ebp - 0x60]
push 0
push 0x80000000
push 0xffffffffffffffff
push eax
push dword [ebp - 0x9c]
push dword [ebp - 0x94]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
xor ecx, ecx
mov dword [ebp - 0x90], eax
test eax, eax
cmove esi, ecx
mov dword [ebp - 0x80], esi
mov byte [ebp - 0x79], 0
cmp dword [edi + 0x18], 0
je 0x419690
push dword [edi + 4]
mov ecx, edi
call fcn.0041a660
test eax, eax
jne 0x41984a
xor al, al
mov dword [ebp - 0xd0], 4
mov byte [ebp - 0x7a], al
test esi, esi
jne 0x4197cd
mov ecx, dword [edi + 0x10]
push esi
call fcn.0040d4e0
push eax
push esi
push esi
push dword [ebp - 0x9c]
push dword [ebp - 0x94]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ecx, dword [edi + 0x10]
mov esi, eax
mov dword [ebp - 0x90], esi
call fcn.0040d4e0
test eax, 0x200000
je 0x4197ca
mov ecx, dword [edi + 0x10]
call fcn.0040fd30
push eax
lea ecx, [ebp - 0x78]
call fcn.00406f20
mov ecx, dword [edi + 0x10]
mov dword [ebp - 4], 0
call fcn.0040d4e0
push 0
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xac]
mov dword [ebp - 0x8c], 4
push eax
push 0x20000013
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x419854
mov eax, dword [ebp - 0xac]
cmp eax, 0xc8
je 0x4197ab
xor esi, esi
add eax, 0xfffffed4
mov dword [ebp - 0xbc], esi
mov dword [ebp - 0x84], esi
cmp eax, 0x63
ja 0x4197a3
mov edi, dword [ebp - 0x90]
nop
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0xac]
push eax
push dword [ebp - 0xb0]
lea eax, [ebp - 0x78]
push edi
push dword [ebp - 0x94]
push eax
call fcn.0041a820
add esp, 0x18
test al, al
je 0x419791
inc esi
cmp esi, 5
jl 0x419760
mov esi, dword [ebp - 0x84]
mov edi, dword [ebp - 0xa0]
mov dword [ebp - 0xbc], esi
test esi, esi
jne 0x419854
mov ecx, dword [edi + 0x10]
lea eax, [ebp - 0x78]
push eax
call fcn.0040fd60
lea ecx, [ebp - 0x78]
mov byte [ebp - 0x7a], 1
mov dword [ebp - 4], 0xffffffff
call fcn.00402d90
mov al, byte [ebp - 0x7a]
mov esi, dword [ebp - 0x90]
test esi, esi
je 0x419d69
test al, al
jne 0x419888
push 0
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0xac]
push eax
push 0x20000013
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov ecx, dword [ebp - 0x80]
test eax, eax
mov eax, dword [ebp - 0xac]
je 0x41981e
test ecx, ecx
jne 0x419817
cmp eax, 0xc8
jmp 0x41981c
cmp eax, 0xce
je 0x419888
cmp eax, 0x1a0
jne 0x41986e
cmp byte [ebp - 0x79], 0
jne 0x41986e
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor esi, esi
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x80], esi
mov byte [ebp - 0x79], 1
jmp 0x419678
mov esi, 0xe
jmp 0x419d4f
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], 0xffffffff
call fcn.00402d90
mov esi, dword [ebp - 0xbc]
jmp 0x419d4f
test ecx, ecx
je 0x41999e
cmp eax, 0xc8
jne 0x41999e
mov dword [ebp - 0x80], 0
push 0
lea eax, [ebp - 0xd4]
mov dword [ebp - 0xb4], 0
push eax
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xd4], 4
push eax
push 0x20000005
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov ecx, dword [edi + 0x10]
neg eax
sbb eax, eax
and dword [ebp - 0xb4], eax
call fcn.0040d5b0
test al, 0x20
je 0x419988
push 0
lea eax, [ebp - 0xa4]
push eax
push dword [ebp - 0x98]
push 0x16
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x419988
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x419988
cmp dword [ebp - 0xa4], 0
jbe 0x419988
push dword [ebp - 0x98]
call fcn.00421b71
mov eax, dword [ebp - 0xa4]
xor ecx, ecx
shr eax, 1
mov edx, 2
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00421b68
mov ecx, eax
mov eax, dword [ebp - 0xa4]
shr eax, 1
mov dword [ebp - 0x98], ecx
lea eax, [eax*2 + 2]
push eax
push 0
push ecx
mov dword [ebp - 0xa4], eax
call fcn.004238c0
add esp, 0x14
lea eax, [ebp - 0xa4]
push 0
push eax
push dword [ebp - 0x98]
push 0x16
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x419988
mov eax, dword [ebp - 0x98]
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 0xb4]
test ecx, ecx
jne 0x4199a8
mov dword [ebp - 0x84], 0x20000
jmp 0x4199d7
mov esi, 6
jmp 0x419d4f
mov eax, 0x51eb851f
mul ecx
mov eax, edx
shr eax, 4
cmp eax, 0x400
jae 0x4199c7
mov dword [ebp - 0x84], 0x400
jmp 0x4199d7
mov ecx, 0x20000
cmp eax, ecx
cmova eax, ecx
mov dword [ebp - 0x84], eax
mov ecx, dword [edi + 0x10]
call fcn.0040d5b0
test al, 8
je 0x419a5c
mov ecx, dword [edi + 0x10]
call fcn.0040fd40
push eax
lea ecx, [ebp - 0x78]
call fcn.00406f20
lea eax, [ebp - 0x78]
mov dword [ebp - 4], 1
push esi
push eax
call fcn.0041a320
add esp, 8
test al, al
jne 0x419a25
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], 0xffffffff
mov esi, 2
call fcn.00402d90
jmp 0x419d4f
mov ecx, dword [edi + 0x10]
lea eax, [ebp - 0x78]
push eax
call fcn.0040fd90
mov ecx, dword [edi + 0x10]
call fcn.0040fd40
mov dword [ebp - 0xa8], eax
cmp dword [eax + 0x14], 8
jb 0x419a4d
mov eax, dword [eax]
mov dword [ebp - 0xa8], eax
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], 0xffffffff
call fcn.00402d90
cmp dword [ebp - 0x88], 0xffffffff
jne 0x419a9c
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
push dword [ebp - 0xa8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x88], eax
cmp eax, 0xffffffff
jne 0x419a95
mov esi, 3
jmp 0x419d4f
mov dword [ebp - 0x80], 0
mov eax, dword [ebp - 0xb4]
push 0x38
mov dword [ebp - 0x8c], eax
call fcn.0042187c
add esp, 4
mov dword [ebp - 0xc4], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x419b1c
mov ecx, dword [edi + 0x10]
call fcn.0040d5b0
mov ecx, dword [ebp - 0xa0]
and eax, 0xffffff01
mov esi, dword [edi + 8]
mov edi, dword [edi + 4]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x80]
mov ecx, dword [ecx + 0x10]
push eax
push dword [ebp - 0x8c]
call fcn.0040fd00
push eax
call fcn.004164b0
mov ecx, dword [ebp - 0xc4]
push eax
push dword [ebp - 0xb0]
push esi
push edi
call fcn.004181e0
mov edi, dword [ebp - 0xa0]
mov esi, dword [ebp - 0x90]
jmp 0x419b1e
xor eax, eax
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x419b36
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x419b36
push eax
call fcn.004179c0
push dword [ebp - 0x84]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
push 0
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x80]
push eax
push dword [ebp - 0x88]
mov dword [ebp - 0xc0], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [ebp - 0x8c], 0
mov byte [ebp - 0x79], 1
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0xb0], 0
cmp dword [edi + 0x18], 0
je 0x419bb8
push dword [edi + 4]
mov ecx, edi
call fcn.0041a660
test eax, eax
jne 0x419ca8
cmp byte [ebp - 0x79], 0
je 0x419bca
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0xb8]
mov byte [ebp - 0x79], 0
push eax
push dword [ebp - 0x84]
push dword [ebp - 0xa0]
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xc8], eax
test esi, esi
je 0x419cc4
mov ecx, dword [ebp - 0xb8]
test ecx, ecx
je 0x419cbc
add dword [ebp - 0xc0], ecx
lea eax, [ebp - 0xc4]
push 0
push eax
push ecx
push dword [ebp - 0xa0]
mov dword [ebp - 0xc4], 0
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0xc4]
mov eax, dword [ebp - 0xb8]
cmp ecx, eax
jne 0x419cb2
mov edx, dword [ebp - 0xb0]
mov esi, dword [ebp - 0xc8]
add edx, ecx
sub esi, dword [ebp - 0x8c]
mov dword [ebp - 0xb0], edx
cmp esi, 0x64
jb 0x419c85
mov eax, edx
xor edx, edx
div esi
push eax
mov eax, dword [ebp - 0x80]
add eax, ecx
mov ecx, edi
push eax
call fcn.0041aa40
mov eax, dword [ebp - 0xb8]
xor edx, edx
jmp 0x419c8a
mov edx, dword [ebp - 0x80]
add edx, ecx
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x9c], edx
test eax, eax
je 0x419cbc
mov esi, dword [ebp - 0x90]
mov dword [ebp - 0x9c], edx
jmp 0x419ba0
mov esi, 0xe
jmp 0x419d35
mov esi, 8
jmp 0x419d35
mov esi, dword [ebp - 0xbc]
jmp 0x419cc9
mov esi, 7
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x88], 0xffffffff
call fcn.0040d5b0
test al, 4
je 0x419d2b
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0xa8]
call fcn.00410fc0
add esp, 8
test al, al
je 0x419d62
mov ecx, dword [edi + 0x10]
call fcn.0040fd10
lea edx, [ebp - 0x20]
mov dword [ebp - 0x8c], 0xc
mov ecx, dword [eax]
cmp ecx, dword [edx]
jne 0x419d62
add eax, 4
add edx, 4
sub dword [ebp - 0x8c], 4
jae 0x419d16
mov dword [ebp - 0xcc], 1
mov eax, dword [ebp - 0xa0]
test eax, eax
je 0x419d4f
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x90]
test eax, eax
je 0x419d6e
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x419d6e
mov esi, 0xb
jmp 0x419d35
mov esi, 5
push dword [ebp - 0x94]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x88]
cmp eax, 0xffffffff
je 0x419d8c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x98]
mov ecx, dword [ebp - 0xc0]
push dword [ebp - 0x9c]
push ecx
push dword [ebp - 0xac]
mov ecx, edi
push esi
call fcn.0041ab00
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x419dc0
push eax
call fcn.00421b71
add esp, 4
cmp dword [edi + 0x14], 0
je 0x419e46
push 0x14
call fcn.0042187c
add esp, 4
mov dword [ebp - 0xc8], eax
mov dword [ebp - 4], 3
test eax, eax
je 0x419df3
push dword [edi + 0x18]
mov ecx, eax
call fcn.0041b6e0
mov edx, eax
jmp 0x419df5
xor edx, edx
mov dword [ebp - 4], 0xffffffff
test edx, edx
je 0x419e09
mov ecx, dword [edi + 0x18]
push edx
mov eax, dword [ecx]
call dword [eax + 8]
push 0x14
call fcn.0042187c
add esp, 4
mov dword [ebp - 0xc8], eax
mov dword [ebp - 4], 4
test eax, eax
je 0x419e30
push dword [edi + 0x14]
mov ecx, eax
call fcn.0041b6b0
jmp 0x419e32
xor eax, eax
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x419e46
mov ecx, dword [edi + 0x14]
push eax
call fcn.004179c0
cmp dword [ebp - 0xcc], 0
je 0x419e63
mov ecx, dword [edi + 0x10]
call fcn.0040fdc0
test al, al
je 0x419e63
mov ecx, dword [edi + 0x10]
call fcn.0040fdd0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421b57
mov esp, ebp
pop ebp
ret